/* TargetInventoryManagement - Inventory Management System
 * Light Theme - Gaziantep University Style
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* Custom CSS Variables - Gaziantep University Color Scheme */
:root {
    --color-primary-dark: #061A33;
    --color-primary: #0A294E;
    --color-primary-light: #1E4D8C;
    --color-accent: #CA0928;
    --color-accent-hover: #A50720;
    --color-light: #F5F7FA;
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Glass effect colors */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: rgba(0, 0, 0, 0.3);

    /* Sidebar */
    --sidebar-width: 280px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-gray-50);
    color: var(--color-gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Auth Layout - Light Background with Subtle Pattern */
.auth-bg {
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 50%, #eef2f7 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.auth-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(202, 9, 40, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(10, 41, 78, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(202, 9, 40, 0.02) 0%, transparent 70%);
    animation: subtleMove 20s ease-in-out infinite;
}

@keyframes subtleMove {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* Main Layout - Light Background */
.main-bg {
    background: #f5f7fa;
    min-height: 100vh;
}

/* Navbar - Red Header like Gaziantep University */
.navbar {
    background: linear-gradient(135deg, #CA0928 0%, #A50720 100%);
    backdrop-filter: none;
    border-bottom: none;
    padding: 16px 32px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
}

.navbar-logo i {
    color: var(--color-accent);
    font-size: 20px;
}

/* User Initials Icon */
.user-initials-icon {
    background-color: #1E4D8C;
    color: #ffffff !important;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Profile Layout */
.profile-layout {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    gap: 24px;
}

.profile-sidebar {
    width: 180px;
    flex-shrink: 0;
    background: #ffffff;
    backdrop-filter: none;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: fit-content;
}

.profile-sidebar .sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    color: var(--color-gray-600);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.profile-sidebar .sidebar-item:hover {
    background: var(--color-gray-50);
    color: var(--color-gray-800);
}

.profile-sidebar .sidebar-item.active {
    background: rgba(202, 9, 40, 0.08);
    color: var(--color-accent);
    border-left-color: var(--color-accent);
}

.profile-sidebar .sidebar-item i {
    width: 16px;
    text-align: center;
    font-size: 12px;
}

.profile-content {
    flex: 1;
    min-width: 0;
}

/* Phone Input Group */
.phone-input-group {
    display: flex;
    gap: 8px;
}

.phone-input-group .phone-country {
    width: 100px;
    padding-left: 14px;
}

.phone-input-group .phone-number {
    flex: 1;
}

/* User Dropdown Menu - Light Theme */
.user-menu-container {
    position: relative;
}

.user-menu-btn {
    background: none;
    border: none;
    padding: 0;
}

.user-menu-name {
    color: var(--color-gray-800);
    font-size: 14px;
    font-weight: 500;
}

.user-menu-email {
    color: var(--color-gray-500);
    font-size: 12px;
    text-align: right;
}

.user-menu-chevron {
    color: var(--color-gray-400);
    font-size: 12px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    min-width: 200px;
    background: #ffffff;
    backdrop-filter: none;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-gray-700);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.user-dropdown-item:hover {
    background: var(--color-gray-50);
    color: var(--color-gray-800);
}

.user-dropdown-item i {
    width: 16px;
    font-size: 13px;
    opacity: 0.7;
}

.user-dropdown-item.text-red-400:hover {
    background: rgba(239, 68, 68, 0.1);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--color-gray-200);
    margin: 4px 0;
}

/* Danger item for logout */
.user-dropdown-item-danger {
    color: #dc2626 !important;
}

.user-dropdown-item-danger:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #b91c1c !important;
}

/* Light Theme Cards */
.glass-card {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-card-light {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Sidebar - Dark Blue like Gaziantep University Footer */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0A294E 0%, #061A33 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-right: none;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 200;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #CA0928 0%, #A50720 100%);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.sidebar-logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.sidebar-logo-text {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-white);
    white-space: nowrap;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 14px;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.sidebar-item.active {
    background: rgba(202, 9, 40, 0.15);
    color: var(--color-accent);
    border-left-color: var(--color-accent);
    font-weight: 500;
}

.sidebar-item i {
    width: 20px;
    text-align: center;
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    margin: 12px 24px;
}

.sidebar-footer {
    padding: 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sidebar Pin Button */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-pin-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-left: 12px;
}

.sidebar-pin-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.sidebar.collapsed .sidebar-pin-btn {
    transform: rotate(-45deg);
    color: var(--color-accent);
}

/* Sidebar Collapsed State (Desktop Only) */
@media (min-width: 1025px) {
    .sidebar {
        transition: width 0.3s ease;
        overflow: hidden;
    }

    .sidebar.collapsed {
        width: 72px;
        overflow-x: hidden;
    }

    .sidebar.collapsed .sidebar-logo-text,
    .sidebar.collapsed .sidebar-item span,
    .sidebar.collapsed .sidebar-footer {
        opacity: 0;
        visibility: hidden;
        width: 0;
        height: 0;
        overflow: hidden;
        white-space: nowrap;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .sidebar.collapsed .sidebar-header {
        padding: 24px 16px;
        justify-content: center;
    }

    .sidebar.collapsed .sidebar-logo {
        justify-content: center;
    }

    .sidebar.collapsed .sidebar-pin-btn {
        opacity: 0;
        visibility: hidden;
        position: absolute;
        right: 8px;
        top: 24px;
        transition: opacity 0.2s ease;
    }

    .sidebar.collapsed:hover .sidebar-pin-btn {
        opacity: 1;
        visibility: visible;
    }

    .sidebar.collapsed .sidebar-item {
        padding: 14px 0;
        justify-content: center;
    }

    .sidebar.collapsed .sidebar-item i {
        font-size: 18px;
    }

    /* Hover Expansion */
    .sidebar.collapsed:hover {
        width: var(--sidebar-width);
    }

    .sidebar.collapsed:hover .sidebar-logo-text,
    .sidebar.collapsed:hover .sidebar-item span,
    .sidebar.collapsed:hover .sidebar-footer {
        opacity: 1;
        visibility: visible;
        width: auto;
        height: auto;
        overflow: visible;
    }

    .sidebar.collapsed:hover .sidebar-header {
        padding: 24px;
        justify-content: space-between;
    }

    .sidebar.collapsed:hover .sidebar-logo {
        justify-content: flex-start;
    }

    .sidebar.collapsed:hover .sidebar-pin-btn {
        position: static;
    }

    .sidebar.collapsed:hover .sidebar-item {
        padding: 14px 24px;
        justify-content: flex-start;
    }

    /* Main Content Adjustment */
    .main-content {
        transition: margin-left 0.3s ease;
    }

    body.sidebar-collapsed .main-content {
        margin-left: 72px;
    }
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 24px;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 110;
}

.main-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-gray-800);
}

/* Form Styles - Light Theme */
.form-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 1px solid var(--color-gray-300);
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    background: #ffffff;
    color: var(--color-gray-800);
}

.form-input::placeholder {
    color: var(--color-gray-400);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(10, 41, 78, 0.1);
}

.form-input.error,
.form-input.input-validation-error {
    border-color: #ff6b6b !important;
    animation: shake 0.4s ease;
}

.form-input.input-validation-error:focus {
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15) !important;
}

/* Browser Autofill Override - Light Theme */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: var(--color-gray-800) !important;
    border-color: var(--color-gray-300) !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: var(--color-gray-800);
}

.form-input-simple {
    padding-left: 16px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-400);
    font-size: 16px;
    pointer-events: none;
}

.input-icon-right {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray-400);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.input-icon-right:hover {
    color: var(--color-gray-600);
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-gray-700);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-group {
    margin-bottom: 20px;
}

/* Field-level validation errors (inline, under inputs) */
.field-error,
.field-validation-error {
    font-size: 12px;
    color: #f87171;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    animation: slideIn 0.3s ease forwards;
}

.field-validation-error::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 13px;
}

.field-validation-valid {
    display: none;
}

/* Validation Summary */
.validation-summary-errors {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    color: #f87171;
    font-size: 14px;
}

.validation-summary-errors ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.validation-summary-errors li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.validation-summary-errors li::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.validation-summary-valid {
    display: none;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(202, 9, 40, 0.3);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(202, 9, 40, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-gray-300);
    color: var(--color-gray-700);
}

.btn-outline:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-400);
    color: var(--color-gray-800);
}

.btn-ghost {
    background: transparent;
    color: var(--color-gray-600);
    padding: 10px 16px;
}

/* Split Auth Layout Styles */
.split-layout-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.split-layout-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* justify-content: center; Removed to allow scrolling */
    align-items: center;
    background-color: var(--color-white);
    padding: 2rem;
    position: relative;
    max-width: 100%;
    overflow-y: auto;
    /* Enable vertical scrolling */
    height: 100vh;
    /* Constrain height to viewport */
}

.split-layout-content-wrapper {
    width: 100%;
    max-width: 440px;
    margin: auto;
    /* Center vertically if space allows */
}

.split-layout-footer {
    /* Position relative to content flow, not absolute bottom */
    margin-top: 2rem;
    text-align: center;
    color: var(--color-gray-400);
    font-size: 0.875rem;
    padding-bottom: 2rem;
}

.split-layout-info {
    flex: 1;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    position: relative;
    display: none;
    /* Hidden on mobile by default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .split-layout-info {
        display: flex;
    }
}

.split-layout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.split-layout-branding-content {
    position: relative;
    z-index: 10;
    max-width: 500px;
    text-align: center;
    padding: 2rem;
}

.branding-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.branding-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    color: var(--color-white);
}

.branding-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.branding-features {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item i {
    color: var(--color-accent);
}

.btn-ghost:hover {
    color: var(--color-gray-800);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Link Styles */
.link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.link:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.link-light {
    color: var(--color-gray-500);
}

.link-light:hover {
    color: var(--color-gray-800);
}

/* Checkbox - Light Theme */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    border: 1px solid var(--color-gray-300);
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
    background: #ffffff;
}

.checkbox-input:checked {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.checkbox-label {
    font-size: 13px;
    color: var(--color-gray-600);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--color-accent);
}

/* Divider - Light Theme */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-gray-200);
}

.divider span {
    color: var(--color-gray-400);
    font-size: 13px;
    white-space: nowrap;
}

/* Alert/Toast Container - Fixed position */
#alertContainer {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    pointer-events: none;
}

#alertContainer .alert {
    pointer-events: auto;
    margin-bottom: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Alert/Message System - Unified CSS for all notifications */
.alert,
.form-error,
.form-success {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
}

/* Success - Green */
.alert-success,
.form-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

/* Error - Red */
.alert-error,
.form-error {
    background: rgba(239, 68, 68, 0.20);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Warning - Orange */
.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

/* Info - Blue */
.alert-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

/* OTP Input - Light Theme */
.otp-container {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.otp-input {
    width: 52px;
    height: 60px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    border: 1px solid var(--color-gray-300);
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: var(--color-gray-800);
}

.otp-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(10, 41, 78, 0.1);
}

/* Password Strength */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 10px;
}

.password-strength-bar {
    flex: 1;
    height: 3px;
    background: var(--color-gray-200);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.password-strength-bar.weak {
    background: #ef4444;
}

.password-strength-bar.medium {
    background: #f59e0b;
}

.password-strength-bar.good {
    background: #3b82f6;
}

.password-strength-bar.strong {
    background: #10b981;
}

/* Avatar & Profile */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.avatar-lg {
    width: 100px;
    height: 100px;
    border-width: 3px;
}

/* Avatar initials - gradient circle with visible border */
.rounded-full.bg-gradient-to-br,
[class*="rounded-full"][class*="bg-gradient"] {
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.avatar-upload {
    position: relative;
    display: inline-block;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    color: white;
}

.avatar-upload-btn:hover {
    transform: scale(1.1);
}

/* Icon Box */
.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-box-primary {
    background: rgba(202, 9, 40, 0.1);
    border: 1px solid rgba(202, 9, 40, 0.2);
}

.icon-box-primary i {
    color: var(--color-accent);
    font-size: 22px;
}

/* Card - Light Theme */
.card {
    background: #ffffff;
    backdrop-filter: none;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-gray-800);
}

/* Error Page */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.error-code {
    font-size: 160px;
    font-weight: 700;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

/* Text colors - Light Theme */
.text-light-muted {
    color: var(--color-gray-400);
}

.text-light {
    color: var(--color-gray-600);
}

.title-light {
    color: var(--color-gray-800);
}

.subtitle-light {
    color: var(--color-gray-500);
}

/* Privacy Page - Light Theme */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
}

.privacy-content h1 {
    margin-bottom: 28px;
    color: var(--color-accent);
}

.privacy-content h2 {
    font-size: 22px;
    margin: 28px 0 14px;
    color: var(--color-accent);
}

.privacy-content p {
    margin-bottom: 14px;
    color: var(--color-gray-600);
    line-height: 1.7;
}

.privacy-content ul {
    margin: 14px 0 14px 24px;
    color: var(--color-gray-600);
}

.privacy-content li {
    margin-bottom: 8px;
}

/* Select Dropdown - Light Theme */
select.form-input {
    padding-left: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

select.form-input option {
    background: #ffffff;
    color: var(--color-gray-800);
}

/* Phone Country Dropdown - Light Theme */
.phone-country-select {
    position: relative;
}

.phone-country-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 12px;
    background: #ffffff;
    border: 1px solid var(--color-gray-300);
    border-radius: 10px;
    color: var(--color-gray-800);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 100px;
}

.phone-country-btn:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-400);
}

.phone-country-btn .fi {
    font-size: 16px;
    border-radius: 2px;
}

.phone-country-btn .country-code {
    font-weight: 500;
}

.phone-country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: rgba(30, 58, 95, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 100;
    min-width: 120px;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.phone-country-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.country-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.country-option .fi {
    font-size: 16px;
    border-radius: 2px;
}

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-in {
    animation: slideIn 0.5s ease forwards;
}

.animate-shake {
    animation: shake 0.5s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .glass-card {
        border-radius: 16px;
        margin: 16px;
    }

    .otp-container {
        gap: 6px;
    }

    .otp-input {
        width: 44px;
        height: 52px;
        font-size: 18px;
    }

    .error-code {
        font-size: 100px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .otp-input {
        width: 38px;
        height: 46px;
        font-size: 16px;
    }
}

/* Custom Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.closing {
    animation: fadeOut 0.2s ease forwards;
}

.modal-overlay.closing .modal-container {
    animation: scaleOut 0.2s ease forwards;
}

@keyframes scaleOut {
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.modal-container {
    background: linear-gradient(145deg, rgba(30, 58, 95, 0.98), rgba(45, 74, 111, 0.98));
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    padding: 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.modal-message {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-btn-confirm {
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn-confirm:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Form Validation Styles */
.field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fca5a5;
    /* Softer red (red-300) */
    font-size: 12px;
    margin-top: 6px;
    padding-left: 2px;
    opacity: 0.9;
}

.field-error i {
    font-size: 11px;
}

.form-input.error {
    border-color: rgba(252, 165, 165, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(252, 165, 165, 0.1) !important;
}

.form-input.error:focus {
    box-shadow: 0 0 0 4px rgba(252, 165, 165, 0.15) !important;
}

.form-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(252, 165, 165, 0.1);
    border: 1px solid rgba(252, 165, 165, 0.2);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}

.form-error i {
    color: #fca5a5;
    font-size: 16px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}

.form-success i {
    color: #10b981;
    font-size: 16px;
}

/* ============================================
   Admin User Detail Drawer
   ============================================ */
.user-detail-drawer {
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.user-detail-drawer.drawer-open {
    transform: translateX(0);
}

/* Drawer light theme overrides */
.user-detail-drawer .bg-white\/5,
#drawerContent .bg-white\/5 {
    background: var(--color-gray-100) !important;
}

#drawerContent h4 {
    color: var(--color-gray-500) !important;
}

#drawerContent .text-white {
    color: var(--color-gray-800) !important;
}

#drawerContent .text-white\/40,
#drawerContent .text-white\/50 {
    color: var(--color-gray-500) !important;
}

#drawerContent .text-white\/30 {
    color: var(--color-gray-400) !important;
}

#drawerContent .border-white\/5,
#drawerContent .border-white\/10 {
    border-color: var(--color-gray-200) !important;
}

#drawerContent select {
    color: var(--color-gray-700);
    background: transparent;
}

#drawerContent select option {
    background: white;
    color: var(--color-gray-800);
}

/* Drawer tabs - more prominent styling */
#drawerContent .flex.p-1.bg-white\/5 {
    background: var(--color-gray-200) !important;
    border-radius: 10px;
    padding: 4px !important;
}

#drawerContent .flex.p-1 button {
    color: var(--color-gray-500);
    font-weight: 500;
}

#drawerContent .flex.p-1 button.bg-white\/10 {
    background: white !important;
    color: var(--color-gray-800) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

#drawerContent .flex.p-1 button:hover:not(.bg-white\/10) {
    color: var(--color-gray-700);
}

/* Select option light background */
select option {
    background-color: #ffffff;
    color: var(--color-gray-800);
}

/* ============================================
   Light Theme Utility Overrides
   Override Tailwind dark classes for light theme
   ============================================ */

/* Text color overrides for light theme */
.text-white {
    color: var(--color-gray-800) !important;
}

.text-white\/30,
[class*="text-white/3"] {
    color: var(--color-gray-400) !important;
}

.text-white\/40,
[class*="text-white/4"] {
    color: var(--color-gray-500) !important;
}

.text-white\/50,
[class*="text-white/5"]:not([class*="bg-"]) {
    color: var(--color-gray-500) !important;
}

.text-white\/60,
[class*="text-white/6"] {
    color: var(--color-gray-600) !important;
}

.text-white\/70,
[class*="text-white/7"] {
    color: var(--color-gray-600) !important;
}

.text-white\/80,
[class*="text-white/8"] {
    color: var(--color-gray-700) !important;
}

/* Background overrides for light theme */
.bg-white\/5,
[class*="bg-white/5"] {
    background: var(--color-gray-100) !important;
}

.bg-white\/8,
[class*="bg-white/8"] {
    background: var(--color-gray-100) !important;
}

.bg-white\/10,
[class*="bg-white/10"] {
    background: var(--color-gray-100) !important;
}

.bg-white\/12,
[class*="bg-white/12"] {
    background: var(--color-gray-100) !important;
}

/* Border overrides for light theme */
.border-white\/5,
[class*="border-white/5"] {
    border-color: var(--color-gray-200) !important;
}

.border-white\/10,
[class*="border-white/10"] {
    border-color: var(--color-gray-200) !important;
}

/* Hover background overrides */
.hover\:bg-white\/5:hover,
[class*="hover:bg-white/5"]:hover {
    background: var(--color-gray-100) !important;
}

.hover\:bg-white\/8:hover,
[class*="hover:bg-white/8"]:hover {
    background: var(--color-gray-200) !important;
}

/* Table styling for light theme */
.divide-white\/5>*+* {
    border-color: var(--color-gray-200);
}

/* Glass card adjustments for stat cards */
.glass-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.glass-card-light {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Admin stats card text fixes */
.glass-card .text-2xl,
.glass-card h3 {
    color: var(--color-gray-800) !important;
}

.glass-card p {
    color: var(--color-gray-500) !important;
}

/* Admin table headers and rows */
table thead {
    position: relative;
    z-index: 1;
}

table thead th {
    color: var(--color-gray-500) !important;
    background: var(--color-gray-50);
    position: relative;
}

table thead th button,
table thead th a,
table thead th .btn {
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
}

table tbody tr {
    border-color: var(--color-gray-100);
}

table tbody tr:hover {
    background: var(--color-gray-50) !important;
}

table tbody td {
    color: var(--color-gray-700);
}

table tbody td p {
    color: var(--color-gray-600);
}

/* Date widget in admin */
.far.fa-calendar,
.fas.fa-calendar {
    color: var(--color-primary) !important;
}

/* Form success for light theme */
.form-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #047857;
}

.form-success i {
    color: #10b981;
}

/* Main Layout Elements */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.main-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-gray-800);
}

.main-subtitle {
    color: var(--color-gray-500);
    font-size: 12px;
    margin-top: 2px;
}

.sidebar-toggle-btn {
    color: var(--color-gray-400);
    transition: color 0.2s ease;
}

.sidebar-toggle-btn:hover {
    color: var(--color-gray-800);
}

/* Dashboard Elements */
.dashboard-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat-label {
    color: var(--color-gray-500);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-gray-800);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-comparison {
    color: var(--color-gray-400);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dashboard-date-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-gray-100);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--color-gray-200);
    color: var(--color-gray-600);
    font-size: 14px;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-gray-800);
}

.chart-select {
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    padding: 6px 12px;
    color: var(--color-gray-600);
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-details {
    flex: 1;
    min-width: 0;
}

.activity-title {
    color: var(--color-gray-800);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-subtitle {
    color: var(--color-gray-500);
    font-size: 12px;
}

.activity-time {
    color: var(--color-gray-400);
    font-size: 12px;
}

/* Privacy Modal Header */
.privacy-header {
    background-color: var(--color-accent);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-header .modal-close-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.privacy-header .modal-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}



table tbody td {
    color: var(--color-gray-700);
}

table tbody td p {
    color: var(--color-gray-600);
}

/* Date widget in admin */
.far.fa-calendar,
.fas.fa-calendar {
    color: var(--color-primary) !important;
}

/* Form success for light theme */
.form-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #047857;
}

.form-success i {
    color: #10b981;
}

/* Main Layout Elements */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.main-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-gray-800);
}

.main-subtitle {
    color: var(--color-gray-500);
    font-size: 12px;
    margin-top: 2px;
}

.sidebar-toggle-btn {
    color: var(--color-gray-400);
    transition: color 0.2s ease;
}

.sidebar-toggle-btn:hover {
    color: var(--color-gray-800);
}

/* Dashboard Elements */
.dashboard-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat-label {
    color: var(--color-gray-500);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-gray-800);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-comparison {
    color: var(--color-gray-400);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dashboard-date-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-gray-100);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--color-gray-200);
    color: var(--color-gray-600);
    font-size: 14px;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-gray-800);
}

.chart-select {
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    padding: 6px 12px;
    color: var(--color-gray-600);
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-details {
    flex: 1;
    min-width: 0;
}

.activity-title {
    color: var(--color-gray-800);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-subtitle {
    color: var(--color-gray-500);
    font-size: 12px;
}

.activity-time {
    color: var(--color-gray-400);
    font-size: 12px;
}

/* Privacy Modal Header */
.privacy-header {
    background-color: var(--color-accent);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-header .modal-close-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.privacy-header .modal-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.privacy-header span {
    color: rgba(255, 255, 255, 0.9);
}

/* Custom Sidebar & Logo Overrides */
.custom-sidebar-header {
    justify-content: center;
    position: relative;
    padding: 15px !important;
    height: 140px !important;
    min-height: 140px !important;
    max-height: 140px !important;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* Ensure collapsed state has a smaller height */
.sidebar.collapsed .custom-sidebar-header {
    padding: 15px !important;
    height: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;
    transition: all 0.3s ease;
}

/* Expand header on hover when collapsed */
.sidebar.collapsed:hover .custom-sidebar-header {
    height: 140px !important;
    min-height: 140px !important;
    max-height: 140px !important;
}

.custom-sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.custom-logo-img {
    height: 70px;
    width: auto;
    margin-bottom: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-logo-text {
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
}

/* Collapsed Sidebar Logo Handling */
@media (min-width: 1025px) {
    .sidebar.collapsed .custom-logo-img {
        height: 32px;
        margin-bottom: 0;
    }

    .sidebar.collapsed:hover .custom-logo-img {
        height: 70px;
        margin-bottom: 8px;
    }
}

/* Sidebar Section Header (Admin Panel) */
.sidebar.collapsed .sidebar-section-header {
    font-size: 0;
    padding: 0;
    height: 1px;
    margin: 15px auto;
    background: rgba(255, 255, 255, 0.15);
    width: 40px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar.collapsed:hover .sidebar-section-header {
    font-size: 0.75rem;
    /* text-xs equivalent */
    padding: 0.5rem 1.5rem;
    /* py-2 px-6 equivalent */
    height: auto;
    margin: 0.5rem 0 0.25rem 0;
    /* mt-2 mb-1 equivalent */
    background: transparent;
    width: auto;
}

/* Sidebar Pin Button */
.sidebar-pin-btn {
    color: rgba(255, 255, 255, 0.9) !important;
}

.sidebar-pin-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15);
}

/* Avatar Upload & Delete Buttons */
.avatar-upload {
    position: relative;
    display: inline-block;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 5;
}

.avatar-upload-btn i {
    color: #ffffff !important;
}

.avatar-upload-btn:hover {
    background: var(--color-primary);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(10, 41, 78, 0.3);
}

.avatar-delete-btn {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.avatar-delete-btn i {
    color: #ffffff !important;
}

.avatar-delete-btn:hover {
    background: var(--color-accent-hover);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(202, 9, 40, 0.3);
}