:root {
    --dark-blue: #0b0b3d;
    --brand-red: #e53935;
    --light-gray: #f8f9fa;
}

/* General Styles */


/* Header Section */
.header-section {
  background: #0D0040;
        color: white;
        height: 280px;
        display: flex;
        align-items: center;
        margin-bottom: 50px;
}

.header-section h1 {
        font-family: "Roboto";
        font-weight: 500;
        font-style: Medium;
        font-size: 50px;
}

/* Form Container */
.form-container {
border: 1px solid #00000033;
    padding: 30px;
    border-radius: 10px;}

/* Left Sidebar Card */
#add-projet-page .sidebar-card {
border: 1px solid #00000033;
    padding: 30px;
    border-radius: 10px;

}
#add-projet-page .sidebar-card h5 {
    font-family: 'Roboto';
    font-weight: 700;
    font-style: Bold;
    font-size: 24px;
}
#add-projet-page .sidebar-card p {
        font-family: 'Roboto';
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
}
#add-projet-page .sidebar-card .date-info {
    font-size: 0.9rem;
    font-weight: 500;
}
#add-projet-page .sidebar-card .btn {
    width: 100%;
    font-weight: 600;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}
#add-projet-page .btn-save {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
    color: white;
}
#add-projet-page .btn-save:hover {
    background-color: #c5001e;
    border-color: #c5001e;
    color: white;
}
#add-projet-page .btn-back {
    background-color: white;
    border: 2px solid var(--brand-red);
    color: var(--brand-red);
}
#add-projet-page .btn-back:hover {
    background-color: var(--brand-red);
    color: white;
}

/* Form Styling */
.form-label {
    font-family: 'Roboto';
    font-weight: 500;
    font-style: Medium;
    font-size: 18px;
    padding-bottom: 5px;
}
.form-label .text-danger {
    font-weight: bold;
}
.form-control, .form-select, .input-group-text {
    border: 1px solid #00000033;
    border-radius: 10px;
    height: 50px;
}
.form-control:focus, .form-select:focus {
    background-color: #ffffff;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
textarea.form-control {
    min-height: 120px;
}

/* File Input Styles */
.input-group-text {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-left: 0;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}
.input-group-text:hover {
    background-color: #f8f9fa;
    color: var(--dark-blue);
}
.custom-file-input {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: #fff;
    color: var(--text-color);
    font-size: 0.9rem;
        border: 1px dashed #dee2e6;
       justify-content: space-between;
       cursor:default;
}

.input-group-text {
    background-color: #fff;
    border-top: 1px dashed #dee2e6;
    border-right: 1px dashed #dee2e6;
    border-bottom: 1px dashed #dee2e6;

}
 .alert-success {
    border-radius: 8px;
    border: none;
    background: #fff;
    color: #000;

}
#submission-success .btn-primary {
    background: #F70000;
    color: #fff;
    border-radius: 50px;
    font-family: 'Roboto';
    font-size: 18px;
    padding: 7px;
    font-weight: 400;
    border: none;
    padding: 10px 30px;
}
.back-container-actualite-svg svg {
    fill: red;
}
.input-group .form-control {
    border-right: 0;
}
.file-input-hidden {
    display: none;
}

.form-text {
    font-size: 0.8rem;
    color: #6c757d;
}
.form-check-label {
     font-weight: 500;
}

/* File Preview */

.file-preview .img-thumbnail {
    border-radius: 5px;
    border: 1px solid #dee2e6;
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
}

.preview-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-right: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.preview-item .remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand-red);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-item:hover .remove-btn {
    opacity: 1;
}

.file-info {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
    text-align: center;
}

.list-group-item {
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-size {
    font-size: 0.75rem;
    color: #6c757d;
    margin-left: 0.5rem;
}

/* Conditional Field */
#new-structure-field {
    transition: all 0.3s ease;
}

/* Success Message */
.alert-success {
    border-radius: 5px;
    border: none;
}

/* Spinner for loading state */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-section {
    height: 150px !important;
    }
    
    .header-section h1 {
        font-size: 30px;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .sidebar-card {
        padding: 1rem;
    }
    
    .preview-item {
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }
}