/* PrestaBoost - Ultra Modern Design 2025 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Modern color palette - Emerald Green Theme */
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-light: #34d399;
    --secondary: #14b8a6;
    --accent: #06b6d4;

    /* Neutral colors with depth */
    --gray-50: #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-900: #18181b;

    /* Semantic colors */
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Surfaces with glassmorphism */
    --surface: rgba(255, 255, 255, 0.8);
    --surface-hover: rgba(255, 255, 255, 0.95);

    /* Shadows - layered depth */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.2);

    /* Glows */
    --glow-primary: 0 0 20px rgba(16, 185, 129, 0.3);
    --glow-secondary: 0 0 20px rgba(20, 184, 166, 0.3);

    /* Border radius */
    --radius-sm: 0.5rem;
    --radius: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #059669 0%, #14b8a6 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Static background overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(20, 184, 166, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(52, 211, 153, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* Card with glassmorphism */
.card {
    background: var(--surface);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.5);
}

.card:hover::before {
    opacity: 1;
}

/* Modern buttons with gradients */
.btn {
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    border: none;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: var(--shadow), var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--glow-primary);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-900);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-200);
    transform: translateY(-2px);
}

/* Modern input fields */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    transition: var(--transition);
    background: white;
    color: var(--gray-900);
    font-family: inherit;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-group input::placeholder {
    color: var(--gray-400);
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: var(--transition);
}

.sidebar-logo-itroom {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    text-align: center;
    background: white;
}

.sidebar-logo-itroom img {
    max-width: 120px;
    height: auto;
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    min-width: 0;
    overflow: hidden;
}

.sidebar-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.sidebar-brand img {
    max-height: 48px;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

/* Hide the text if logo is present */
.sidebar-brand img ~ span {
    display: none;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.25rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1.25rem;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    position: relative;
    border-left: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-menu a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.sidebar-menu a:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.sidebar-menu a:hover::before {
    width: 3px;
}

.sidebar-menu a.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(20, 184, 166, 0.1));
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}

.sidebar-menu a.active::before {
    width: 3px;
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--gray-200);
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.sidebar-footer a:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.sidebar-toggle:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.sidebar-toggle-icon {
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.sidebar-toggle-icon span {
    display: block;
    height: 3px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Main content with sidebar */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    transition: var(--transition);
    padding: 2rem;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Container width limits for better readability */
.main-content > * {
    max-width: 100%;
}

@media (max-width: 1200px) {
    .main-content {
        padding: 1.5rem;
    }
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.table-responsive table {
    min-width: 600px;
}

/* Dashboard Header / Banner */
.dashboard-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 30px 40px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.dashboard-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    margin: 0;
}

.dashboard-header p {
    color: var(--gray-600);
    margin: 0;
    font-size: 15px;
}

.dashboard-header img {
    max-height: 50px;
    max-width: 150px;
    object-fit: contain;
}

.dashboard-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.dashboard-header-stats {
    margin-left: auto;
    display: flex;
    gap: 40px;
}

.dashboard-stat {
    text-align: right;
}

.dashboard-stat-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.dashboard-stat-value.primary {
    color: var(--primary);
}

.dashboard-stat-value.success {
    color: #10b981;
}

.dashboard-stat-label {
    font-size: 13px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Responsive Design - Tablet and Mobile */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        max-width: 85vw;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.2);
    }

    .sidebar-toggle {
        display: block;
    }

    .sidebar-header {
        padding: 1.25rem 1rem;
    }

    .sidebar-brand {
        font-size: 1.125rem;
    }

    .sidebar-brand img {
        max-height: 42px;
        max-width: 100%;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .main-content.sidebar-open {
        margin-left: 0;
    }

    /* Stats grid responsive */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Welcome section */
    .welcome-section {
        padding: 1.75rem 1.5rem;
    }

    .welcome-section h1 {
        font-size: 1.75rem;
    }

    .welcome-section p {
        font-size: 1rem;
    }

    /* Cards */
    .card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    /* Boutique cards */
    .boutique-card {
        padding: 1.5rem;
    }

    .boutique-name {
        font-size: 1.25rem;
    }

    .boutique-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .boutique-actions .btn {
        width: 100%;
    }

    /* Alert sections */
    .alert-section {
        margin-bottom: 1.5rem;
    }

    /* Dashboard Header responsive */
    .dashboard-header {
        padding: 20px 24px;
        border-radius: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .dashboard-header h1 {
        font-size: 22px;
    }

    .dashboard-header p {
        font-size: 14px;
    }

    .dashboard-header img {
        max-height: 42px;
        max-width: 120px;
    }

    .dashboard-header-left {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .dashboard-header-stats {
        margin-left: 0;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 20px;
    }

    .dashboard-stat {
        text-align: left;
        padding: 15px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 12px;
    }

    .dashboard-stat-value {
        font-size: 26px;
    }

    .dashboard-stat-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
        max-width: 100vw;
    }

    .sidebar-header {
        padding: 1rem 0.875rem;
    }

    .sidebar-brand {
        font-size: 1rem;
    }

    .sidebar-brand img {
        max-height: 38px;
        max-width: 100%;
    }

    .sidebar-menu a {
        padding: 0.65rem 1rem;
        font-size: 0.875rem;
    }

    .sidebar-footer a {
        padding: 0.65rem;
        font-size: 0.875rem;
    }

    .main-content {
        padding: 0.75rem;
    }

    /* Stats grid mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .stat-label {
        font-size: 0.9375rem;
    }

    /* Welcome section mobile */
    .welcome-section {
        padding: 1.5rem 1.25rem;
    }

    .welcome-section h1 {
        font-size: 1.5rem;
    }

    .welcome-section p {
        font-size: 0.9375rem;
    }

    /* Cards mobile */
    .card {
        padding: 1.25rem;
        border-radius: 14px;
    }

    /* Boutique cards mobile */
    .boutique-card {
        padding: 1.25rem;
    }

    .boutique-name {
        font-size: 1.125rem;
    }

    .boutique-domain {
        font-size: 0.875rem;
    }

    /* Buttons mobile */
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    /* Input groups */
    .input-group {
        margin-bottom: 1rem;
    }

    .input-group label {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }

    .input-group input,
    .input-group select,
    .input-group textarea {
        padding: 0.625rem 0.875rem;
        font-size: 0.9375rem;
    }

    /* Dashboard Header mobile */
    .dashboard-header {
        padding: 18px 20px;
        border-radius: 16px;
        margin-bottom: 20px;
        gap: 16px;
    }

    .dashboard-header h1 {
        font-size: 19px;
    }

    .dashboard-header p {
        font-size: 13px;
    }

    .dashboard-header img {
        max-height: 36px;
        max-width: 100px;
    }

    .dashboard-header-left {
        gap: 12px;
    }

    .dashboard-header-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dashboard-stat {
        padding: 12px;
    }

    .dashboard-stat-value {
        font-size: 22px;
    }

    .dashboard-stat-label {
        font-size: 11px;
    }

    /* Page Header mobile */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .page-header .btn {
        width: 100%;
        text-align: center;
    }

    /* Users Table mobile */
    .users-table-card {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        border-radius: 0;
    }

    .users-table {
        display: block;
        min-width: 0;
    }

    .users-table thead {
        display: none;
    }

    .users-table tbody {
        display: block;
    }

    .users-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid var(--surface-light);
        border-radius: 12px;
        padding: 15px;
        background: white;
    }

    .users-table td {
        display: flex;
        flex-direction: column;
        padding: 8px 0 !important;
        text-align: left !important;
        border: none;
    }

    .users-table td::before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 5px;
        color: var(--gray-600);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .users-table td > *:not(.role-badge) {
        width: fit-content;
        max-width: 100%;
    }

    .users-table td .role-badge {
        width: auto !important;
        min-width: max-content !important;
        max-width: none !important;
        flex-shrink: 0 !important;
        word-break: keep-all !important;
    }

    .users-table td.actions-column {
        margin-top: 10px;
        padding-top: 15px !important;
        border-top: 1px solid var(--surface-light);
    }

    .users-table td.actions-column::before {
        display: none;
    }

    .user-actions {
        flex-direction: column;
        justify-content: flex-start;
        width: 100%;
        gap: 10px;
    }

    .user-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .user-actions form {
        width: 100%;
    }

    .user-actions form .btn {
        width: 100%;
    }

    .role-badge {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 5px 12px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: none !important;
        min-width: max-content !important;
        width: auto !important;
        word-break: keep-all !important;
        flex-shrink: 0 !important;
    }

    .user-name,
    .user-email,
    .user-boutiques {
        font-size: 14px;
        color: var(--dark-text);
        word-break: break-word;
    }
}

/* Page Header (Users, etc.) */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-header h1 {
    font-size: 32px;
    color: var(--dark-text);
    margin: 0;
}

/* Users Table */
.users-table-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 100%;
}

.users-table-card .table-scroll-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Scroll indicators for users table */
.users-table-card .table-scroll-wrapper::before,
.users-table-card .table-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 20px;
    width: 40px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.users-table-card .table-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent);
}

.users-table-card .table-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.1), transparent);
}

.users-table-card .table-scroll-wrapper.scrolled-left::before {
    opacity: 1;
}

.users-table-card .table-scroll-wrapper.scrolled-right::after {
    opacity: 1;
}

.users-table-card .table-scroll-wrapper::-webkit-scrollbar {
    height: 12px;
}

.users-table-card .table-scroll-wrapper::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 6px;
}

.users-table-card .table-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 6px;
    border: 2px solid var(--gray-100);
}

.users-table-card .table-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    opacity: 0.8;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.users-table thead tr {
    background-color: var(--surface-light);
    border-bottom: 2px solid var(--surface-dark);
}

.users-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-text);
    white-space: nowrap;
}

.users-table th.actions-column {
    text-align: right;
}

.users-table tbody tr {
    border-bottom: 1px solid var(--surface-light);
    transition: background-color 0.2s ease;
}

.users-table tbody tr:hover {
    background-color: var(--gray-50);
}

.users-table td {
    padding: 20px;
}

.users-table td.actions-column {
    text-align: right;
}

.user-name {
    font-weight: 500;
    color: var(--dark-text);
}

.user-email {
    color: var(--dark-text);
    opacity: 0.8;
}

.user-boutiques {
    color: var(--dark-text);
    opacity: 0.8;
}

.role-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.role-badge.admin {
    background-color: var(--primary);
    color: white;
}

.role-badge.user {
    background-color: var(--surface-light);
    color: var(--dark-text);
}

.user-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.user-actions form {
    display: inline;
    margin: 0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-danger {
    background-color: #ef4444;
    border-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
    border-color: #dc2626;
}

.empty-state {
    padding: 60px;
    text-align: center;
}

.empty-state p {
    color: var(--dark-text);
    opacity: 0.6;
    margin: 0;
}

/* Legacy navbar support (for pages not yet updated) */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 1rem 2rem;
    border-radius: var(--radius-2xl);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.navbar:hover {
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.navbar-menu {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    padding: 0.625rem 1.125rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-size: 0.9375rem;
    position: relative;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: var(--transition);
}

.navbar-menu a:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.navbar-menu a:hover::after {
    width: 80%;
}

.navbar-menu a.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

/* Modern alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border: 1px solid;
    backdrop-filter: blur(10px);
    animation: slideInDown 0.4s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.3);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.3);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.3);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border-color: rgba(245, 158, 11, 0.3);
}

/* Grid system */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Utilities */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-menu {
        width: 100%;
        justify-content: center;
    }
}
