/* Admin Theme - Based on themes-admin.png design */
/* This theme can be extended by other pages */

:root {
    /* Colors - Based on the design */
    --theme-bg-primary: #ffffff;
    --theme-bg-secondary: #f9fafb;
    --theme-text-primary: #1a1a1a;
    --theme-text-secondary: #344054;
    --theme-text-tertiary: #667085;
    --theme-accent-green: #12B76A;
    --theme-border: #e4e7ec;
    --theme-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    --theme-shadow-lg: 0px 4px 6px -2px rgba(16, 24, 40, 0.03), 0px 12px 16px -4px rgba(16, 24, 40, 0.08);

    /* Typography */
    --theme-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --theme-font-size-xs: 0.75rem;
    --theme-font-size-sm: 0.875rem;
    --theme-font-size-base: 1rem;
    --theme-font-size-lg: 1.125rem;
    --theme-font-size-xl: 1.25rem;
    --theme-font-size-2xl: 1.5rem;
    --theme-font-size-3xl: 1.875rem;

    /* Spacing */
    --theme-spacing-xs: 0.5rem;
    --theme-spacing-sm: 0.75rem;
    --theme-spacing-md: 1rem;
    --theme-spacing-lg: 1.5rem;
    --theme-spacing-xl: 2rem;
    --theme-spacing-2xl: 2.5rem;

    /* Border Radius */
    --theme-radius-sm: 0.375rem;
    --theme-radius-md: 0.5rem;
    --theme-radius-lg: 0.75rem;
    --theme-radius-xl: 1rem;
}

/* Base Styles */
.admin-theme {
    font-family: var(--theme-font-family);
    background-color: var(--theme-bg-primary);
    color: var(--theme-text-primary);
}

/* Dashboard Container */
.admin-dashboard-container {
    background-color: var(--theme-bg-primary);
    padding: var(--theme-spacing-xl);
    min-height: calc(100vh - 200px);
}

/* Dashboard Header */
.admin-dashboard-header {
    margin-bottom: var(--theme-spacing-2xl);
}

.admin-dashboard-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--theme-spacing-lg);
    flex-wrap: wrap;
}

.admin-dashboard-header-title {
    flex: 1;
    min-width: 0;
}

.admin-dashboard-header-actions {
    display: flex;
    gap: var(--theme-spacing-sm);
    flex-wrap: wrap;
    align-items: flex-start;
}

.admin-dashboard-title {
    font-size: var(--theme-font-size-3xl);
    font-weight: 700;
    color: var(--theme-text-primary);
    margin: 0 0 var(--theme-spacing-xs) 0;
    line-height: 1.2;
    word-wrap: break-word;
}

.admin-dashboard-subtitle {
    font-size: var(--theme-font-size-base);
    color: var(--theme-text-tertiary);
    margin: 0;
    word-wrap: break-word;
}

/* Stat Cards */
.admin-stat-card {
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-lg);
    padding: var(--theme-spacing-lg);
    box-shadow: var(--theme-shadow);
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: var(--theme-spacing-md);
}

.admin-stat-card:hover {
    box-shadow: var(--theme-shadow-lg);
    border-color: var(--theme-border);
}

.admin-stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--theme-radius-md);
    background-color: var(--theme-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--theme-text-secondary);
    font-size: var(--theme-font-size-xl);
}

.admin-stat-card-icon-primary {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.admin-stat-card-icon-success {
    background-color: #D1FAE5;
    color: #065F46;
}

.admin-stat-card-icon-warning {
    background-color: #FEF3C7;
    color: #92400E;
}

.admin-stat-card-icon-info {
    background-color: #E0F2FE;
    color: #0369A1;
}

.admin-stat-card-icon-danger {
    background-color: #FEE2E2;
    color: #991B1B;
}

.admin-stat-card-content {
    flex: 1;
    min-width: 0;
}

.admin-stat-card-label {
    font-size: var(--theme-font-size-sm);
    color: var(--theme-text-tertiary);
    margin: 0 0 var(--theme-spacing-xs) 0;
    font-weight: 400;
}

.admin-stat-card-value {
    font-size: var(--theme-font-size-2xl);
    font-weight: 700;
    color: var(--theme-text-primary);
    margin: 0;
    line-height: 1.2;
}

.admin-stat-card-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--theme-font-size-sm);
    color: var(--theme-accent-green);
    margin-top: var(--theme-spacing-xs);
    font-weight: 500;
}

/* Search Card */
.admin-search-card {
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-lg);
    padding: var(--theme-spacing-lg);
    box-shadow: var(--theme-shadow);
    margin-bottom: var(--theme-spacing-xl);
}

.admin-search-input-group {
    position: relative;
}

.admin-search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-md);
    padding: var(--theme-spacing-sm) var(--theme-spacing-md);
    transition: all 0.2s ease;
}

.admin-search-input-wrapper:focus-within {
    border-color: var(--theme-text-secondary);
    box-shadow: 0 0 0 3px rgba(52, 64, 84, 0.1);
}

.admin-search-icon {
    color: var(--theme-text-tertiary);
    margin-right: var(--theme-spacing-sm);
    font-size: var(--theme-font-size-base);
}

.admin-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: var(--theme-font-size-base);
    color: var(--theme-text-primary);
    font-family: var(--theme-font-family);
}

.admin-search-input::placeholder {
    color: var(--theme-text-tertiary);
}

.admin-search-button {
    background: var(--theme-text-primary);
    color: var(--theme-bg-primary);
    border: none;
    border-radius: var(--theme-radius-md);
    padding: var(--theme-spacing-sm) var(--theme-spacing-lg);
    font-size: var(--theme-font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: var(--theme-spacing-sm);
}

.admin-search-button:hover {
    background: var(--theme-text-secondary);
}

/* Search Results Dropdown */
.admin-search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-md);
    box-shadow: var(--theme-shadow-lg);
    margin-top: var(--theme-spacing-xs);
    z-index: 1050;
    max-height: 500px;
    overflow-y: auto;
    display: none;
}

.admin-search-result-item {
    padding: var(--theme-spacing-md);
    border-bottom: 1px solid var(--theme-border);
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: var(--theme-text-primary);
    display: block;
}

.admin-search-result-item:hover,
.admin-search-result-item.active {
    background-color: var(--theme-bg-secondary);
}

.admin-search-result-item:last-child {
    border-bottom: none;
}

.admin-search-results-footer {
    padding: var(--theme-spacing-sm) var(--theme-spacing-md);
    border-top: 1px solid var(--theme-border);
    background: var(--theme-bg-secondary);
    text-align: center;
}

/* Action Cards */
.admin-action-card {
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-lg);
    padding: var(--theme-spacing-xl);
    box-shadow: var(--theme-shadow);
    transition: all 0.2s ease;
    height: 100%;
}

.admin-action-card:hover {
    box-shadow: var(--theme-shadow-lg);
    border-color: var(--theme-border);
}

.admin-action-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--theme-radius-md);
    background-color: var(--theme-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--theme-spacing-md);
    color: var(--theme-text-secondary);
    font-size: var(--theme-font-size-xl);
}

.admin-action-card-title {
    font-size: var(--theme-font-size-lg);
    font-weight: 600;
    color: var(--theme-text-primary);
    margin: 0 0 var(--theme-spacing-xs) 0;
}

.admin-action-card-description {
    font-size: var(--theme-font-size-sm);
    color: var(--theme-text-tertiary);
    margin: 0 0 var(--theme-spacing-md) 0;
    line-height: 1.5;
}

.admin-action-card-buttons {
    display: flex;
    gap: var(--theme-spacing-sm);
    flex-wrap: wrap;
}

.admin-action-button {
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-md);
    padding: var(--theme-spacing-xs) var(--theme-spacing-md);
    font-size: var(--theme-font-size-sm);
    font-weight: 500;
    color: var(--theme-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--theme-spacing-xs);
    font-family: var(--theme-font-family);
}

.admin-action-button:hover {
    background: var(--theme-bg-secondary);
    border-color: var(--theme-text-secondary);
    color: var(--theme-text-primary);
}

/* Section Header */
.admin-section-header {
    margin-bottom: var(--theme-spacing-lg);
}

.admin-section-title {
    font-size: var(--theme-font-size-xl);
    font-weight: 600;
    color: var(--theme-text-primary);
    margin: 0;
}

/* Sidebar Layout */
.admin-layout-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: var(--theme-bg-primary);
}

/* Sidebar */
.admin-sidebar {
    width: 280px;
    background: var(--theme-bg-primary);
    border-right: 1px solid var(--theme-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: width 0.3s ease;
}

/* Minimized Sidebar */
.admin-sidebar.minimized {
    width: 80px;
}

.admin-sidebar.minimized .admin-sidebar-logo-text,
.admin-sidebar.minimized .admin-sidebar-account,
.admin-sidebar.minimized .admin-nav-item span,
.admin-sidebar.minimized .admin-sidebar-user-info,
.admin-sidebar.minimized .admin-sidebar-user-name,
.admin-sidebar.minimized .admin-sidebar-user-email {
    opacity: 0;
    visibility: hidden;
    width: 0;
    height: 0;
    overflow: hidden;
}

.admin-sidebar.minimized .admin-sidebar-logo {
    justify-content: center;
    width: 100%;
    margin-bottom: 0;
    position: relative;
}

.admin-sidebar.minimized .admin-sidebar-account-switcher {
    position: absolute;
    top: 0;
    right: 0;
}

.admin-sidebar.minimized .admin-sidebar-logo-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    flex-shrink: 0;
    margin: 0;
    aspect-ratio: 1 / 1;
}

.admin-sidebar.minimized .admin-nav-item {
    justify-content: center;
    padding: var(--theme-spacing-sm);
}

.admin-sidebar.minimized .admin-nav-item-icon {
    margin: 0;
}

.admin-sidebar.minimized .admin-nav-item-arrow {
    display: none;
}

.admin-sidebar.minimized .admin-nav-submenu {
    display: none !important;
}

.admin-sidebar.minimized .admin-sidebar-user {
    justify-content: center;
    padding: var(--theme-spacing-md);
}

.admin-sidebar.minimized .admin-sidebar-user-avatar {
    margin: 0;
}

/* Sidebar Header */
.admin-sidebar-header {
    padding: var(--theme-spacing-lg);
    border-bottom: 1px solid var(--theme-border);
}

.admin-sidebar.minimized .admin-sidebar-header {
    padding: var(--theme-spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.admin-sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--theme-spacing-sm);
    margin-bottom: var(--theme-spacing-xs);
    position: relative;
}

.admin-sidebar-logo-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    flex-shrink: 0;
    background: var(--theme-text-secondary);
    border-radius: var(--theme-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-bg-primary);
    font-weight: 700;
    font-size: var(--theme-font-size-sm);
    box-sizing: border-box;
}

.admin-sidebar-logo-text {
    font-size: var(--theme-font-size-lg);
    font-weight: 700;
    color: var(--theme-text-primary);
    margin: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.admin-sidebar-account {
    font-size: var(--theme-font-size-sm);
    color: var(--theme-text-tertiary);
    margin: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.admin-sidebar-account-switcher {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--theme-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-text-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.admin-sidebar-account-switcher:hover {
    background: var(--theme-border);
}

.admin-sidebar.minimized .admin-sidebar-account-switcher {
    margin-left: 0;
}

#sidebarToggleIcon {
    transition: transform 0.3s ease;
}

.admin-sidebar.minimized #sidebarToggleIcon {
    transform: rotate(180deg);
}

/* Sidebar Search */
.admin-sidebar-search {
    padding: var(--theme-spacing-md) var(--theme-spacing-lg);
    border-bottom: 1px solid var(--theme-border);
}

.admin-sidebar-search-input {
    width: 100%;
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-md);
    padding: var(--theme-spacing-sm) var(--theme-spacing-md);
    font-size: var(--theme-font-size-sm);
    color: var(--theme-text-primary);
    font-family: var(--theme-font-family);
    outline: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--theme-spacing-sm);
}

.admin-sidebar-search-input:focus {
    border-color: var(--theme-text-secondary);
    box-shadow: 0 0 0 3px rgba(52, 64, 84, 0.1);
}

.admin-sidebar-search-input::placeholder {
    color: var(--theme-text-tertiary);
}

/* Sidebar Navigation */
.admin-sidebar-nav {
    flex: 1;
    padding: var(--theme-spacing-md) 0;
    overflow-y: auto;
}

.admin-nav-item {
    display: block;
    padding: var(--theme-spacing-sm) var(--theme-spacing-lg);
    color: var(--theme-text-secondary);
    text-decoration: none;
    font-size: var(--theme-font-size-sm);
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--theme-spacing-sm);
    position: relative;
}

.admin-nav-item span {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.admin-nav-item:hover {
    background: var(--theme-bg-secondary);
    color: var(--theme-text-primary);
}

.admin-nav-item.active {
    background: var(--theme-bg-secondary);
    color: var(--theme-text-primary);
}

.admin-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--theme-text-primary);
    border-radius: 0 2px 2px 0;
}

.admin-nav-item-icon {
    width: 20px;
    text-align: center;
    color: var(--theme-text-tertiary);
}

.admin-nav-item.active .admin-nav-item-icon {
    color: var(--theme-text-primary);
}

.admin-nav-item-arrow {
    margin-left: auto;
    font-size: var(--theme-font-size-xs);
    color: var(--theme-text-tertiary);
    transition: transform 0.2s ease;
}

.admin-nav-item.expanded .admin-nav-item-arrow {
    transform: rotate(180deg);
}

/* Nav Submenu */
.admin-nav-submenu {
    display: none;
    background: var(--theme-bg-secondary);
}

.admin-nav-item.expanded + .admin-nav-submenu,
.admin-nav-submenu.show {
    display: block;
}

.admin-nav-submenu-item {
    display: block;
    padding: var(--theme-spacing-sm) var(--theme-spacing-lg) var(--theme-spacing-sm) calc(var(--theme-spacing-lg) + 28px);
    color: var(--theme-text-secondary);
    text-decoration: none;
    font-size: var(--theme-font-size-sm);
    transition: all 0.2s ease;
    position: relative;
}

.admin-nav-submenu-item:hover {
    background: rgba(52, 64, 84, 0.05);
    color: var(--theme-text-primary);
}

.admin-nav-submenu-item.active {
    background: rgba(52, 64, 84, 0.08);
    color: var(--theme-text-primary);
}

.admin-nav-submenu-item.active::before {
    content: '';
    position: absolute;
    left: calc(var(--theme-spacing-lg) + 28px);
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--theme-text-primary);
    border-radius: 50%;
}

/* Sidebar Footer */
.admin-sidebar-footer {
    padding: var(--theme-spacing-md) var(--theme-spacing-lg);
    border-top: 1px solid var(--theme-border);
}

.admin-sidebar-footer-item {
    display: flex;
    align-items: center;
    gap: var(--theme-spacing-sm);
    padding: var(--theme-spacing-sm) 0;
    color: var(--theme-text-secondary);
    text-decoration: none;
    font-size: var(--theme-font-size-sm);
    font-weight: 500;
    transition: all 0.2s ease;
}

.admin-sidebar-footer-item:hover {
    color: var(--theme-text-primary);
}

.admin-sidebar-footer-item-icon {
    width: 20px;
    text-align: center;
    color: var(--theme-text-tertiary);
}

.admin-sidebar-footer-badge {
    margin-left: auto;
    background: var(--theme-text-secondary);
    color: var(--theme-bg-primary);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: var(--theme-font-size-xs);
    font-weight: 600;
}

/* Sidebar User Profile */
.admin-sidebar-user {
    padding: var(--theme-spacing-md) var(--theme-spacing-lg);
    border-top: 1px solid var(--theme-border);
    display: flex;
    align-items: center;
    gap: var(--theme-spacing-sm);
}

.admin-sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--theme-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-text-secondary);
    font-weight: 600;
    flex-shrink: 0;
}

.admin-sidebar-user-info {
    flex: 1;
    min-width: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.admin-sidebar-user-name {
    font-size: var(--theme-font-size-sm);
    font-weight: 500;
    color: var(--theme-text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar-user-email {
    font-size: var(--theme-font-size-xs);
    color: var(--theme-text-tertiary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-sidebar-user-menu {
    color: var(--theme-text-tertiary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-sidebar-user-menu:hover {
    color: var(--theme-text-primary);
}

.admin-sidebar-user {
    position: relative;
}

/* User Dropdown Menu */
.admin-user-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-md);
    box-shadow: var(--theme-shadow-lg);
    margin-bottom: var(--theme-spacing-xs);
    z-index: 100;
    overflow: hidden;
}

.admin-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--theme-spacing-sm);
    padding: var(--theme-spacing-sm) var(--theme-spacing-md);
    color: var(--theme-text-secondary);
    text-decoration: none;
    font-size: var(--theme-font-size-sm);
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--theme-border);
}

.admin-user-dropdown-item:last-child {
    border-bottom: none;
}

.admin-user-dropdown-item:hover {
    background: var(--theme-bg-secondary);
    color: var(--theme-text-primary);
}

.admin-user-dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--theme-text-tertiary);
}

/* Main Content Area */
.admin-main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    background: var(--theme-bg-primary);
    transition: margin-left 0.3s ease;
}

.admin-main-content.sidebar-minimized {
    margin-left: 80px;
}

.admin-main-header {
    background: var(--theme-bg-primary);
    border-bottom: 1px solid var(--theme-border);
    padding: var(--theme-spacing-md) var(--theme-spacing-xl);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--theme-spacing-sm);
}

.admin-header-button {
    display: inline-flex;
    align-items: center;
    gap: var(--theme-spacing-xs);
    padding: var(--theme-spacing-xs) var(--theme-spacing-md);
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-md);
    color: var(--theme-text-secondary);
    text-decoration: none;
    font-size: var(--theme-font-size-sm);
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: var(--theme-font-family);
}

.admin-header-button:hover {
    background: var(--theme-bg-secondary);
    border-color: var(--theme-text-secondary);
    color: var(--theme-text-primary);
}

.admin-header-button-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--theme-accent-green);
}

/* Notification Dropdown */
.admin-notification-dropdown-wrapper {
    position: relative;
}

.admin-notification-toggle {
    position: relative;
    cursor: pointer;
    border: none;
    background: var(--theme-bg-primary);
    color: var(--theme-text-secondary);
}

.admin-notification-toggle:hover {
    background: var(--theme-bg-secondary);
    border-color: var(--theme-text-secondary);
    color: var(--theme-text-primary);
}

.admin-notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc2626;
    color: #ffffff;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0 6px;
    border: 2px solid var(--theme-bg-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 2rem);
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-lg);
    box-shadow: var(--theme-shadow-lg);
    z-index: 1000;
    display: none;
    flex-direction: column;
    max-height: 600px;
    overflow: hidden;
}

.admin-notification-dropdown-header {
    padding: var(--theme-spacing-md) var(--theme-spacing-lg);
    border-bottom: 1px solid var(--theme-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.admin-notification-dropdown-title {
    font-size: var(--theme-font-size-lg);
    font-weight: 600;
    color: var(--theme-text-primary);
    margin: 0;
}

.admin-notification-dropdown-actions {
    display: flex;
    gap: var(--theme-spacing-xs);
}

.admin-notification-action-btn {
    display: flex;
    align-items: center;
    gap: var(--theme-spacing-xs);
    padding: var(--theme-spacing-xs) var(--theme-spacing-sm);
    background: transparent;
    border: none;
    border-radius: var(--theme-radius-sm);
    color: var(--theme-text-secondary);
    font-size: var(--theme-font-size-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-notification-action-btn:hover {
    background: var(--theme-bg-secondary);
    color: var(--theme-text-primary);
}

.admin-notification-dropdown-body {
    flex: 1;
    overflow-y: auto;
    max-height: 450px;
    padding: var(--theme-spacing-xs) 0;
}

.admin-notification-dropdown-body::-webkit-scrollbar {
    width: 6px;
}

.admin-notification-dropdown-body::-webkit-scrollbar-track {
    background: var(--theme-bg-secondary);
}

.admin-notification-dropdown-body::-webkit-scrollbar-thumb {
    background: var(--theme-border);
    border-radius: 3px;
}

.admin-notification-dropdown-body::-webkit-scrollbar-thumb:hover {
    background: var(--theme-text-tertiary);
}

.admin-notification-item {
    display: flex;
    align-items: flex-start;
    gap: var(--theme-spacing-md);
    padding: var(--theme-spacing-md) var(--theme-spacing-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: 1px solid var(--theme-bg-secondary);
    text-decoration: none !important;
    color: inherit;
}

.admin-notification-item:hover {
    background: var(--theme-bg-secondary);
    text-decoration: none !important;
    color: inherit;
}

.admin-notification-item:visited {
    color: inherit;
    text-decoration: none !important;
}

.admin-notification-item * {
    text-decoration: none !important;
}

.admin-notification-item:hover * {
    text-decoration: none !important;
}

.admin-notification-item.read {
    opacity: 0.7;
}

.admin-notification-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--theme-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: var(--theme-font-size-lg);
}

.admin-notification-icon-info {
    background: #e0f2fe;
    color: #0369a1;
}

.admin-notification-icon-success {
    background: #dcfce7;
    color: #166534;
}

.admin-notification-icon-warning {
    background: #fef3c7;
    color: #92400e;
}

.admin-notification-icon-danger {
    background: #fee2e2;
    color: #991b1b;
}

.admin-notification-icon-default {
    background: var(--theme-bg-secondary);
    color: var(--theme-text-secondary);
}

.admin-notification-item-content {
    flex: 1;
    min-width: 0;
    text-decoration: none !important;
}

.admin-notification-item-content * {
    text-decoration: none !important;
}

.admin-notification-item-message {
    font-size: var(--theme-font-size-sm);
    color: var(--theme-text-primary);
    margin: 0 0 var(--theme-spacing-xs) 0;
    line-height: 1.5;
    word-wrap: break-word;
    text-decoration: none !important;
}

.admin-notification-item-time {
    font-size: var(--theme-font-size-xs);
    color: var(--theme-text-tertiary);
    text-decoration: none !important;
}

.admin-notification-item-unread {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--theme-accent-green);
    flex-shrink: 0;
    margin-top: var(--theme-spacing-xs);
}

.admin-notification-loading,
.admin-notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--theme-spacing-2xl);
    color: var(--theme-text-tertiary);
    text-align: center;
}

.admin-notification-loading i,
.admin-notification-empty i {
    font-size: var(--theme-font-size-2xl);
    margin-bottom: var(--theme-spacing-md);
    color: var(--theme-text-tertiary);
}

.admin-notification-empty p {
    margin: 0;
    font-size: var(--theme-font-size-sm);
    color: var(--theme-text-tertiary);
}

.admin-notification-dropdown-footer {
    padding: var(--theme-spacing-md) var(--theme-spacing-lg);
    border-top: 1px solid var(--theme-border);
    flex-shrink: 0;
}

.admin-notification-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--theme-spacing-xs);
    padding: var(--theme-spacing-sm) var(--theme-spacing-md);
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-md);
    color: var(--theme-text-primary);
    text-decoration: none;
    font-size: var(--theme-font-size-sm);
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
}

.admin-notification-view-all:hover {
    background: var(--theme-accent-green);
    border-color: var(--theme-accent-green);
    color: #ffffff;
}

.admin-notification-view-all i {
    transition: transform 0.2s ease;
}

.admin-notification-view-all:hover i {
    transform: translateX(4px);
}

/* Mobile Menu Toggle */
.admin-mobile-menu-toggle {
    display: none;
}

/* Responsive Notification Dropdown */
@media (max-width: 768px) {
    .admin-notification-dropdown {
        width: calc(100vw - 2rem);
        right: -1rem;
    }

    .admin-notification-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: var(--theme-spacing-md);
    }

    .admin-notification-tabs {
        gap: var(--theme-spacing-md);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
    }

    .admin-notification-tabs::-webkit-scrollbar {
        display: none;
    }

    .admin-notification-tab {
        flex-shrink: 0;
        font-size: var(--theme-font-size-xs);
    }

    .admin-notification-tab-count {
        font-size: 0.7rem;
    }

    .admin-notification-filter-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .admin-notification-action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* User Profile Dropdown */
.admin-user-dropdown-wrapper {
    position: relative;
}

.admin-user-toggle {
    display: flex;
    align-items: center;
    gap: var(--theme-spacing-sm);
    padding: var(--theme-spacing-xs) var(--theme-spacing-md);
    cursor: pointer;
}

.admin-user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--theme-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--theme-font-size-sm);
    font-weight: 600;
    color: var(--theme-text-primary);
    flex-shrink: 0;
    overflow: hidden;
}

.admin-user-avatar-img-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.admin-user-name-small {
    font-size: var(--theme-font-size-sm);
    font-weight: 500;
    color: var(--theme-text-primary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-chevron {
    font-size: var(--theme-font-size-xs);
    color: var(--theme-text-tertiary);
    transition: transform 0.2s ease;
}

.admin-user-toggle:hover .admin-user-chevron {
    color: var(--theme-text-primary);
}

.admin-user-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    max-width: calc(100vw - 2rem);
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-lg);
    box-shadow: var(--theme-shadow-lg);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.admin-user-dropdown-header {
    padding: var(--theme-spacing-lg);
    border-bottom: 1px solid var(--theme-border);
    background: var(--theme-bg-secondary);
}

.admin-user-info-header {
    display: flex;
    align-items: center;
    gap: var(--theme-spacing-md);
}

.admin-user-avatar-medium {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #833F0B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--theme-font-size-lg);
    font-weight: 600;
    color: #ffffff;
    flex-shrink: 0;
    overflow: hidden;
}

.admin-user-avatar-img-medium {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.admin-user-details {
    flex: 1;
    min-width: 0;
}

.admin-user-name-medium {
    font-size: var(--theme-font-size-base);
    font-weight: 600;
    color: var(--theme-text-primary);
    margin: 0 0 var(--theme-spacing-xs) 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-email-medium {
    font-size: var(--theme-font-size-sm);
    color: var(--theme-text-tertiary);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-dropdown-body {
    padding: var(--theme-spacing-xs) 0;
}

.admin-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--theme-spacing-md);
    padding: var(--theme-spacing-md) var(--theme-spacing-lg);
    color: var(--theme-text-primary);
    text-decoration: none;
    font-size: var(--theme-font-size-sm);
    transition: all 0.2s ease;
    cursor: pointer;
}

.admin-user-dropdown-item:hover {
    background: var(--theme-bg-secondary);
    color: var(--theme-text-primary);
}

.admin-user-dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--theme-text-tertiary);
    font-size: var(--theme-font-size-base);
}

.admin-user-dropdown-item:hover i {
    color: var(--theme-text-primary);
}

.admin-user-dropdown-item-danger {
    color: #dc2626;
}

.admin-user-dropdown-item-danger:hover {
    background: #fee2e2;
    color: #991b1b;
}

.admin-user-dropdown-item-danger i {
    color: #dc2626;
}

.admin-user-dropdown-item-danger:hover i {
    color: #991b1b;
}

.admin-user-dropdown-divider {
    height: 1px;
    background: var(--theme-border);
    margin: var(--theme-spacing-xs) 0;
}

/* Responsive User Dropdown */
@media (max-width: 768px) {
    .admin-user-name-small {
        display: none;
    }

    .admin-user-dropdown-menu {
        width: calc(100vw - 2rem);
        right: -1rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: var(--theme-shadow-lg);
    }

    .admin-sidebar.mobile-open {
        transform: translateX(0);
    }

    .admin-main-content {
        margin-left: 0;
    }

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

    /* Disable minimize on mobile */
    .admin-sidebar.minimized {
        width: 100%;
        max-width: 320px;
    }

    .admin-sidebar.minimized .admin-sidebar-logo-text,
    .admin-sidebar.minimized .admin-sidebar-account,
    .admin-sidebar.minimized .admin-nav-item span,
    .admin-sidebar.minimized .admin-sidebar-user-info,
    .admin-sidebar.minimized .admin-sidebar-user-name,
    .admin-sidebar.minimized .admin-sidebar-user-email {
        opacity: 1;
        visibility: visible;
        width: auto;
        height: auto;
        overflow: visible;
    }

    .admin-sidebar.minimized .admin-sidebar-logo {
        justify-content: flex-start;
    }

    .admin-sidebar.minimized .admin-nav-item {
        justify-content: flex-start;
        padding: var(--theme-spacing-sm) var(--theme-spacing-md);
    }

    .admin-sidebar.minimized .admin-nav-item-arrow {
        display: block;
    }

    .admin-sidebar.minimized .admin-sidebar-user {
        justify-content: flex-start;
        padding: var(--theme-spacing-sm) var(--theme-spacing-md);
    }

    .admin-mobile-menu-toggle {
        display: block;
        position: fixed;
        top: var(--theme-spacing-md);
        left: var(--theme-spacing-md);
        z-index: 1001;
        background: var(--theme-bg-primary);
        border: 1px solid var(--theme-border);
        border-radius: var(--theme-radius-md);
        padding: var(--theme-spacing-sm);
        color: var(--theme-text-secondary);
        cursor: pointer;
        box-shadow: var(--theme-shadow);
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .admin-mobile-menu-toggle:hover {
        background: var(--theme-bg-secondary);
    }

    /* Mobile sidebar backdrop */
    .admin-sidebar-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .admin-sidebar-backdrop.active {
        opacity: 1;
        pointer-events: all;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .admin-main-header {
        padding: var(--theme-spacing-sm) var(--theme-spacing-md);
        flex-wrap: wrap;
        gap: var(--theme-spacing-xs);
    }

    .admin-header-button {
        padding: var(--theme-spacing-xs) var(--theme-spacing-sm);
        font-size: var(--theme-font-size-xs);
    }

    .admin-header-button span:not(.admin-header-button-dot):not(.admin-notification-badge) {
        display: none;
    }

    .admin-header-button i {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .admin-dashboard-container {
        padding: var(--theme-spacing-sm) var(--theme-spacing-md);
    }

    .admin-dashboard-title {
        font-size: var(--theme-font-size-xl);
        margin-bottom: var(--theme-spacing-sm);
    }

    .admin-dashboard-subtitle {
        font-size: var(--theme-font-size-sm);
    }

    .admin-stat-card {
        flex-direction: column;
        text-align: center;
        padding: var(--theme-spacing-md);
    }

    .admin-stat-card-icon {
        margin: 0 auto var(--theme-spacing-sm);
    }

    .admin-sidebar {
        width: 100%;
        max-width: 320px;
    }

    .admin-sidebar-header {
        padding: var(--theme-spacing-md);
    }

    .admin-sidebar-logo-text {
        font-size: var(--theme-font-size-base);
    }

    .admin-sidebar-account {
        font-size: var(--theme-font-size-xs);
    }

    .admin-nav-item {
        padding: var(--theme-spacing-sm) var(--theme-spacing-md);
        font-size: var(--theme-font-size-sm);
    }

    .admin-nav-submenu-item {
        padding: var(--theme-spacing-xs) var(--theme-spacing-md) var(--theme-spacing-xs) calc(var(--theme-spacing-md) + 24px);
        font-size: var(--theme-font-size-xs);
    }

    .admin-main-header {
        padding: var(--theme-spacing-xs) var(--theme-spacing-sm);
        position: sticky;
        top: 0;
        z-index: 999;
        background: var(--theme-bg-primary);
        box-shadow: var(--theme-shadow);
    }

    .admin-header-button {
        padding: var(--theme-spacing-xs);
        min-width: 40px;
        min-height: 40px;
        justify-content: center;
    }

    .admin-user-name-small {
        display: none;
    }

    .admin-user-avatar-small {
        width: 32px;
        height: 32px;
        font-size: var(--theme-font-size-xs);
    }

    .admin-notification-dropdown {
        width: calc(100vw - 1rem);
        max-width: calc(100vw - 1rem);
        right: 0.5rem;
        left: 0.5rem;
        top: calc(100% + 0.5rem);
    }

    .admin-user-dropdown-menu {
        width: calc(100vw - 1rem);
        max-width: calc(100vw - 1rem);
        right: 0.5rem;
        left: 0.5rem;
        top: calc(100% + 0.5rem);
    }

    .admin-sidebar-user {
        padding: var(--theme-spacing-sm) var(--theme-spacing-md);
    }

    .admin-sidebar-user-avatar {
        width: 36px;
        height: 36px;
        font-size: var(--theme-font-size-sm);
    }

    .admin-sidebar-user-name {
        font-size: var(--theme-font-size-xs);
    }

    .admin-sidebar-user-email {
        font-size: 0.65rem;
    }

    /* Optimize tables for mobile */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Better touch targets */
    .admin-nav-item,
    .admin-nav-submenu-item,
    .admin-user-dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Search card optimization */
    .admin-search-card {
        padding: var(--theme-spacing-md);
        margin-bottom: var(--theme-spacing-md);
    }

    /* Action buttons optimization */
    .admin-action-buttons {
        flex-direction: column;
        gap: var(--theme-spacing-xs);
    }

    .admin-action-button {
        width: 100%;
        justify-content: center;
    }

    /* Dashboard header responsive */
    .admin-dashboard-header-content {
        flex-direction: column;
        align-items: flex-start !important;
        gap: var(--theme-spacing-md);
    }

    .admin-dashboard-header-actions {
        width: 100%;
        flex-direction: column;
        gap: var(--theme-spacing-xs);
    }

    .admin-dashboard-header-title {
        width: 100%;
    }

    /* Buttons responsive */
    .admin-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .admin-btn i {
        margin-right: var(--theme-spacing-xs);
    }

    .admin-btn-text {
        display: inline;
    }

    /* Stat cards in rows */
    .row.g-4 > [class*="col-"] {
        margin-bottom: var(--theme-spacing-md);
    }

    /* Table responsive improvements */
    .admin-table-card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        max-width: 100%;
    }

    .admin-table-responsive {
        min-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        display: block;
    }

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

    .admin-table th,
    .admin-table td {
        padding: var(--theme-spacing-sm) var(--theme-spacing-xs);
        font-size: var(--theme-font-size-xs);
    }

    .admin-table-id {
        font-size: var(--theme-font-size-xs);
    }

    .admin-table-text {
        font-size: var(--theme-font-size-xs);
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Section title responsive */
    .admin-section-title {
        font-size: var(--theme-font-size-lg);
    }

    .admin-section-title i {
        margin-right: var(--theme-spacing-xs);
    }

    /* Team sidebar select dropdown */
    .admin-sidebar-search select {
        width: 100%;
        font-size: var(--theme-font-size-sm);
    }

    /* Team info in sidebar */
    .admin-sidebar-team-info {
        font-size: var(--theme-font-size-xs);
    }

    /* Alert responsive */
    .alert {
        font-size: var(--theme-font-size-sm);
        padding: var(--theme-spacing-sm) var(--theme-spacing-md);
    }

    /* Row spacing on mobile */
    .row.g-4 {
        margin-left: calc(var(--theme-spacing-sm) * -1);
        margin-right: calc(var(--theme-spacing-sm) * -1);
    }

    .row.g-4 > [class*="col-"] {
        padding-left: var(--theme-spacing-sm);
        padding-right: var(--theme-spacing-sm);
    }
}

@media (max-width: 480px) {
    .admin-dashboard-container {
        padding: var(--theme-spacing-xs) var(--theme-spacing-sm);
    }

    .admin-dashboard-title {
        font-size: var(--theme-font-size-lg);
        line-height: 1.3;
    }

    .admin-dashboard-subtitle {
        font-size: var(--theme-font-size-xs);
        margin-top: var(--theme-spacing-xs);
    }

    .admin-dashboard-header {
        margin-bottom: var(--theme-spacing-md);
    }

    .admin-stat-card {
        padding: var(--theme-spacing-sm);
    }

    .admin-stat-card-value {
        font-size: var(--theme-font-size-lg);
    }

    .admin-stat-card-label {
        font-size: var(--theme-font-size-xs);
    }

    .admin-stat-card-icon {
        width: 40px;
        height: 40px;
        font-size: var(--theme-font-size-lg);
    }

    .admin-sidebar {
        max-width: 100%;
    }

    .admin-mobile-menu-toggle {
        top: var(--theme-spacing-sm);
        left: var(--theme-spacing-sm);
        padding: var(--theme-spacing-xs);
    }

    .admin-main-header {
        padding: var(--theme-spacing-xs);
        flex-wrap: wrap;
    }

    .admin-header-button {
        min-width: 36px;
        min-height: 36px;
        padding: var(--theme-spacing-xs);
    }

    /* Dashboard header buttons stack */
    .admin-dashboard-header-content {
        flex-direction: column;
        gap: var(--theme-spacing-sm);
    }

    .admin-dashboard-header-actions {
        width: 100%;
        flex-direction: column;
        gap: var(--theme-spacing-xs);
    }

    .admin-dashboard-header-actions .admin-btn {
        width: 100%;
        margin: 0;
    }

    .admin-btn-text {
        display: inline;
    }

    /* Table improvements for very small screens */
    .admin-table-card {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 500px;
        font-size: var(--theme-font-size-xs);
    }

    .admin-table th,
    .admin-table td {
        padding: var(--theme-spacing-xs);
    }

    .admin-table-text {
        max-width: 120px;
    }

    .admin-table-id {
        font-size: var(--theme-font-size-xs);
    }

    /* Section title */
    .admin-section-title {
        font-size: var(--theme-font-size-base);
    }

    /* Empty state responsive */
    .admin-empty-state {
        padding: var(--theme-spacing-lg) var(--theme-spacing-md);
    }

    .admin-empty-state-icon {
        font-size: var(--theme-font-size-2xl);
    }

    .admin-empty-state-title {
        font-size: var(--theme-font-size-lg);
    }

    .admin-empty-state-text {
        font-size: var(--theme-font-size-sm);
    }
}

/* Profile Page Styles */
.admin-profile-card {
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-lg);
    box-shadow: var(--theme-shadow);
    overflow: hidden;
    height: 100%;
}

.admin-profile-card-header {
    padding: var(--theme-spacing-lg);
    border-bottom: 1px solid var(--theme-border);
    background: var(--theme-bg-secondary);
}

.admin-profile-card-title {
    font-size: var(--theme-font-size-lg);
    font-weight: 600;
    color: var(--theme-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--theme-spacing-sm);
}

.admin-profile-card-title i {
    color: var(--theme-text-tertiary);
}

.admin-profile-card-body {
    padding: var(--theme-spacing-lg);
}

/* Form Styles */
.admin-form-group {
    margin-bottom: var(--theme-spacing-lg);
}

.admin-form-label {
    display: block;
    font-size: var(--theme-font-size-sm);
    font-weight: 500;
    color: var(--theme-text-secondary);
    margin-bottom: var(--theme-spacing-xs);
}

.admin-form-input {
    width: 100%;
    padding: var(--theme-spacing-sm) var(--theme-spacing-md);
    font-size: var(--theme-font-size-base);
    font-family: var(--theme-font-family);
    color: var(--theme-text-primary);
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-md);
    outline: none;
    transition: all 0.2s ease;
}

.admin-form-input:focus {
    border-color: var(--theme-text-secondary);
    box-shadow: 0 0 0 3px rgba(52, 64, 84, 0.1);
}

.admin-form-input-error {
    border-color: #dc3545;
}

.admin-form-input-error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.admin-form-error {
    display: block;
    font-size: var(--theme-font-size-sm);
    color: #dc3545;
    margin-top: var(--theme-spacing-xs);
}

.admin-form-help {
    display: block;
    font-size: var(--theme-font-size-xs);
    color: var(--theme-text-tertiary);
    margin-top: var(--theme-spacing-xs);
}

.admin-text-muted {
    color: var(--theme-text-tertiary);
    font-size: var(--theme-font-size-sm);
}

/* Button Styles */
.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--theme-spacing-xs);
    padding: var(--theme-spacing-sm) var(--theme-spacing-lg);
    font-size: var(--theme-font-size-sm);
    font-weight: 500;
    font-family: var(--theme-font-family);
    border: none;
    border-radius: var(--theme-radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.admin-btn-primary {
    background: var(--theme-text-primary);
    color: var(--theme-bg-primary);
}

.admin-btn-primary:hover {
    background: var(--theme-text-secondary);
    transform: translateY(-1px);
    box-shadow: var(--theme-shadow);
}

/* Roles Display */
.admin-roles-display {
    display: flex;
    flex-wrap: wrap;
    gap: var(--theme-spacing-xs);
}

.admin-role-badge {
    display: inline-block;
    padding: var(--theme-spacing-xs) var(--theme-spacing-sm);
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-sm);
    font-size: var(--theme-font-size-xs);
    font-weight: 500;
    color: var(--theme-text-secondary);
}

/* Profile Photo Styles */
.admin-profile-photo-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--theme-spacing-md);
}

.admin-profile-photo-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--theme-border);
    background: var(--theme-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-profile-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-profile-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-text-tertiary);
    font-size: 3rem;
}

.admin-profile-photo-actions {
    display: flex;
    gap: var(--theme-spacing-sm);
    align-items: center;
}

.admin-file-input {
    display: none;
}

.admin-btn-secondary {
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border);
    color: var(--theme-text-secondary);
}

.admin-btn-secondary:hover {
    background: var(--theme-bg-secondary);
    border-color: var(--theme-text-secondary);
    color: var(--theme-text-primary);
}

.admin-btn-danger {
    background: #dc3545;
    color: var(--theme-bg-primary);
}

.admin-btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: var(--theme-shadow);
}

.admin-btn-sm {
    padding: var(--theme-spacing-xs) var(--theme-spacing-md);
    font-size: var(--theme-font-size-xs);
}

/* Sidebar Avatar Image */
.admin-sidebar-user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Table Styles */
.admin-table-card {
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-lg);
    box-shadow: var(--theme-shadow);
    overflow: hidden;
    width: 100%;
}

.admin-table-responsive {
    overflow-x: auto;
    width: 100%;
    display: block;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--theme-font-size-sm);
}

.admin-table thead {
    background: var(--theme-bg-secondary);
    border-bottom: 1px solid var(--theme-border);
}

.admin-table th {
    padding: var(--theme-spacing-md) var(--theme-spacing-lg);
    text-align: left;
    font-weight: 600;
    font-size: var(--theme-font-size-xs);
    color: var(--theme-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

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

.admin-table tbody tr:hover {
    background: var(--theme-bg-secondary);
}

.admin-table tbody tr:last-child {
    border-bottom: none;
}

.admin-table td {
    padding: var(--theme-spacing-md) var(--theme-spacing-lg);
    color: var(--theme-text-primary);
}

.admin-table-id {
    font-weight: 600;
    color: var(--theme-text-secondary);
    font-family: 'Courier New', monospace;
}

.admin-table-text {
    color: var(--theme-text-primary);
    font-size: var(--theme-font-size-sm);
}

/* Status Badges */
.admin-status-badge {
    display: inline-block;
    padding: var(--theme-spacing-xs) var(--theme-spacing-sm);
    border-radius: var(--theme-radius-sm);
    font-size: var(--theme-font-size-xs);
    font-weight: 500;
    text-transform: capitalize;
}

.admin-status-badge-pending {
    background: #FEF3C7;
    color: #92400E;
}

.admin-status-badge-bagged {
    background: #DBEAFE;
    color: #1E40AF;
}

.admin-status-badge-pollinated {
    background: #E0E7FF;
    color: #3730A3;
}

.admin-status-badge-harvested {
    background: #D1FAE5;
    color: #065F46;
}

.admin-status-badge-completed {
    background: #D1FAE5;
    color: #065F46;
}

.admin-status-badge-synced {
    background: #D1FAE5;
    color: #065F46;
}

.admin-status-badge-healthy {
    background: #D1FAE5;
    color: #065F46;
}

.admin-status-badge-damaged {
    background: #FEE2E2;
    color: #991B1B;
}

/* Table Actions */
.admin-table-actions {
    display: flex;
    gap: var(--theme-spacing-xs);
    align-items: center;
}

.admin-table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--theme-radius-sm);
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border);
    color: var(--theme-text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: var(--theme-font-size-sm);
}

.admin-table-action:hover {
    background: var(--theme-bg-secondary);
    border-color: var(--theme-text-secondary);
    color: var(--theme-text-primary);
    transform: translateY(-1px);
}

.admin-table-action-danger {
    border-color: #FEE2E2;
    color: #DC2626;
}

.admin-table-action-danger:hover {
    background: #FEE2E2;
    border-color: #DC2626;
    color: #991B1B;
}

.admin-table-pagination {
    padding: var(--theme-spacing-md) var(--theme-spacing-lg);
    border-top: 1px solid var(--theme-border);
    display: flex;
    justify-content: center;
    background: var(--theme-bg-secondary);
}

/* Empty State */
.admin-empty-state {
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-lg);
    box-shadow: var(--theme-shadow);
    padding: var(--theme-spacing-2xl);
    text-align: center;
}

.admin-empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--theme-spacing-lg);
    border-radius: 50%;
    background: var(--theme-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-text-tertiary);
    font-size: 2rem;
}

.admin-empty-state-title {
    font-size: var(--theme-font-size-xl);
    font-weight: 600;
    color: var(--theme-text-primary);
    margin: 0 0 var(--theme-spacing-xs) 0;
}

.admin-empty-state-text {
    font-size: var(--theme-font-size-base);
    color: var(--theme-text-tertiary);
    margin: 0 0 var(--theme-spacing-lg) 0;
}

/* Detail Card Styles */
.admin-detail-card {
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-lg);
    box-shadow: var(--theme-shadow);
    overflow: hidden;
    height: 100%;
}

.admin-detail-card-header {
    padding: var(--theme-spacing-lg);
    border-bottom: 1px solid var(--theme-border);
    background: var(--theme-bg-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-detail-card-title {
    font-size: var(--theme-font-size-lg);
    font-weight: 600;
    color: var(--theme-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--theme-spacing-sm);
}

.admin-detail-card-body {
    padding: var(--theme-spacing-lg);
}

/* Detail Grid */
.admin-detail-grid {
    display: grid;
    gap: var(--theme-spacing-md);
}

.admin-detail-item {
    display: flex;
    flex-direction: column;
    gap: var(--theme-spacing-xs);
}

.admin-detail-label {
    font-size: var(--theme-font-size-xs);
    font-weight: 600;
    color: var(--theme-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-detail-value {
    font-size: var(--theme-font-size-sm);
    color: var(--theme-text-primary);
    font-weight: 500;
}

/* Badges */
.admin-badge {
    display: inline-block;
    padding: var(--theme-spacing-xs) var(--theme-spacing-sm);
    border-radius: var(--theme-radius-sm);
    font-size: var(--theme-font-size-xs);
    font-weight: 500;
}

.admin-badge-primary {
    background: #DBEAFE;
    color: #1E40AF;
}

.admin-badge-info {
    background: #DBEAFE;
    color: #1E40AF;
}

.admin-badge-secondary {
    background: var(--theme-bg-secondary);
    color: var(--theme-text-secondary);
    border: 1px solid var(--theme-border);
}

.admin-badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.admin-badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.admin-badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

/* Code */
.admin-code {
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-sm);
    padding: var(--theme-spacing-xs) var(--theme-spacing-sm);
    font-family: 'Courier New', monospace;
    font-size: var(--theme-font-size-xs);
    color: var(--theme-text-secondary);
}

/* Form Card */
.admin-form-card {
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-lg);
    box-shadow: var(--theme-shadow);
    overflow: hidden;
}

.admin-form-card-header {
    padding: var(--theme-spacing-lg);
    border-bottom: 1px solid var(--theme-border);
    background: var(--theme-bg-secondary);
}

.admin-form-card-title {
    font-size: var(--theme-font-size-lg);
    font-weight: 600;
    color: var(--theme-text-primary);
    margin: 0;
}

.admin-form-card-body {
    padding: var(--theme-spacing-lg);
}

.admin-form-actions {
    display: flex;
    gap: var(--theme-spacing-sm);
    margin-top: var(--theme-spacing-xl);
    padding-top: var(--theme-spacing-lg);
    border-top: 1px solid var(--theme-border);
}

/* Small Table */
.admin-table-sm {
    font-size: var(--theme-font-size-xs);
}

.admin-table-sm th,
.admin-table-sm td {
    padding: var(--theme-spacing-sm) var(--theme-spacing-md);
}

/* Empty State Small */
.admin-empty-state-small {
    text-align: center;
    padding: var(--theme-spacing-xl) var(--theme-spacing-md);
}

.admin-empty-state-icon-small {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--theme-spacing-md);
    border-radius: 50%;
    background: var(--theme-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-text-tertiary);
    font-size: var(--theme-font-size-xl);
}

.admin-empty-state-text-small {
    font-size: var(--theme-font-size-sm);
    color: var(--theme-text-tertiary);
    margin: 0;
}

/* Alert Styles */
.admin-alert {
    padding: var(--theme-spacing-md) var(--theme-spacing-lg);
    border-radius: var(--theme-radius-md);
    border: 1px solid;
    display: flex;
    align-items: flex-start;
    gap: var(--theme-spacing-sm);
}

.admin-alert-success {
    background: #D1FAE5;
    border-color: #12B76A;
    color: #065F46;
}

.admin-alert-warning {
    background: #FEF3C7;
    border-color: #F59E0B;
    color: #92400E;
}

.admin-alert-danger {
    background: #FEE2E2;
    border-color: #DC2626;
    color: #991B1B;
}

.admin-alert-info {
    background: #DBEAFE;
    border-color: #3B82F6;
    color: #1E40AF;
}

/* Download Cards */
.admin-download-card {
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-lg);
    box-shadow: var(--theme-shadow);
    padding: var(--theme-spacing-xl);
    text-align: center;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.admin-download-card:hover {
    box-shadow: var(--theme-shadow-lg);
    transform: translateY(-2px);
}

.admin-download-card-success {
    border-top: 3px solid #12B76A;
}

.admin-download-card-danger {
    border-top: 3px solid #DC2626;
}

.admin-download-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--theme-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--theme-spacing-lg);
    font-size: 2.5rem;
}

.admin-download-card-success .admin-download-card-icon {
    background: #D1FAE5;
    color: #12B76A;
}

.admin-download-card-danger .admin-download-card-icon {
    background: #FEE2E2;
    color: #DC2626;
}

.admin-download-card-title {
    font-size: var(--theme-font-size-lg);
    font-weight: 600;
    color: var(--theme-text-primary);
    margin: 0 0 var(--theme-spacing-xs) 0;
}

.admin-download-card-description {
    font-size: var(--theme-font-size-sm);
    color: var(--theme-text-tertiary);
    margin: 0 0 var(--theme-spacing-lg) 0;
    flex: 1;
}

/* Button Variants */
.admin-btn-success {
    background: #12B76A;
    color: var(--theme-bg-primary);
}

.admin-btn-success:hover:not(.disabled) {
    background: #0FA968;
    transform: translateY(-1px);
    box-shadow: var(--theme-shadow);
}

.admin-btn-danger {
    background: #DC2626;
    color: var(--theme-bg-primary);
}

.admin-btn-danger:hover:not(.disabled) {
    background: #B91C1C;
    transform: translateY(-1px);
    box-shadow: var(--theme-shadow);
}

.admin-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Full Width Button */
.admin-btn.w-100 {
    width: 100%;
}

/* Form Check Styling */
.form-check {
    display: flex;
    align-items: center;
    gap: var(--theme-spacing-xs);
    margin-bottom: var(--theme-spacing-sm);
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0;
    margin-right: 0;
    cursor: pointer;
    border: 2px solid var(--theme-border);
    border-radius: var(--theme-radius-sm);
}

.form-check-input:checked {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.form-check-input:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.25);
}

.form-check-label {
    cursor: pointer;
    user-select: none;
    color: var(--theme-text-primary);
}

/* Auth Page Specific Styles */
.auth-container {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Notifications Page Styles */
.admin-notification-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--theme-spacing-lg);
    border-bottom: 1px solid var(--theme-border);
    padding-bottom: var(--theme-spacing-sm);
    margin-bottom: var(--theme-spacing-lg);
    flex-wrap: wrap;
}

.admin-notification-tabs {
    display: flex;
    gap: var(--theme-spacing-lg);
    flex: 1;
    min-width: 0;
}

.admin-notification-filter-actions {
    display: flex;
    align-items: center;
    gap: var(--theme-spacing-sm);
    flex-shrink: 0;
}

.admin-notification-action-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--theme-spacing-xs);
    padding: var(--theme-spacing-xs) var(--theme-spacing-md);
    background: var(--theme-bg-primary);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-md);
    color: var(--theme-text-secondary);
    text-decoration: none;
    font-size: var(--theme-font-size-sm);
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: var(--theme-font-family);
}

.admin-notification-action-btn:hover {
    background: var(--theme-bg-secondary);
    border-color: var(--theme-text-secondary);
    color: var(--theme-text-primary);
    text-decoration: none;
}

.admin-notification-action-btn i {
    font-size: var(--theme-font-size-xs);
}

.admin-notification-tab {
    display: flex;
    align-items: center;
    gap: var(--theme-spacing-xs);
    padding: var(--theme-spacing-sm) 0;
    text-decoration: none;
    color: var(--theme-text-tertiary);
    font-weight: 400;
    font-size: var(--theme-font-size-sm);
    transition: color 0.2s ease;
    position: relative;
    white-space: nowrap;
    border: none;
    background: none;
}

.admin-notification-tab:hover {
    color: var(--theme-text-primary);
    text-decoration: none;
}

.admin-notification-tab.active {
    color: var(--theme-text-primary);
    font-weight: 500;
}

.admin-notification-tab.active::after {
    content: '';
    position: absolute;
    bottom: calc(-1 * var(--theme-spacing-sm) - 1px);
    left: 0;
    right: 0;
    height: 2px;
    background: var(--theme-accent-green);
}

.admin-notification-tab-label {
    display: inline-block;
}

.admin-notification-tab-count {
    display: inline-block;
    font-size: var(--theme-font-size-xs);
    font-weight: 400;
    color: var(--theme-text-tertiary);
    opacity: 0.7;
}

.admin-notification-tab.active .admin-notification-tab-count {
    color: var(--theme-text-secondary);
    opacity: 1;
}

.admin-notification-card {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.admin-notification-card:hover {
    box-shadow: var(--theme-shadow-lg);
    transform: translateY(-2px);
}

.admin-notification-card.admin-notification-unread {
    border-left: 4px solid var(--theme-accent-green);
}

.admin-notification-card.admin-notification-read {
    opacity: 0.9;
}

.admin-notification-card-actions {
    display: flex;
    align-items: center;
    gap: var(--theme-spacing-xs);
}

.admin-notification-content {
    display: flex;
    align-items: flex-start;
    gap: var(--theme-spacing-md);
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.admin-notification-icon-wrapper {
    position: relative;
    flex-shrink: 0;
}

.admin-notification-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--theme-radius-md);
    flex-shrink: 0;
    font-size: var(--theme-font-size-lg);
}

.admin-notification-icon-info {
    background: #E0F2FE;
    color: #0369A1;
}

.admin-notification-icon-success {
    background: #DCFCE7;
    color: #166534;
}

.admin-notification-icon-warning {
    background: #FEF3C7;
    color: #92400E;
}

.admin-notification-icon-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.admin-notification-unread-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: var(--theme-accent-green);
    border: 2px solid var(--theme-bg-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--theme-accent-green);
}

.admin-notification-body {
    flex: 1;
    min-width: 0;
}

.admin-notification-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--theme-spacing-sm);
    margin-bottom: var(--theme-spacing-xs);
}

.admin-notification-message {
    font-size: var(--theme-font-size-base);
    font-weight: 500;
    color: var(--theme-text-primary);
    line-height: 1.5;
    word-wrap: break-word;
    flex: 1;
    min-width: 0;
}

.admin-notification-badge-inline {
    flex-shrink: 0;
    margin-left: auto;
}

.admin-notification-meta {
    display: flex;
    align-items: center;
    gap: var(--theme-spacing-xs);
    font-size: var(--theme-font-size-xs);
    color: var(--theme-text-tertiary);
}

.admin-notification-meta i {
    font-size: 0.7rem;
}

.admin-notification-separator {
    color: var(--theme-text-tertiary);
    margin: 0 var(--theme-spacing-xs);
}

.admin-notification-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: var(--theme-spacing-lg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.admin-notification-item:hover .admin-notification-actions {
    opacity: 1;
}

.admin-notification-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--theme-text-secondary);
    border-radius: var(--theme-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--theme-font-size-sm);
}

.admin-notification-action-btn:hover {
    background: var(--theme-bg-secondary);
    color: var(--theme-text-primary);
}

.admin-notification-action-btn-danger:hover {
    background: #FEE2E2;
    color: #991B1B;
}

/* Mobile Responsive for Notifications */
@media (max-width: 768px) {
    .admin-notification-item {
        padding: var(--theme-spacing-md);
        flex-direction: column;
        align-items: stretch;
        gap: var(--theme-spacing-sm);
    }

    .admin-notification-content {
        width: 100%;
    }

    .admin-notification-actions {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
        margin-top: var(--theme-spacing-xs);
        opacity: 1;
    }

    .admin-notification-actions-group {
        width: 100%;
        justify-content: flex-end;
    }

    .admin-notification-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--theme-spacing-xs);
    }

    .admin-notification-badge-inline {
        margin-left: 0;
    }

    .admin-dashboard-header-actions {
        flex-direction: column;
        width: 100%;
    }

    .admin-dashboard-header-actions .admin-btn {
        width: 100%;
    }

    .admin-notification-icon {
        width: 40px;
        height: 40px;
        font-size: var(--theme-font-size-base);
    }
}

