#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

.main {
    flex: 1;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .navbar-nav .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .navbar-nav .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .navbar-nav .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

    .sidebar .navbar-nav .nav-link {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

        .sidebar .navbar-nav .nav-link:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }

        .sidebar .navbar-nav .nav-link.active {
            background-color: rgba(255,255,255,0.25);
            color: white;
        }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

    .navbar-toggler:checked {
        background-color: rgba(255, 255, 255, 0.5);
    }

.top-row {
    height: 3.5rem;
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    align-items: center;
}

@media (max-width: 767.98px) {
    .page {
        flex-direction: column-reverse;
    }

    .sidebar {
        display: none;
        top: 0;
    }

        .navbar-toggler:checked ~ .sidebar,
        .sidebar.show {
            display: block;
        }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1020;
    }
}

@media (min-width: 768px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        display: block;
    }

    .nav-scrollable {
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

/* Navigation */
.nav-category {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    display: block;
}

.navbar-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 1rem;
}

/* Dashboard cards */
.dashboard-card {
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

    .dashboard-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    }

/* Avatar */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Table improvements */
.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

/* Badge improvements */
.badge {
    font-size: 0.75em;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-card .card-body .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .dashboard-card .h3 {
        font-size: 1.5rem;
    }
}

/* ===================================================
   Styles Pastel pour les Abstracts
   =================================================== */

/* Badges de statut pastel */
.badge-pastel-gray {
    background-color: #e8e8e8;
    color: #5a5a5a;
}

.badge-pastel-draft {
    background-color: #f0e8d1;
    color: #7a6c4f;
}

.badge-pastel-submitted {
    background-color: #d1e7f0;
    color: #2c5f7a;
}

.badge-pastel-review {
    background-color: #e8d1f0;
    color: #6c4f7a;
}

.badge-pastel-accepted {
    background-color: #d1f0d1;
    color: #4f7a4f;
}

.badge-pastel-rejected {
    background-color: #f0d1d1;
    color: #7a4f4f;
}

/* Badge pour les mots-clés */
.badge-keyword {
    background-color: #d1e7f0;
    color: #2c5f7a;
}

/* Badge pour les présentateurs */
.badge-speaker {
    background-color: #d1f0d1;
    color: #4f7a4f;
}

/* Bouton de fermeture pour les badges */
.badge .btn-close {
    font-size: 0.7rem;
    opacity: 0.6;
}

.badge .btn-close:hover {
    opacity: 1;
}

/* Alertes pastel */
.alert-pastel-info {
    background-color: #e8f4f8;
    border-color: #d1e7f0;
    color: #2c5f7a;
}

.alert-pastel-success {
    background-color: #e8f8e8;
    border-color: #d1f0d1;
    color: #4f7a4f;
}

.alert-pastel-warning {
    background-color: #f8f4e8;
    border-color: #f0e8d1;
    color: #7a6c4f;
}

.alert-pastel-danger {
    background-color: #f8e8e8;
    border-color: #f0d1d1;
    color: #7a4f4f;
}

/* Boutons pastel */
.btn-pastel-primary {
    background-color: #a8d5e2;
    border-color: #a8d5e2;
    color: #2c5f7a;
}

.btn-pastel-primary:hover {
    background-color: #8bc5d8;
    border-color: #8bc5d8;
    color: #1f4557;
}

.btn-pastel-success {
    background-color: #a8e2a8;
    border-color: #a8e2a8;
    color: #4f7a4f;
}

.btn-pastel-success:hover {
    background-color: #8bd88b;
    border-color: #8bd88b;
    color: #3d5f3d;
}

/* Cards pastel */
.card-header-pastel {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e8e8e8;
}