frontend/src/assets/css/CreateResource.css
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.7);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
.modal-content {
background-color: #252526;
border-radius: 4px;
width: 380px; /* Reduced from 500px to match screenshot */
max-width: 90%;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
border: 1px solid #3c3c3c;
color: #cccccc;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 12px;
border-bottom: 1px solid #3c3c3c;
background-color: #2a2a2a;
}
.modal-header h3 {
margin: 0;
font-size: 14px;
font-weight: 500;
color: #cccccc;
}
.method-option {
padding: 6px 8px;
cursor: pointer;
border-radius: 2px;
}
.method-option:hover {
background-color: #2d2d2d;
}
.method-text {
display: flex;
flex-direction: column;
}
.method-label {
font-size: 13px;
color: #cccccc;
margin-bottom: 2px;
}
.method-description {
font-size: 12px;
color: #858585;
line-height: 1.3;
}
.radio-container {
display: flex;
align-items: flex-start;
}
.radio-button {
margin-right: 8px;
margin-top: 2px;
}
.radio-outer {
width: 14px;
height: 14px;
border-radius: 50%;
border: 1px solid #858585;
display: flex;
align-items: center;
justify-content: center;
}
.radio-inner {
width: 8px;
height: 8px;
border-radius: 50%;
background-color: #0e639c;
}
.close-button {
background: none;
border: none;
font-size: 20px;
cursor: pointer;
color: #858585;
padding: 0;
margin: 0;
line-height: 1;
}
.close-button:hover {
color: #cccccc;
}
.modal-body {
padding: 16px;
}
.modal-footer {
padding: 12px 16px;
border-top: 1px solid #3c3c3c;
display: flex;
justify-content: flex-end;
gap: 8px;
background-color: #2a2a2a;
}
.form-group {
margin-bottom: 16px;
text-align: left;
}
.form-group label {
display: block;
margin-bottom: 6px;
font-weight: normal;
font-size: 13px;
color: #cccccc;
text-align: left;
width: 100%;
}
.form-group input {
width: 100%;
padding: 8px 10px;
border: 1px solid #3c3c3c;
border-radius: 4px;
font-size: 13px;
background-color: #1e1e1e;
color: #cccccc;
box-sizing: border-box;
}
.form-group input:focus {
outline: none;
border-color: #0e639c;
}
.namespace-display {
padding: 8px 10px;
background-color: #1e1e1e;
border: 1px solid #3c3c3c;
border-radius: 4px;
font-size: 13px;
color: #cccccc;
}
.error-message {
color: #f44336;
margin-bottom: 12px;
padding: 8px 12px;
background-color: rgba(244, 67, 54, 0.1);
border-radius: 4px;
border-left: 3px solid #f44336;
font-size: 13px;
}
.cancel-button {
padding: 6px 12px;
background-color: #333333;
border: 1px solid #3c3c3c;
border-radius: 4px;
cursor: pointer;
font-size: 13px;
color: #cccccc;
min-width: 80px;
}
.cancel-button:hover {
background-color: #3c3c3c;
}
.create-button {
padding: 6px 12px;
background-color: #0e639c;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 13px;
min-width: 80px;
}
.create-button:hover {
background-color: #1177bb;
}
.create-button:disabled, .cancel-button:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.continue-button {
padding: 4px 10px;
background-color: #0e639c;
color: white;
border: none;
border-radius: 2px;
cursor: pointer;
font-size: 12px;
min-width: 70px;
}
.continue-button:hover {
background-color: #1177bb;
}
.continue-button:disabled {
opacity: 0.6;
cursor: not-allowed;
}
/* Add placeholder styling to match the dark theme */
::placeholder {
color: #666666;
opacity: 1;
}
.checkbox-label {
display: flex;
align-items: center;
cursor: pointer;
color: #cccccc;
font-size: 13px;
width: auto;
margin-bottom: 0;
}
.checkbox-label input {
margin-right: 8px;
cursor: pointer;
line-height: normal;
}
/*
This selector is more specific than .form-group label
It ensures the checkbox label doesn't behave like a block element
*/
.form-group .checkbox-label {
display: flex !important;
align-items: center;
width: auto !important; /* Critical: overrides width: 100% from .form-group label */
color: #cccccc;
font-size: 13px;
margin-bottom: 0;
}
/*
This ensures the checkbox shrinks to its natural size
instead of stretching to fill the parent container
*/
.form-group .checkbox-label input {
width: auto !important; /* Critical: overrides width: 100% from .form-group input */
margin-right: 8px;
cursor: pointer;
padding: 0; /* Reset padding just in case */
border: none; /* Reset border just in case */
background: none; /* Reset background just in case */
}