/**
 * DjurdjuraKabylie - Styles personnalisés
 * Design moderne et professionnel avec thème culturel berbère
 */

/* === Variables CSS === */
:root {
    --primary-color: #2c5f2d;
    /* Vert montagne */
    --secondary-color: #c89632;
    /* Or berbère */
    --accent-color: #8b4513;
    /* Terre cuite */
    --dark-bg: #1a1a2e;
    --light-bg: #f5f5f0;
    --text-dark: #2d2d2d;
    --text-light: #ffffff;
    --sidebar-width: 280px;
    --header-height: 70px;
    --success-glow: rgba(46, 213, 115, 0.5);
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* === Header === */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1030;
}

.main-header .navbar {
    padding: 0.5rem 1.5rem;
}

.header-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.site-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.sidebar-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.sidebar-toggle:hover {
    transform: scale(1.1);
}

.btn-member:hover {
    background: linear-gradient(135deg, #d4a24c 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 150, 50, 0.5);
    color: var(--text-light);
}

/* === User Profile Dropdown === */
.user-profile-dropdown {
    position: relative;
    cursor: pointer;
}

.user-profile-toggle {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.user-profile-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 2px solid var(--secondary-color);
}

.user-name {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 5px;
}

.user-chevron {
    color: var(--text-light);
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown-menu-custom {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1050;
    padding: 0.5rem 0;
}

.user-profile-dropdown:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item-custom {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-item-custom:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.dropdown-item-custom i {
    width: 20px;
    margin-right: 10px;
    color: var(--secondary-color);
}

.dropdown-item-logout {
    color: #dc3545;
    border-top: 1px solid #eee;
}

.dropdown-item-logout:hover {
    background: #fff5f5;
    color: #dc3545;
}

/* === Modal Styles & Backdrop Blur === */
.modal-backdrop.show {
    opacity: 0.7;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-group-text {
    border-color: rgba(0, 0, 0, 0.05);
}

.modal .form-control:focus {
    background: white;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(200, 150, 50, 0.1);
}

/* === No Sidebar Layout === */
.no-sidebar .sidebar {
    display: none !important;
}

.no-sidebar .main-container {
    margin-left: 0 !important;
    width: 100% !important;
}

.no-sidebar .content-area {
    padding-top: 4rem;
    max-width: 900px;
}

/* === Sticky Sidebar Layout === */
.layout-wrapper {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    position: relative;
    width: 100%;
}

/* === Sidebar === */
.sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: var(--header-height);
    left: 0;
    width: 0;
    height: calc(100vh - var(--header-height));
    background: linear-gradient(180deg, #2d3436 0%, #1e272e 100%);
    overflow: hidden;
    transition: width 0.3s ease;
    z-index: 1020;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.sidebar.active {
    width: var(--sidebar-width);
    overflow-y: auto;
}

.sidebar:not(.active) .sidebar-nav {
    display: none;
}

.sidebar-header {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid var(--secondary-color);
}

/* Ensure content fills remaining space */
.layout-wrapper>*:not(.sidebar) {
    flex-grow: 1;
    min-width: 0;
    width: 100%;
}

.sidebar-header h5 {
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin: 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    border-left-color: var(--secondary-color);
    padding-left: 1.8rem;
}

.sidebar .nav-link i {
    font-size: 1.1rem;
}

.sidebar .nav-link .fa-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.sidebar .nav-link:not(.collapsed) .fa-chevron-down {
    transform: rotate(180deg);
}

.submenu {
    background: rgba(0, 0, 0, 0.2);
    border-left: 2px solid var(--primary-color);
}

.submenu .nav-link {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.submenu-section {
    margin: 0.3rem 0;
}

/* Scrollbar personnalisée pour la sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

/* === Main Container === */
.main-container {
    /* margin-top: var(--header-height); REMOVED handled by wrapper */
    /* margin-left: var(--sidebar-width); REMOVED handled by flex */
    margin: 0;
    width: 100%;
    /* min-height: calc(100vh - var(--header-height)); */
    flex-grow: 1;
    min-width: 0;
    /* Fix flex overflow */
}

/* === Content Area === */
.content-area {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.content-card h1 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.content-card h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-card p {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 1.25rem;
}

/* === CMS Dynamic Content Styling === */
.page-content h2,
.page-content h3,
.page-content h4 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    color: var(--accent-color) !important;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.page-content h2 {
    font-size: 1.8rem;
}

.page-content h3 {
    font-size: 1.5rem;
}

.page-content h4 {
    color: var(--text-dark);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content ul,
.page-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.page-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.page-content ul {
    list-style-type: none;
}

.page-content ul li {
    position: relative;
}

.page-content ul li::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: -1.5rem;
    color: var(--secondary-color);
}

.page-content blockquote {
    background: #fdfdfd;
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
    border-radius: 0 10px 10px 0;
}

/* === Homepage Styles === */
.homepage-bg {
    position: relative;
    /* Hauteur : 100vh moins la hauteur du header (env 70px) */
    min-height: calc(100vh - 70px);
    background-image: url('../images/tamurt.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    /* Centrage vertical global */
    overflow: hidden;
    /* Evite le scroll si possible */
    /* Removed margin/padding adjustments that might conflict */
    width: 100%;
    flex-grow: 1;
}

.homepage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    /* Un peu plus sombre pour lisibilité */
    z-index: 1;
}

.homepage-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 1rem 0;
    /* Padding réduit */
}

/* Modification pour affichage compact */
.welcome-card {
    background: rgba(255, 255, 255, 0.95);
    /* Restored to original */
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-dark);
    /* Restored to original dark text */
    /* Ombre portée légère */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 3rem;
    /* Restored to original larger padding */
    width: 100%;
    max-width: 800px;
    /* Restored to original wider width */
    margin: 0 auto;
    animation: fadeInUp 0.8s ease;
}

/* Category cards plus petites sur homepage */
.category-card .card {
    transition: transform 0.2s;
}

.category-card:hover .card {
    transform: translateY(-5px);
}

@media (max-width: 992px) {
    .homepage-bg {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
        overflow-y: auto;
        /* Scroll autorisé sur mobile */
        align-items: flex-start;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-card h1 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    font-size: 3rem;
    /* Restored to original */
    margin-bottom: 1.5rem;
    text-align: center;
}

.welcome-card p {
    color: var(--text-dark);
    font-size: 1.2rem;
    /* Restored to original */
    line-height: 1.8;
    text-align: center;
}

/* === Footer === */
/* === Footer === */
.main-footer {
    background: linear-gradient(135deg, #1e272e 0%, #2d3436 100%);
    color: var(--text-light);
    padding: 0.4rem 0;
    transition: margin-left 0.3s ease;
    border-top: 2px solid var(--secondary-color);
    position: relative;
    z-index: 10;
    margin-left: 0;
    width: 100%;
}

.btn-footer-white {
    background: transparent;
    color: white !important;
    border: none;
    font-weight: 500;
    padding: 0.3rem 0;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
}

.btn-footer-white:hover {
    color: #2ed573 !important;
    transform: translateY(-2px);
    text-shadow: 0 0 12px rgba(46, 213, 115, 0.4);
}

.btn-footer-white::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #2ed573;
    transition: width 0.3s ease;
}

.btn-footer-white:hover::after {
    width: 100%;
}

.visitor-counter-compact {
    margin-top: 0 !important;
}

/* === Responsive Design === */
@media (max-width: 992px) {
    /* Suppression du masquage de la sidebar */
    /* .sidebar { transform: translateX(-100%); } */

    /* La sidebar reste visible */
    .sidebar {
        transform: none;
        width: 200px;
        /* Réduction légère pour mobile */
    }

    /* Ajustement du contenu pour laisser la place à la sidebar */
    /* Ajustement du contenu pour laisser la place à la sidebar */
    .main-container {
        /* margin-left: 200px; */
        /* width: calc(100% - 200px); */
        width: auto;
    }

    .main-footer {
        margin-left: 0;
        /* Footer stays full width */
        width: 100%;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .welcome-card h1 {
        font-size: 2.2rem;
    }

    .content-card {
        padding: 1.5rem;
    }

    /* Mobile: Stack sidebar or hide? */
    /* Per user requirement: Sidebar always visible */
    /* Keep flex row but adjust widths */

    /* Sidebar reduced width handled by existing variables or overrides */
    .sidebar {
        width: 200px;
        transform: none;
        /* Ensure visible */
    }

    /* Content wrapper */
    .main-container,
    .homepage-bg {
        /* width: calc(100% - 200px); Flex handles this automatically */
        width: auto;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 250px;
    }

    .site-title {
        font-size: 1.3rem;
    }

    .btn-member {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .welcome-card {
        padding: 2rem;
    }

    .welcome-card h1 {
        font-size: 1.8rem;
    }

    .welcome-card p {
        font-size: 1rem;
    }

    /* On small screens, maybe sidebar overlay? */
    /* But keeping previous "always visible" logic if desired, or standard collapse */
    :root {
        --sidebar-width: 250px;
        /* Resetting? */
    }

    /* If we want standard mobile behavior (hidden sidebar with toggle) */
    /* .layout-wrapper { display: block; } */
    /* .sidebar { position: fixed; ... transform: translateX(-100%); } */
}

/* === Animations et effets === */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Effet de hover sur les cartes */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* === Utilitaires === */
.text-primary-custom {
    color: var(--primary-color);
}

.text-secondary-custom {
    color: var(--secondary-color);
}

.bg-primary-custom {
    background-color: var(--primary-color);
}

.bg-secondary-custom {
    background-color: var(--secondary-color);
}

/* === Back to Top Button === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 10000;
    /* Force highest z-index */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease, bottom 0.2s ease-out;
}

.back-to-top:hover {
    transform: scale(1.1);
}

/* === Member Area Styles === */

/* Login Button in Header */
.btn-member {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #d4a24c 100%);
    color: var(--text-light);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(200, 150, 50, 0.3);
}

/* Registration & Profile Cards */
.register-container,
.member-container {
    max-width: 650px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.register-card,
.member-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease;
}

.register-header,
.member-header {
    text-align: center;
    margin-bottom: 2rem;
}

.register-icon,
.member-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 25px rgba(44, 95, 45, 0.3);
}

.register-icon i,
.member-icon i {
    font-size: 2rem;
    color: white;
}

.register-header h1,
.member-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.register-header p,
.member-header p {
    color: #888;
    font-size: 0.95rem;
}

/* Avatar Upload */
.avatar-upload {
    display: inline-block;
    text-align: center;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.avatar-preview:hover {
    transform: scale(1.05);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.avatar-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 95, 45, 0.3);
    color: white;
}

/* Form Floating Labels styling */
.register-card .form-floating .form-control,
.member-card .form-floating .form-control {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.register-card .form-floating .form-control:focus,
.member-card .form-floating .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 95, 45, 0.15);
}

.register-card .input-group .form-control,
.member-card .input-group .form-control {
    border-right: none;
}

.register-card .input-group .btn-outline-secondary,
.member-card .input-group .btn-outline-secondary {
    border: 2px solid #e0e0e0;
    border-left: none;
    border-radius: 0 10px 10px 0;
    color: #888;
    transition: all 0.3s ease;
}

.register-card .input-group .btn-outline-secondary:hover,
.member-card .input-group .btn-outline-secondary:hover {
    color: var(--primary-color);
    background: #f8f9fa;
    border-color: var(--primary-color);
}

/* Form Feedback (password match, uniqueness) */
.form-feedback {
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
    margin-top: 0.25rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.feedback-success {
    color: #198754;
    background: rgba(25, 135, 84, 0.08);
}

.feedback-error {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.08);
}

/* Primary Register / Save Button */
.btn-primary-register {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(44, 95, 45, 0.3);
}

.btn-primary-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 95, 45, 0.4);
    color: white;
}

/* Login Modal */
.login-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.login-modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    padding: 2rem 1.5rem 1.5rem;
    position: relative;
}

.login-modal-header .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.login-modal-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    backdrop-filter: blur(5px);
}

.login-modal-icon i {
    font-size: 2rem;
    color: white;
}

.login-modal-header .modal-title {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
}

.btn-login-submit {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: none;
    padding: 0.7rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(44, 95, 45, 0.3);
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 95, 45, 0.4);
    color: white;
}

.register-link {
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: var(--accent-color);
}

/* Form Validation States */
.form-control.is-valid {
    border-color: #198754 !important;
}

.form-control.is-invalid {
    border-color: #dc3545 !important;
}

/* Responsive adjustments for member area */
@media (max-width: 768px) {

    .register-container,
    .member-container {
        margin: 1rem auto;
    }

    .register-card,
    .member-card {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .register-header h1,
    .member-header h1 {
        font-size: 1.4rem;
    }

    .register-icon,
    .member-icon {
        width: 60px;
        height: 60px;
    }

    .register-icon i,
    .member-icon i {
        font-size: 1.5rem;
    }

    .avatar-preview {
        width: 90px;
        height: 90px;
    }

    .btn-member {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* === Toast Notifications === */
.toast-container-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.flash-toast {
    width: auto !important;
    max-width: 90vw;
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: toastSlideIn 0.4s ease;
}

.flash-toast .toast-body {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    border-radius: 15px;
}

.flash-toast .toast-body i {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.toast-success .toast-body {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
}

.toast-danger .toast-body {
    background: linear-gradient(135deg, #dc3545 0%, #e74c6f 100%);
}

.toast-warning .toast-body {
    background: linear-gradient(135deg, #d4a24c 0%, #ffc107 100%);
}

.toast-info .toast-body {
    background: linear-gradient(135deg, #0d6efd 0%, #6ea8fe 100%);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .flash-toast {
        min-width: 280px;
        max-width: 90vw;
    }
}