:root {
    --primary-blue: #00c0ed;
    --primary-green: #b7d22b;
    --primary-white: #ffffff;
    --primary-black: #000000;
    --light-blue: #f0f9ff;
    --light-green: #f8fce6;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #343a40;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-blue);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 30px 20px;
}

.container-custom {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.main-card {
    background: var(--primary-white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: none;
}

.step-header {
    background-color: var(--primary-blue);
    color: var(--primary-white);
    padding: 25px 0;
}

.step {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 14px;
}

.step.active {
    color: var(--primary-white);
    font-weight: 600;
}

.step-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 15px;
    color: var(--primary-white);
}

.step.active .step-circle {
    background: var(--primary-white);
    color: var(--primary-blue);
}

.step.completed .step-circle {
    background: var(--primary-green);
    color: var(--primary-white);
}

.step-divider {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 15px;
}

.step-label {
    color: var(--primary-blue);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-title {
    color: var(--primary-black);
    font-weight: 700;
    font-size: 26px;
    margin-bottom: 8px;
}

.step-description {
    color: var(--gray-medium);
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.form-section {
    background: var(--primary-white);
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
    padding: 20px;
}

.form-section-title {
    color: var(--primary-black);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.form-section-title i {
    color: var(--primary-blue);
}

.form-label {
    color: var(--gray-dark);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
}

.form-control, .form-select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 192, 237, 0.15);
}

.form-control.error, .form-select.error {
    border-color: #dc3545;
}

.arabic-input {
    direction: rtl;
    text-align: right;
    font-family: 'Arial', sans-serif;
}

.btn-custom-primary {
    background-color: var(--primary-green);
    border: none;
    color: var(--primary-white);
    padding: 10px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
}

.btn-custom-primary:hover {
    background-color: var(--primary-blue);
    color: var(--primary-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 192, 237, 0.2);
}

.btn-custom-secondary {
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 8px 0;
}

.btn-custom-secondary:hover {
    color: var(--primary-green);
}

.required {
    color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .step-title {
        font-size: 22px;
    }

    .step-description {
        font-size: 14px;
    }

    .form-section {
        padding: 15px;
    }

    .step-header {
        padding: 20px 0;
    }
}

@media (max-width: 576px) {
    .step {
        text-align: center;
        margin-bottom: 5px;
    }

    .step-circle {
        margin: 0 auto;
    }

    .step-title {
        font-size: 20px;
    }

    .btn-custom-primary, .btn-custom-secondary {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
}

/* ===== HEADER STYLES ===== */
.app-header {
    background: linear-gradient(135deg, var(--primary-blue), #0098c9);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-white);
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

.logo i {
    font-size: 28px;
    color: var(--primary-green);
}

.header-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.header-nav ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav ul li a:hover {
    color: var(--primary-white);
    background: rgba(255, 255, 255, 0.15);
}

.header-nav ul li a.active {
    color: var(--primary-white);
    background: rgba(255, 255, 255, 0.2);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-white);
    font-weight: 500;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.25);
}

.user-profile i {
    font-size: 24px;
}

/* ===== FOOTER STYLES ===== */
.app-footer {
    background: var(--gray-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 20px 0;
    margin-top: 30px;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-left p {
    margin: 0;
    font-size: 14px;
}

.footer-center ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.footer-center ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-center ul li a:hover {
    color: var(--primary-green);
}

.footer-right {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-right i {
    margin: 0 3px;
}

/* ===== RESPONSIVE HEADER & FOOTER ===== */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
    }

    .header-nav ul {
        justify-content: center;
        gap: 10px;
    }

    .header-nav ul li a {
        font-size: 13px;
        padding: 6px 10px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-center ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* ===== RESPONSIVE HEADER & FOOTER ===== */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
    }

    .header-nav ul {
        justify-content: center;
        gap: 10px;
    }

    .header-nav ul li a {
        font-size: 13px;
        padding: 6px 10px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-center ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 20px;
    }

    .header-nav ul {
        gap: 5px;
    }

    .header-nav ul li a {
        font-size: 12px;
        padding: 5px 8px;
    }

    .header-nav ul li a i {
        display: none;
    }

    .user-profile {
        padding: 5px 12px;
        font-size: 14px;
    }

    .footer-left p,
    .footer-right {
        font-size: 12px;
    }

    .footer-center ul li a {
        font-size: 12px;
    }
}

/* ===== MULTI-STEPS FORM ADDITIONAL STYLES ===== */
/* Step navigation */
.step {
    cursor: pointer;
    transition: all 0.3s ease;
}

.step:hover {
    color: rgba(255, 255, 255, 0.9);
}

.step.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.step.disabled:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* Error states */
.form-control.error,
.form-select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Checkbox groups */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--primary-white);
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: border-color 0.2s ease;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-blue);
    flex-shrink: 0;
}

.checkbox-group.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

/* Button groups */
.btn-group-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #e9ecef;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-group-container .btn-group-left {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-group-container .btn-group-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Spinner overlay */
.spinner-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.spinner-overlay.show {
    display: flex;
}

.spinner-box {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.spinner-box .spinner-border {
    width: 50px;
    height: 50px;
    color: var(--primary-blue);
}

.spinner-box p {
    margin-top: 15px;
    font-weight: 500;
    color: var(--gray-dark);
}

/* Photo preview */
.photo-preview {
    margin-top: 8px;
    font-size: 13px;
    color: var(--gray-medium);
}

/* Responsive adjustments for multi-step */
@media (max-width: 768px) {
    .btn-group-container {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-group-container .btn-group-left,
    .btn-group-container .btn-group-right {
        width: 100%;
        justify-content: center;
    }

    .btn-group-container .btn-custom-primary,
    .btn-group-container .btn-custom-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .step {
        font-size: 11px;
    }

    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .step-divider {
        margin: 0 8px;
    }

    .spinner-box {
        padding: 20px;
        margin: 20px;
    }
}


/* Styles supplémentaires spécifiques au formulaire multi-étapes */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

.step {
    cursor: pointer;
    transition: all 0.3s ease;
}

.step:hover {
    color: rgba(255, 255, 255, 0.9);
}

.step.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.step.disabled:hover {
    color: rgba(255, 255, 255, 0.6);
}

.form-control.error, .form-select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

.note-box {
    background: var(--gray-light);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.note-box-title {
    font-size: 13px;
    color: var(--gray-dark);
    font-weight: 500;
    margin-bottom: 8px;
}

.moyenne-display-box {
    background-color: var(--primary-blue);
    color: var(--primary-white);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.moyenne-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.moyenne-value {
    font-size: 32px;
    font-weight: 700;
}

.review-section {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--primary-white);
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.review-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.review-item:last-child {
    border-bottom: none;
}

.review-label {
    color: var(--gray-medium);
    font-weight: 500;
    font-size: 14px;
}

.review-value {
    color: var(--primary-black);
    font-size: 14px;
    word-break: break-word;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--primary-white);
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: border-color 0.2s ease;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-blue);
    flex-shrink: 0;
}

.checkbox-label {
    color: var(--primary-black);
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.checkbox-group.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.bg-success {
    background-color: var(--primary-green) !important;
    color: var(--primary-white) !important;
}

.bg-danger {
    background-color: #dc3545 !important;
    color: var(--primary-white) !important;
}

.review-summary {
    background: var(--light-blue);
    border-left: 4px solid var(--primary-blue);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--primary-white);
    border-radius: 8px;
    border: 1px solid #e9ecef;
    border-left: 4px solid var(--primary-blue);
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--primary-blue);
    color: var(--primary-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.criteria-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.criteria-table th {
    background: var(--primary-blue);
    color: var(--primary-white);
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.criteria-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e9ecef;
}

.criteria-table tr:nth-child(even) {
    background: var(--gray-light);
}

.photo-preview {
    margin-top: 8px;
    font-size: 13px;
    color: var(--gray-medium);
}

#photo-preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 4px;
    margin-top: 5px;
}

.btn-group-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #e9ecef;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-group-container .btn-group-left {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-group-container .btn-group-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Loading spinner */
.spinner-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.spinner-overlay.show {
    display: flex;
}

.spinner-box {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.spinner-box .spinner-border {
    width: 50px;
    height: 50px;
    color: var(--primary-blue);
}

.spinner-box p {
    margin-top: 15px;
    font-weight: 500;
    color: var(--gray-dark);
}

@media (max-width: 768px) {
    .review-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .btn-group-container {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-group-container .btn-group-left,
    .btn-group-container .btn-group-right {
        width: 100%;
        justify-content: center;
    }

    .btn-group-container .btn-custom-primary,
    .btn-group-container .btn-custom-secondary {
        width: 100%;
        justify-content: center;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .step-number {
        margin: 0 auto;
    }

    .criteria-table {
        font-size: 12px;
    }

    .criteria-table th,
    .criteria-table td {
        padding: 8px;
    }
}

@media (max-width: 576px) {
    .step {
        font-size: 11px;
    }

    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .step-divider {
        margin: 0 8px;
    }

    .step-title {
        font-size: 20px;
    }

    .form-section {
        padding: 15px;
    }
}


/* Sections réductibles */
.form-section {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.form-section-title {
    font-weight: 600;
    color: #2c3e50;
    padding: 5px 0;
    user-select: none;
}

.form-section-title i:first-child {
    color: #b7d22b;
    margin-right: 10px;
}

.form-section-title i.fa-chevron-up,
.form-section-title i.fa-chevron-down {
    color: #6c757d;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.form-section-title:hover {
    opacity: 0.8;
}

.form-section .row {
    transition: all 0.3s ease;
}

/* Animation pour la réduction */
.form-section .row.collapsing {
    overflow: hidden;
    transition: height 0.3s ease;
}

.btn-group-right {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* Styles spécifiques pour la liste des inscriptions */
.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px 0;
    border-radius: 16px;
    margin-bottom: 30px;
}

.page-header h1 {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}

.page-header p {
    color: #718096;
    margin-bottom: 0;
}

.inscription-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 24px;
    overflow: hidden;
    background: #fff;
}

.inscription-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.inscription-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 3px solid #b7d22b;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.inscription-card .card-header .concours-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2d3748;
}

.inscription-card .card-header .concours-code {
    font-size: 0.85rem;
    color: #718096;
    background: #edf2f7;
    padding: 4px 12px;
    border-radius: 20px;
}

.inscription-card .card-body {
    padding: 24px;
}

.inscription-card .card-body .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.inscription-card .card-body .info-item {
    display: flex;
    flex-direction: column;
}

.inscription-card .card-body .info-item .info-label {
    font-size: 0.75rem;
    color: #a0aec0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inscription-card .card-body .info-item .info-value {
    font-weight: 500;
    color: #2d3748;
    font-size: 0.95rem;
}

.inscription-card .card-body .info-item .info-value .badge {
    font-size: 0.75rem;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
}

.status-badge.en_attente {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.valide {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.rejete {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.admis {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.liste_attente {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.non_admis {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.en_cours {
    background: #dbeafe;
    color: #1e40af;
}

.card-footer-actions {
    background: #f8f9fa;
    padding: 12px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #edf2f7;
    flex-wrap: wrap;
}

.card-footer-actions .btn {
    border-radius: 30px;
    padding: 8px 24px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #b7d22b;
    color: #fff;
    border: none;
}

.btn-edit:hover {
    background: #a0b822;
    color: #fff;
    transform: scale(1.02);
}

.btn-subscribe {
    background: #2b6cb0;
    color: #fff;
    border: none;
}

.btn-subscribe:hover {
    background: #1a4f7a;
    color: #fff;
    transform: scale(1.02);
}

.btn-view {
    background: #4a5568;
    color: #fff;
    border: none;
}

.btn-view:hover {
    background: #2d3748;
    color: #fff;
}

.btn-delete {
    background: #e53e3e;
    color: #fff;
    border: none;
}

.btn-delete:hover {
    background: #c53030;
    color: #fff;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state .empty-icon {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #2d3748;
    font-weight: 600;
}

.empty-state p {
    color: #718096;
    max-width: 500px;
    margin: 0 auto 24px;
}

.concours-available-card {
    border: 2px solid #edf2f7;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    height: 100%;
    background: #fff;
}

.concours-available-card:hover {
    border-color: #b7d22b;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.concours-available-card .concours-icon {
    font-size: 2.5rem;
    color: #b7d22b;
    margin-bottom: 16px;
}

.concours-available-card h5 {
    font-weight: 600;
    color: #2d3748;
}

.concours-available-card .diplome-list {
    font-size: 0.85rem;
    color: #718096;
    margin: 12px 0;
}

.concours-available-card .diplome-list span {
    display: inline-block;
    background: #edf2f7;
    padding: 2px 12px;
    border-radius: 12px;
    margin: 2px 4px;
}

/* Notification Styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    max-width: 400px;
    width: 100%;
}

.notification {
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.4s ease;
    border-left: 4px solid #b7d22b;
}

.notification.success {
    border-left-color: #48bb78;
}

.notification.error {
    border-left-color: #fc8181;
}

.notification.info {
    border-left-color: #63b3ed;
}

.notification .notification-icon {
    font-size: 1.5rem;
}

.notification.success .notification-icon {
    color: #48bb78;
}

.notification.error .notification-icon {
    color: #fc8181;
}

.notification.info .notification-icon {
    color: #63b3ed;
}

.notification .notification-message {
    flex: 1;
    font-weight: 500;
    color: #2d3748;
}

.notification .notification-close {
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 4px;
}

.notification .notification-close:hover {
    color: #4a5568;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Loading Spinner */
.spinner-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 99998;
    justify-content: center;
    align-items: center;
}

.spinner-overlay.show {
    display: flex;
}

.spinner-box {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.tab-navigation {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-navigation .tab-btn {
    padding: 10px 24px;
    border: 2px solid #edf2f7;
    border-radius: 30px;
    background: #fff;
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-navigation .tab-btn:hover {
    border-color: #b7d22b;
    color: #2d3748;
}

.tab-navigation .tab-btn.active {
    background: #b7d22b;
    border-color: #b7d22b;
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-badge {
    background: #edf2f7;
    color: #4a5568;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.75rem;
    margin-left: 6px;
}

.tab-btn.active .tab-badge {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

@media (max-width: 768px) {
    .inscription-card .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .inscription-card .card-body .info-grid {
        grid-template-columns: 1fr;
    }

    .card-footer-actions {
        flex-direction: column;
    }

    .card-footer-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .tab-navigation .tab-btn {
        flex: 1;
        text-align: center;
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

/* ===== FILE UPLOAD STYLES ===== */
.file-upload {
    border: 2px dashed #ced4da;
    border-radius: 8px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--gray-light);
    position: relative;
}

.file-upload:hover {
    border-color: var(--primary-blue);
    background: var(--light-blue);
}

.file-upload i {
    font-size: 2.5rem;
    color: var(--primary-blue);
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0.1px;
    height: 0.1px;
    pointer-events: none;
}

.file-upload .text-muted {
    font-size: 0.75rem;
}

.file-upload .fw-medium {
    font-weight: 500;
}

.file-upload.has-file {
    border-color: var(--primary-green);
    background: var(--light-green);
}

.upload-preview {
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--gray-light);
    border-radius: 6px;
    font-size: 13px;
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.upload-preview .file-name {
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-all;
}

.upload-preview .file-name i {
    color: var(--primary-green);
    font-size: 1.2rem;
}

.upload-preview .file-size {
    font-size: 12px;
    color: var(--gray-medium);
}

.upload-preview .remove-file {
    color: #dc3545;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.1rem;
    padding: 0 5px;
    transition: all 0.2s ease;
}

.upload-preview .remove-file:hover {
    transform: scale(1.2);
}

/* Validation states for file uploads */
.file-upload.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.file-upload .error-message {
    display: none;
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

.file-upload.error .error-message {
    display: block;
}

/* ===== FILE UPLOAD ADDITIONAL STYLES ===== */
.file-upload .upload-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    display: block;
}

.file-upload p {
    margin-bottom: 2px;
}

.file-upload .small {
    font-size: 0.75rem;
}

.upload-preview {
    background: var(--gray-light);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #e9ecef;
}

.upload-preview .file-name {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    flex: 1;
}

.upload-preview .file-name i {
    color: var(--primary-green);
    flex-shrink: 0;
}

.upload-preview .file-name span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-preview .file-size {
    color: var(--gray-medium);
    font-size: 12px;
    flex-shrink: 0;
}

.upload-preview .remove-file {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 0 5px;
    font-size: 1rem;
    flex-shrink: 0;
}

.upload-preview .remove-file:hover {
    transform: scale(1.2);
}



 .file-upload-zone {
     border: 2px dashed #b9d7a2;
     background-color: #f9fdf6;
     border-radius: 10px;
     padding: 25px 15px;
     text-align: center;
     cursor: pointer;
     transition: all 0.3s ease;
     min-height: 160px;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
 }
.file-upload-zone:hover {
    background-color: #f1fad9;
    border-color: #a2c884;
}
/* تنسيق الملف داخل الكاري */
.zone-filled-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #2b759f;
}
.zone-filled-state i {
    font-size: 40px;
    color: #00a8ff;
}
.zone-filled-state .file-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    word-break: break-all;
}
.zone-filled-state .file-size {
    font-size: 12px;
    color: #777;
}
/* أزرار التحكم أسفل كل مربع */
.upload-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}
.btn-preview-file {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-preview-file:hover { background-color: #0b5ed7; }
.btn-delete-file {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-delete-file:hover { background-color: #bb2d3b; }

