/* ============================================
   TemplateMo 3D Glassmorphism Dashboard
   https://templatemo.com
   CSS Stylesheet
============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES
============================================ */
:root {
    /* Primary Colors - Emerald & Gold Luxury */
    --emerald: #059669;
    --emerald-light: #34d399;
    --gold: #d4a574;
    --gold-light: #e8c9a0;
    --amber: #b45309;
    --cream: #fef3e2;
    
    /* Accent Colors */
    --coral: #e07a5f;
    --slate: #475569;
    
    /* Glass Colors */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --glass-hover: rgba(255, 255, 255, 0.08);
    
    /* Background - Deep Forest */
    --bg-dark: #0a0f0d;
    --bg-gradient-1: #0d1a14;
    --bg-gradient-2: #132419;
    --bg-gradient-3: #1a2e23;
    
    /* Text */
    --text-primary: #f5f5f4;
    --text-secondary: rgba(245, 245, 244, 0.7);
    --text-muted: rgba(245, 245, 244, 0.4);
    
    /* Status Colors */
    --success: #22c55e;
    --warning: #eab308;
    --danger: #dc2626;
    --info: #0ea5e9;
    
    /* Spacing */
    --sidebar-width: 280px;
    --navbar-height: 70px;
    --border-radius: 20px;
    --card-padding: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Light Mode */
[data-theme="light"] {
    /* Glass Colors - Light */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    --glass-hover: rgba(255, 255, 255, 0.8);
    
    /* Background - Light */
    --bg-dark: #f5f5f0;
    --bg-gradient-1: #e8f5e9;
    --bg-gradient-2: #f1f8e9;
    --bg-gradient-3: #fefefe;
    
    /* Text - Light */
    --text-primary: #1a1a1a;
    --text-secondary: rgba(26, 26, 26, 0.7);
    --text-muted: rgba(26, 26, 26, 0.5);
}

[data-theme="light"] .orb {
    opacity: 0.15;
}

[data-theme="light"] .glass-card::before {
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
}

[data-theme="light"] .stat-value {
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .chart-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .activity-list::-webkit-scrollbar-thumb {
    background: var(--glass-border);
}

/* ============================================
   RESET & BASE STYLES
============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   ANIMATED BACKGROUND
============================================ */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 50%, var(--bg-gradient-3) 100%);
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(120, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 200, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(255, 0, 200, 0.1) 0%, transparent 50%);
}

/* Floating Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--emerald);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: var(--gold);
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--coral);
    bottom: 10%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* ============================================
   LAYOUT STRUCTURE
============================================ */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   SIDEBAR
============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 24px;
    z-index: 100;
    transition: all var(--transition-normal);
    overflow-y: auto;
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--emerald-light);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 30px;
}

.logo {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.3);
}

.logo-text {
    font-size: 22px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--emerald-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    list-style: none;
    flex: 1;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-section {
    margin-bottom: 25px;
    list-style: none;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-left: 15px;
}

.nav-item {
    margin-bottom: 5px;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.nav-icon {
    width: 22px;
    height: 22px;
    opacity: 0.8;
}

.nav-link.active .nav-icon,
.nav-link:hover .nav-icon {
    opacity: 1;
}

.nav-badge {
    margin-left: auto;
    background: linear-gradient(135deg, var(--gold), var(--amber));
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
}

/* Sidebar User Profile */
.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.user-profile:hover {
    background: var(--glass-hover);
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   MAIN CONTENT
============================================ */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px;
    min-height: 100vh;
}

/* ============================================
   TOP NAVBAR
============================================ */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
}

.search-input {
    width: 280px;
    padding: 12px 20px 12px 48px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--emerald-light);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.2);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.nav-btn {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.nav-btn:hover {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
}

.nav-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.notification-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--coral);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--coral);
}

/* ============================================
   GLASS CARD BASE
============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.glass-card:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 25px 50px -12px var(--glass-shadow),
        0 0 40px rgba(52, 211, 153, 0.1);
}

/* 3D Tilt Effect */
.glass-card-3d {
    transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99);
}

.glass-card-3d:hover {
    transform: rotateX(5deg) rotateY(-5deg) translateZ(10px);
}

/* ============================================
   STATS CARDS
============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    position: relative;
}

.stat-card-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.stat-info h3 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-family: 'Space Mono', monospace;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
}

.stat-change.positive {
    color: var(--success);
    background: rgba(34, 197, 94, 0.15);
}

.stat-change.negative {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.cyan {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(52, 211, 153, 0.05));
    box-shadow: 0 8px 32px rgba(52, 211, 153, 0.2);
}

.stat-icon.magenta {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.2), rgba(212, 165, 116, 0.05));
    box-shadow: 0 8px 32px rgba(212, 165, 116, 0.2);
}

.stat-icon.purple {
    background: linear-gradient(135deg, rgba(224, 122, 95, 0.2), rgba(224, 122, 95, 0.05));
    box-shadow: 0 8px 32px rgba(224, 122, 95, 0.2);
}

.stat-icon.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.2);
}

.stat-icon svg {
    width: 26px;
    height: 26px;
}

/* Sparkline in stat card */
.stat-sparkline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    opacity: 0.3;
}

/* ============================================
   CONTENT GRID
============================================ */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

/* ============================================
   CHART CARD
============================================ */
.chart-card {
    min-height: 380px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.card-btn {
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.card-btn:hover,
.card-btn.active {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
    color: var(--text-primary);
}

/* Chart Container */
.chart-wrapper {
    overflow-x: auto;
    margin: 0 -10px;
    padding: 0 10px;
}

.chart-wrapper::-webkit-scrollbar {
    height: 8px;
}

.chart-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.chart-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--emerald), var(--gold));
    border-radius: 4px;
}

.chart-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, var(--emerald-light), var(--gold-light));
}

.chart-container {
    height: 250px;
    position: relative;
    display: flex;
    min-width: 500px;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
    padding-right: 12px;
    text-align: right;
}

.y-value {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
}

.chart-placeholder {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding: 20px 0;
    border-left: 1px solid var(--glass-border);
    padding-left: 12px;
}

.chart-bar-group {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.chart-bar {
    width: 100%;
    max-width: 40px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--emerald-light), var(--emerald));
    transition: all var(--transition-normal);
    position: relative;
    min-height: 10px;
}

.chart-bar.bar-emerald {
    background: linear-gradient(180deg, #6db897, #3d8b6e);
}

.chart-bar.bar-gold {
    background: linear-gradient(180deg, #c9b896, #a89068);
}

.chart-bar.bar-coral {
    background: linear-gradient(180deg, #d4a090, #b87a68);
}

.chart-bar.bar-teal {
    background: linear-gradient(180deg, #7ac4b8, #4a9e92);
}

.chart-bar.bar-amber {
    background: linear-gradient(180deg, #d4b06a, #a88542);
}

.chart-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2), transparent);
    border-radius: 8px 8px 0 0;
}

.chart-bar:hover {
    filter: brightness(1.15);
    transform: scaleY(1.02);
    transform-origin: bottom;
}

.chart-bar.bar-emerald:hover {
    box-shadow: 0 0 16px rgba(61, 139, 110, 0.4);
}

.chart-bar.bar-gold:hover {
    box-shadow: 0 0 16px rgba(168, 144, 104, 0.4);
}

.chart-bar.bar-coral:hover {
    box-shadow: 0 0 16px rgba(184, 122, 104, 0.4);
}

.chart-bar.bar-teal:hover {
    box-shadow: 0 0 16px rgba(74, 158, 146, 0.4);
}

.chart-bar.bar-amber:hover {
    box-shadow: 0 0 16px rgba(168, 133, 66, 0.4);
}

.chart-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   ACTIVITY FEED
============================================ */
.activity-card {
    max-height: 380px;
    display: flex;
    flex-direction: column;
}

.activity-list {
    flex: 1;
    overflow-y: auto;
    margin: 0 -10px;
    padding: 0 10px;
}

.activity-list::-webkit-scrollbar {
    width: 4px;
}

.activity-list::-webkit-scrollbar-track {
    background: transparent;
}

.activity-list::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 2px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--glass-border);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.activity-text strong {
    color: var(--text-primary);
    font-weight: 500;
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   DATA TABLE
============================================ */
.table-card {
    grid-column: span 2;
}

.table-wrapper {
    margin: 0 -10px;
    padding: 0 10px;
    position: relative;
    max-height: 64vh;
    min-height: 200px;
    overflow-y: auto;
    box-sizing: border-box;
    scrollbar-width: none;
}

.table-wrapper.locked {
    overflow: hidden;
}

.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--emerald), var(--gold));
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, var(--emerald-light), var(--gold-light));
}

.data-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 16px;
    text-align: left;
}

    .data-table thead {
        position: sticky;
        top: 0;
        z-index: 2;
    }


.data-table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
}

.data-table tr {
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
    background: var(--glass-hover);
}

.data-table td {
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.table-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
}

.table-user-info {
    display: flex;
    flex-direction: column;
}

.table-user-name {
    color: var(--text-primary);
    font-weight: 500;
}

.table-user-email {
    font-size: 12px;
    color: var(--text-muted);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status-badge.completed::before {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.status-badge.pending::before {
    background: var(--warning);
    box-shadow: 0 0 8px var(--warning);
}

.status-badge.processing {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.status-badge.processing::before {
    background: var(--info);
    box-shadow: 0 0 8px var(--info);
}

.table-amount {
    font-family: 'Space Mono', monospace;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   PROGRESS BARS
============================================ */
.progress-card {
    padding: var(--card-padding);
}

.progress-item {
    margin-bottom: 24px;
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.progress-label {
    font-size: 14px;
    font-weight: 500;
}

.progress-value {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    color: var(--text-secondary);
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent);
}

.progress-fill.cyan {
    background: linear-gradient(90deg, var(--emerald-light), var(--emerald));
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
}

.progress-fill.magenta {
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.4);
}

.progress-fill.purple {
    background: linear-gradient(90deg, var(--coral), var(--amber));
    box-shadow: 0 0 20px rgba(224, 122, 95, 0.4);
}

/* ============================================
   BOTTOM GRID
============================================ */
.bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ============================================
   CALENDAR WIDGET
============================================ */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.calendar-nav-btn {
    width: 32px;
    height: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.calendar-nav-btn:hover {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
}

.calendar-nav-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.calendar-day-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 0;
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.calendar-day:hover {
    background: var(--glass-hover);
}

.calendar-day.other-month {
    color: var(--text-muted);
}

.calendar-day.today {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
}

/* ============================================
   DONUT CHART
============================================ */
.donut-container {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.donut-chart {
    width: 140px;
    height: 140px;
    position: relative;
}

.donut-chart svg {
    transform: rotate(-90deg);
}

.donut-chart circle {
    fill: none;
    stroke-width: 20;
}

.donut-bg {
    stroke: rgba(255, 255, 255, 0.1);
}

.donut-segment {
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-value {
    font-family: 'Space Mono', monospace;
    font-size: 28px;
    font-weight: 700;
}

.donut-label {
    font-size: 12px;
    color: var(--text-muted);
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.legend-color.cyan { background: var(--emerald-light); }
.legend-color.magenta { background: var(--gold); }
.legend-color.purple { background: var(--coral); }

/* ============================================
   WEATHER WIDGET
============================================ */
.weather-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.weather-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(212, 165, 116, 0.2));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-icon svg {
    width: 45px;
    height: 45px;
    color: var(--emerald-light);
}

.weather-temp {
    font-family: 'Space Mono', monospace;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.weather-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.weather-detail {
    text-align: center;
    padding: 12px;
    background: var(--glass-bg);
    border-radius: 12px;
}

.weather-detail-value {
    font-family: 'Space Mono', monospace;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.weather-detail-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ============================================
   MOBILE MENU TOGGLE
============================================ */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    border: none;
    border-radius: 16px;
    cursor: pointer;
    z-index: 200;
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.3);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* ============================================
   LOGIN PAGE STYLES
============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 28px;
    margin: 0 auto 20px;
    box-shadow: 0 12px 40px rgba(5, 150, 105, 0.3);
}

.login-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: all var(--transition-fast);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--emerald-light);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.2);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--emerald);
}

.forgot-link {
    font-size: 14px;
    color: var(--emerald-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.forgot-link:hover {
    color: var(--gold);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    color: white;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(5, 150, 105, 0.4);
}

.btn-primary:disabled {
    background: #cfcfcf !important;
    color: #7a7a7a !important;
    border: 1px solid #bdbdbd !important;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
    transform: none;
}

    .btn-primary:disabled:hover {
        background: #cfcfcf !important;
        color: #7a7a7a !important;
    }

.btn-secondary {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
}

.btn-red {
    width: 100%;
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid var(--glass-border);
    color: #ff6b6b;
}

    .btn-red:hover {
        background: var(--glass-hover);
        border-color: #ff6b6b;
    }

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.divider span {
    font-size: 13px;
    color: var(--text-muted);
}

.social-login {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
}

.social-btn svg {
    width: 22px;
    height: 22px;
}

.login-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.login-footer a {
    color: var(--emerald-light);
    text-decoration: none;
}

.login-footer a:hover {
    color: var(--gold);
}

/* ============================================
   PAGE HEADER (for inner pages)
============================================ */
.page-header {
    margin-bottom: 30px;
}

.page-header .page-title {
    margin-bottom: 8px;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.page-breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.page-breadcrumb a:hover {
    color: var(--emerald-light);
}

.page-breadcrumb span {
    color: var(--text-muted);
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
    text-align: center;
    padding: 20px;
    margin-left: var(--sidebar-width);
    color: var(--text-muted);
    font-size: 14px;
}

.site-footer a {
    color: var(--emerald-light);
    transition: color var(--transition-fast);
}

.site-footer a:hover {
    color: var(--gold);
}

/* Login/Register page footer */
.login-page .site-footer {
    margin-left: 0;
    position: relative;
    padding: 30px 20px;
    text-align: center;
    margin-top: 30px;
}

/* Floating Theme Toggle for Login/Register */
.theme-toggle-float {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all var(--transition-fast);
}

.theme-toggle-float:hover {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
}

.theme-toggle-float svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

/* ============================================
   SETTINGS PAGE
============================================ */
.settings-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 24px;
}

.settings-nav {
    list-style: none;
}

.settings-nav-item {
    margin-bottom: 8px;
}

.settings-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-secondary);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.settings-nav-link:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.settings-nav-link.active {
    background: var(--glass-hover);
    color: var(--text-primary);
}

.settings-nav-link svg {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.settings-nav-link.active svg,
.settings-nav-link:hover svg {
    opacity: 1;
}

.settings-section {
    margin-bottom: 32px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-label-title {
    font-weight: 500;
    color: var(--text-primary);
}

.settings-label-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 26px;
    transition: all var(--transition-fast);
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    border-color: var(--emerald);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
    background: white;
}

/* Settings Select Dropdown */
.settings-select {
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.settings-select:focus {
    outline: none;
    border-color: var(--emerald-light);
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.15);
}

.settings-select option {
    background: rgba(19, 36, 25, 0.98);
    color: var(--text-primary);
    padding: 10px;
}

[data-theme="light"] .settings-select {
    background-color: rgba(245, 245, 240, 0.95);
}

[data-theme="light"] .settings-select option {
    background: rgba(245, 245, 240, 0.98);
    color: #1a1a1a;
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--emerald), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 36px;
    position: relative;
}

.profile-avatar-edit {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-avatar-edit:hover {
    background: var(--glass-hover);
    border-color: var(--emerald-light);
}

.profile-avatar-edit svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.profile-info h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-info p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Settings Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group-settings {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-settings.full-width {
    grid-column: span 2;
}

.form-group-settings label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

    .form-group-settings input,
    .form-group-settings textarea
    .form-group-settings select {
        padding: 12px 16px;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 10px;
        color: var(--text-primary);
        font-family: inherit;
        font-size: 14px;
        transition: all var(--transition-fast);
    }

.form-group-settings input:focus,
.form-group-settings textarea:focus {
    outline: none;
    border-color: var(--emerald-light);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.15);
}

.form-group-settings textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Settings Tab Content */
.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
    animation: settingsFadeIn 0.3s ease;
}

@keyframes settingsFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */
@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bottom-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .table-card {
        grid-column: span 1;
    }
}

@media (max-width: 992px) {
    :root {
        --sidebar-width: 0px;
    }
    
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .bottom-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        margin-left: 0;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-nav-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar {
        flex-wrap: wrap;
    }
    
    .search-box {
        order: 3;
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .donut-container {
        flex-direction: column;
    }

    .login-card {
        padding: 36px 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group-settings.full-width {
        grid-column: span 1;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 15px;
    }
    
    .glass-card {
        padding: 18px;
    }
    
    .stat-value {
        font-size: 26px;
    }
    
    .data-table {
        font-size: 13px;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 8px;
    }

    .social-login {
        flex-direction: column;
    }
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.stats-grid .glass-card:nth-child(1) { animation-delay: 0.1s; }
.stats-grid .glass-card:nth-child(2) { animation-delay: 0.2s; }
.stats-grid .glass-card:nth-child(3) { animation-delay: 0.3s; }
.stats-grid .glass-card:nth-child(4) { animation-delay: 0.4s; }

.content-grid .glass-card:nth-child(1) { animation-delay: 0.5s; }
.content-grid .glass-card:nth-child(2) { animation-delay: 0.6s; }
.content-grid .glass-card:nth-child(3) { animation-delay: 0.7s; }

.bottom-grid .glass-card:nth-child(1) { animation-delay: 0.8s; }
.bottom-grid .glass-card:nth-child(2) { animation-delay: 0.9s; }
.bottom-grid .glass-card:nth-child(3) { animation-delay: 1s; }

.login-card {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   Travels Form
============================================ */

.ticket-form {
    font-family: Arial, sans-serif;
    width: 100%;
    height: 100%;
    padding: 1.6vh;
    border-radius: 24px;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: white;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2vh;
}
.central {
    display: grid;
    gap: 0.4vh;
    justify-content: center;
    max-height: 100%;
    align-items: center;
}

    .central > .row {
        grid: 1;
    }

.radio-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-input {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 9999px;
    background-color: #fff;
    color: #000000;
    width: var(--container_width);
    overflow: hidden;
    border: 1px solid rgba(53, 52, 52, 0.226);
}

    .radio-input label {
        width: 100%;
        padding: 10px;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1;
        font-weight: 600;
        letter-spacing: -1px;
        font-size: 14px;
    }

#typeTicket:checked + span,
#typeGround:checked + span {
    color: #fff;
}



.selection {
    position: absolute;
    height: 100%;
    width: calc(var(--container_width) / var(--property_count));
    left: 0;
    top: 0;
    background-color: rgb(11 117 223);
    z-index: 0;
    transition: transform .18s ease;
}

.radio-input label:nth-of-type(1):has(input:checked) ~ .selection {
    transform: translateX(0%);
}

.radio-input label:nth-of-type(2):has(input:checked) ~ .selection {
    transform: translateX(100%);
}

.items-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ============================================
   Tooltip
============================================ */

.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

.tooltip-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ============================================
   IOS Checkbox
============================================ */

.ios-checkbox {
    --checkbox-size: 24px;
    --checkbox-color: #3b82f6;
    --checkbox-bg: #dbeafe;
    --checkbox-border: #93c5fd;
    position: relative;
    display: inline-block;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

    .ios-checkbox input {
        display: none;
    }

.checkbox-wrapper {
    position: relative;
    width: var(--checkbox-size);
    height: var(--checkbox-size);
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.checkbox-bg {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    border: 2px solid var(--checkbox-border);
    background: transparent;
    transition: all 0.2s ease;
}

.checkbox-icon {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 80%;
    height: 80%;
    color: white;
    transform: scale(0);
    transition: all 0.2s ease;
}

.check-path {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    transition: stroke-dashoffset 0.3s ease 0.1s;
}

/* Checked State */
.ios-checkbox input:checked + .checkbox-wrapper .checkbox-bg {
    background: var(--checkbox-color);
    border-color: var(--checkbox-color);
}

.ios-checkbox input:checked + .checkbox-wrapper .checkbox-icon {
    transform: scale(1);
}

.ios-checkbox input:checked + .checkbox-wrapper .check-path {
    stroke-dashoffset: 0;
}

/* Hover Effects */
.ios-checkbox:hover .checkbox-wrapper {
    transform: scale(1.05);
}

/* Active Animation */
.ios-checkbox:active .checkbox-wrapper {
    transform: scale(0.95);
}

/* Focus Styles */
.ios-checkbox input:focus + .checkbox-wrapper .checkbox-bg {
    box-shadow: 0 0 0 4px var(--checkbox-bg);
}

.ios-checkbox.green {
    --checkbox-color: #10b981;
    --checkbox-bg: #d1fae5;
    --checkbox-border: #10b981;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.ios-checkbox input:checked + .checkbox-wrapper {
    animation: bounce 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Services Table
============================================ */

service-table-wrapper {
    max-height: 400px;
    min-height: 250px;
    height: 15vh;
    overflow-y: auto;
    border: 2px #10b981 solid;
    border-radius: 12px;
}

.service-table {
    width: 100%;
    border-collapse: collapse;
    color: black;
    font-size: 0.85rem;
}

    .service-table thead th {
        position: sticky;
        top: 0;
        background: white;
        z-index: 2;
    }

    .service-table th,
    .service-table td {
        padding: 10px;
        border-bottom: 1px solid #e5e7eb;
    }

    .service-table input[type="number"] {
        width: 65px;
        text-align: center;
    }

.service-table-wrapper {
    position: relative;
}

    .service-table-wrapper.locked {
        overflow: hidden;
    }

.services-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,0.55);
    border-radius: 12px;
    z-index: 50;
    transition: opacity .25s ease;
    pointer-events: all;
}

    .services-overlay.hidden {
        opacity: 0;
        pointer-events: none;
    }

.services-overlay-box {
    text-align: center;
    padding: 28px 36px;
    border-radius: 14px;
    background: rgba(255,255,255,0.75);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.services-overlay-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 6px;
}

.services-overlay-sub {
    font-size: 13px;
    color: #6b7280;
}

.basket-card {
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    padding: 10px;
    overflow-y: scroll;
    box-shadow: 0px 187px 75px rgba(0, 0, 0, 0.01), 0px 105px 63px rgba(0, 0, 0, 0.05), 0px 47px 47px rgba(0, 0, 0, 0.09), 0px 12px 26px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0.1);
}

.cart {
    border-radius: 16px;
}

    .cart .products {
        display: flex;
        flex-direction: column;
        padding: 10px;
    }

        .cart .products .product {
            display: grid;
            grid-template-columns: 60px 1fr 80px 1fr;
            gap: 10px;
        }

            .cart .products .product span {
                font-size: 13px;
                font-weight: 600;
                color: #47484b;
                margin-bottom: 8px;
                display: block;
            }

            .cart .products .product p {
                font-size: 11px;
                font-weight: 600;
                color: #7a7c81;
            }

    .cart .quantity {
        height: 30px;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        margin: auto;
        background-color: #ffffff;
        border: 1px solid #e5e5e5;
        border-radius: 7px;
        filter: drop-shadow(0px 1px 0px #efefef) drop-shadow(0px 1px 0.5px rgba(239, 239, 239, 0.5));
    }

        .cart .quantity label {
            width: 20px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding-bottom: 2px;
            font-size: 15px;
            font-weight: 700;
            color: #47484b;
        }

        .cart .quantity button {
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 0;
            outline: none;
            background-color: transparent;
            padding-bottom: 2px;
        }

.basket-card .small {
    font-size: 15px;
    margin: 0 0 auto auto;
}

    .basket-card .small sup {
        font-size: px;
    }

/* ============================================
   Notifications
============================================ */

.notification {
    width: 140px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(-45deg, #10b981, #06b6d4, #34d399, #059669);
    border-radius: 30px;
    color: rgb(255, 255, 255);
    font-weight: 600;
    border: none;
    position: relative;
    cursor: pointer;
    transition-duration: .2s;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.116);
}

.bell {
    width: 13px;
}

    .bell path {
        fill: rgb(255, 255, 255);
    }

.notification:hover {
    background: linear-gradient(-45deg, #10b981, #06b6d4, #34d399, #059669);
}

.notification:active {
    transform: scale(0.97);
    transition-duration: .2s;
}

.notification:hover .bell {
    animation: bellRing 0.9s both;
}

/* bell ringing animation keyframes*/
@keyframes bellRing {
    0%, 100% {
        transform-origin: top;
    }

    15% {
        transform: rotateZ(10deg);
    }

    30% {
        transform: rotateZ(-10deg);
    }

    45% {
        transform: rotateZ(5deg);
    }

    60% {
        transform: rotateZ(-5deg);
    }

    75% {
        transform: rotateZ(2deg);
    }
}

.notification-wrapper {
    position: relative;
    display: inline-block;
}

.notification-dropdown {
    position: absolute;
    top: 0;
    margin-top: 40px;
    width: 300px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 8px;
}

.hidden {
    display: none;
}

.notification-item {
    width: 100%;
    background-color: #f2f3f7;
    border-radius: 12px;
    cursor: pointer;
    transition: ease 0.2s;
    box-shadow: 1em 1em 1em #d8dae0b1, -0.75em -0.75em 1em #ffffff;
    border: 1.5px solid #f2f3f7;
    font-size: 12px;
}

    .notification-item:hover {
        background-color: #D3F1DC;
        border: 1.5px solid #10b981;
    }

.notification-item-container {
    margin: 0.65em;
    display: flex;
    flex-direction: row;
    gap: 0.45em;
}

.notification-item-status-ind {
    width: 0.625em;
    height: 0.625em;
    background-color: #ff0000;
    margin: 0.375em 0;
    border-radius: 0.5em;
}

.notification-item-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    color: #333;
}

.notification-item-time {
    font-size: 0.875em;
    color: #777;
}

.notification-item-text-link {
    font-weight: 500;
    text-decoration: none;
    color: black;
}

.notification-item-button-wrap {
    display: flex;
    flex-direction: row;
    gap: 1em;
    align-items: center;
}

.notification-item-secondary-cta {
    background-color: transparent;
    border: none;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    cursor: pointer;
}

.notification-item-primary-cta {
    font-size: 12px;
    background-color: transparent;
    font-weight: 600;
    color: #1677ff;
    border: none;
    border-radius: 1.5em;
    cursor: pointer;
}

notification-item-button:hover {
    text-decoration: underline;
}

.notification-item-right {
    display: flex;
    flex-direction: column;
    gap: 0.875em;
}

.notification-number {
    color: white;
    font-size: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: red;
    position: absolute;
    left: 16px;
    top: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.list {
    height: 100%;
    width: 100%;
    display: grid;
    grid-auto-flow: row;
    overflow: hidden;
    gap: 1rem;
    padding: 1rem;
}

.listitem {
    height: 100%;
    width: 100%;
}

.article {
    border-radius: 16px;
    width: 100%;
    border: 1px solid #c1c2c5;
    display: inline-block;
    background-color: white;
}

/* ============================================
   Quantity
============================================ */

.quantity {
    height: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: auto;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 7px;
    filter: drop-shadow(0px 1px 0px #efefef) drop-shadow(0px 1px 0.5px rgba(239, 239, 239, 0.5));
}

    .quantity label {
        width: 20px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 2px;
        font-size: 15px;
        font-weight: 700;
        color: #47484b;
    }

    .quantity button {
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
        outline: none;
        background-color: transparent;
        padding-bottom: 2px;
    }

/* ============================================
   File Input
============================================ */

#file-input {
    width: 350px;
    max-width: 100%;
    min-width: 250px;
    color: var(--text-primary);
    padding: 2px;
    font-size: 0.9rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
}

    #file-input::file-selector-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 28px;
        border-radius: var(--border-radius);
        font-family: inherit;
        font-size: 15px;
        font-weight: 500;
        cursor: pointer;
        transition: all var(--transition-fast);
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        color: var(--text-primary);
    }

        #file-input::file-selector-button:hover {
            background: var(--glass-hover);
            border-color: var(--emerald-light);
        }


/* ============================================
   Preview
============================================ */

.preview-card {
    width: min(1600px, 96vw);
    height: 60vh; /* use fixed height instead of max-height */
    background: #fff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding-top: 10px;
    padding: 5px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    transition: all var(--transition-normal);
    transform-style: preserve-3d;
    perspective: 1000px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    .preview-card form {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0; /* CRITICAL for overflow to work in flex layouts */
    }

.preview-table-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
}

    .preview-table-wrap .service-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }

        .preview-table-wrap .service-table thead th {
            position: sticky;
            top: 0;
            z-index: 2;
            background: #fff;
            box-shadow: 0 1px 0 rgba(0,0,0,0.08);
        }

            .preview-table-wrap .service-table thead th:first-child {
                border-top-left-radius: 12px;
            }

            .preview-table-wrap .service-table thead th:last-child {
                border-top-right-radius: 12px;
            }

        .preview-table-wrap .service-table tbody td {
            height: 5vh;
            min-height: 38px; /* prevents microscopic rows on small screens */
            padding: 6px 10px;
            vertical-align: middle;
        }

        .preview-table-wrap .service-table tbody td {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }


.preview-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    z-index: 9999;
}
.preview-actions {
    padding: 14px 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 3;
}

.preview-header {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    flex: 0 0 auto;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 3;
}

.invoice-main {
    background: #f5f7fa;
    font-size: 15px;
}

.invoice-passenger {
    padding: 10px;
}

.invoice-summary {
    margin-top: 4px;
    color: #444;
}

.invoice-sub td {
    padding: 6px 10px;
    font-size: 14px;
}

.invoice-separator hr {
    border: none;
    border-top: 1px solid #ddd;
}

.invoice-header-box {
    background: #f7f9fc;
    padding: 14px 18px;
    border-radius: 8px;
    margin: 10px 16px;
    border: 1px solid #e3e6ef;
    color: black;
}

.invoice-header-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 20px;
    font-size: 14px;
}


/* ============================================
   Dropdown
============================================ */


.dropdown {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    transition: all 300ms;
    display: flex;
    width: 100%;
    height: none;
    flex-direction: column;
    position: relative;
    inset-inline: auto;
    align-items: center;
}

    .dropdown input:where(:checked) ~ .list {
        opacity: 1;
        transform: translateY(-3rem) scale(1);
        transition: all 500ms ease;
        margin-top: 12px;
        padding-top: 4px;
        margin-bottom: -32px;
    }

    .dropdown input:where(:not(:checked)) ~ .list {
        opacity: 0;
        transform: translateY(3rem);
        margin-top: -100%;
        user-select: none;
        height: 0px;
        max-height: 0px;
        min-height: 0px;
        pointer-events: none;
        transition: all 500ms ease-out;
    }

.trigger {
    cursor: pointer;
    list-style: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    font-weight: 600;
    color: inherit;
    display: flex;
    align-items: center;
    flex-flow: row;
    gap: 1rem;
    padding: 1rem;
    vertical-align: central;
    height: 2vh;
    min-height: 30px;
    width: 150px;
    position: relative;
    z-index: 99;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    color: white;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.dropdown input:where(:checked) + .trigger {
    margin-bottom: 1rem;
}

    .dropdown input:where(:checked) + .trigger:before {
        rotate: 90deg;
        transition-delay: 0ms;
    }

    .dropdown input:where(:checked) + .trigger::after {
        content: "Close";
    }

.trigger:before,
.trigger::after {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trigger:before {
    content: "\27A4";
    rotate: -90deg;
    width: 17px;
    height: 17px;
    color: white;
    margin: 5px;
    border-radius: 2px;
    font-size: 20px;
    transition: all 350ms ease;
    transition-delay: 85ms;
}

.trigger::after {
    content: "Open";
}

/* ============================================
   Stepper
============================================ */

.stepper-main {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    overflow-x: scroll;
    max-width: 2300px;
    gap: 20px;
}

.property-block {
    max-width: 700px;
    flex-shrink: 0;
    background: linear-gradient(-45deg, #10b981, #06b6d4, #34d399, #059669);
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.property-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.type-box {
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
    vertical-align: bottom;
}

.type-box-title {
    font-weight: 700;
}

.property-scroll {
    display: none;
    overflow-x: auto;
    padding-bottom: 12px;
    gap: 20px;
}

    .property-scroll.visible {
        display: flex;
    }

.stepper-box {
    background-color: white;
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stepper-step {
    display: flex;
    margin-bottom: 20px;
    position: relative;
}

    .stepper-step:last-child {
        margin-bottom: 0;
    }

.stepper-line {
    position: absolute;
    left: 14px;
    top: 30px;
    bottom: -22px;
    width: 2px;
    background-color: #e2e8f0;
    z-index: 1;
}

.stepper-step:last-child .stepper-line {
    display: none;
}

.stepper-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    z-index: 2;
}

.stepper-completed .stepper-circle {
    background-color: #0f172a;
    color: white;
}

.stepper-active .stepper-circle {
    border: 2px solid #0f172a;
    color: #0f172a;
}

.stepper-pending .stepper-circle {
    border: 2px solid #e2e8f0;
    color: #94a3b8;
}

.stepper-content {
    flex: 1;
}

.stepper-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.stepper-header {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
}

.stepper-consum {
    font-size: 0.85rem;
    color: green;
    margin-top: 4px;
}


.stepper-completed .stepper-title {
    color: #0f172a;
}

.stepper-active .stepper-title {
    color: #0f172a;
}

.stepper-pending .stepper-title {
    color: #94a3b8;
}

.stepper-status {
    font-size: 13px;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 4px;
}

.stepper-completed .stepper-status {
    background-color: #dcfce7;
    color: #166534;
}

.stepper-active .stepper-status {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.stepper-pending .stepper-status {
    background-color: #f1f5f9;
    color: #64748b;
}

.stepper-time {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.stepper-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.stepper-button {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background-color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stepper-button-primary {
    background-color: #0f172a;
    color: white;
    border-color: #0f172a;
}


.two-column {
    display: flex;
    gap: 5px;
    justify-content: space-between;
    max-height: 100%;
}

    .two-column > .column {
        flex: 1;
    }

    .two-column > .column1 {
        flex: 2.5;
    }

    .two-column > .column2 {
        flex: 1;
    }

/* ============================================
   Search
============================================ */

.search-wrapper {
    position: relative;
    z-index: 1000;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    max-height: 220px;
    overflow-y: auto;
    z-index: 999999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    color: black;
    font-size: 0.85rem;
    border-radius: 0px 0px 12px 12px;
}

.search-item {
    padding: 10px 14px;
    cursor: pointer;
}

    .search-item:hover {
        background: #f3f4f6;
    }


/* ============================================
   Invoice Details
============================================ */

.load-card {
    --primary-color: var(--emerald);
    --background: rgb(255, 255, 255);
    --hover-bg: #D3F1DC;
    --box-shadow: rgb(218, 226, 234);
    --border: var(--emerald);
    --price-color: var(--emerald);
    --unit-pills-bg: rgb(228, 247, 232);
    --unit-pills-color: rgb(72, 72, 72);
    --bold: 600;
    --semi-bold: 500;
    font-family: "poppins", sans-serif;
    display: grid;
    grid-row-gap: 4px;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: var(--box-shadow) 0px 0px 10px 0px;
    background: var(--background);
    margin-bottom: 10px;
    color: var(--primary-color);
    transition: 0.4s ease-in-out;
    border-bottom: 6px solid var(--unit-pills-bg);
    cursor: pointer;
    margin: 8px;
}

    .load-card:hover {
        box-shadow: var(--box-shadow) 0px 2px 4px 0px;
        background: var(--hover-bg);
        border-bottom: 6px solid var(--border);
        transition: 0.2s ease-in-out;
    }

.card-name-price,
.card-time,
.card-info,
.units-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-name-price {
    font-size: 20px;
}

.load-card-price {
    color: var(--price-color);
    font-weight: var(--bold);
}

.card-time {
    font-size: 12px;
    opacity: 0.5;
}

.card-info {
    column-gap: 12px;
    margin: 8px 0px 8px 19px;
    text-align: center;
}

.card-date-wrapper {
    display: flex;
    flex-direction: column;
}

.card-info .month,
.card-info .day {
    font-size: 12px;
    opacity: 0.5;
}

.card-info .date {
    font-size: 28px;
    font-weight: var(--semi-bold);
    transition: 0.4s ease-in-out;
}

.city-with-mi {
    display: flex;
    align-items: center;
}

.city-nm {
    font-size: 14px;
}

.mi {
    font-size: 12px;
    opacity: 0.5;
    flex-shrink: 0;
}

.rc {
    font-size: 9px;
    opacity: 0.5;
}

.card-city-unit-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 30px;
    position: relative;
    overflow: hidden;
}

    .card-city-unit-wrapper::before {
        content: "";
        position: absolute;
        height: 71%;
        top: 15%;
        left: 4px;
        border-left: 2px dotted gray;
        opacity: 0.5;
        z-index: 0;
    }

.city-with-mi {
    display: flex;
    align-items: center;
    column-gap: 8px;
}

.round-icon {
    display: block;
    height: 9px;
    width: 9px;
    border-radius: 10px;
    border: 2px solid gray;
    background-color: #ffffff;
    z-index: 1;
}

.square-icon {
    display: block;
    height: 9px;
    width: 9px;
    border: 2px solid var(--border);
    background-color: #ffffff;
    z-index: 1;
}

.rate-check-box {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    row-gap: 4px;
    border: 1px dashed rgb(145, 145, 145);
    border-radius: 2px;
    padding: 4px;
    transition: 0.2s ease-in-out;
}

.load-card:hover .rate-check-box {
    border: 1px dashed var(--background);
    color: var(--background);
    background-color: var(--border);
}

    .load-card:hover .rate-check-box .rc,
    .load-card:hover .rate-check-box .mi {
        opacity: 1;
    }

.rate-check-box .rate {
    font-size: 12px;
    height: 15px;
    line-height: 16px;
    opacity: 1;
    transition: opacity 2s ease 0s;
}

.pills-wrapper {
    display: flex;
    align-items: center;
    column-gap: 4px;
    color: rgb(72, 72, 72);
    font-size: 12px;
}

.unit-pill {
    background-color: var(--unit-pills-bg);
    border-radius: 10px;
    padding: 4px 12px;
    transition: 0.4s ease-in-out;
}

    .unit-pill:hover {
        background-color: #10b981;
        color: var(--background);
    }


.settings-tabs {
    display: flex;
    gap: 10px;
    background: var(--glass-bg);
    padding: 6px;
    border-radius: 12px;
    width: fit-content;
    margin-bottom: 10px;
}

    /* hide radios */
    .settings-tabs input {
        display: none;
    }

    /* tab appearance */
    .settings-tabs label {
        padding: 8px 16px;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 8px;
        color: var(--text-secondary);
        font-family: inherit;
        font-size: 13px;
        cursor: pointer;
        transition: all var(--transition-fast);
        user-select: none;
    }

    /* SELECTED TAB */
    .settings-tabs input:checked + label {
        background: var(--glass-hover);
        border-color: var(--emerald-light);
        color: var(--text-primary);
    }

/* ============================================
   Success Notification
============================================ */

.global-success {
    position: fixed;
    bottom: 20px;
    left: 55.6%;
    transform: translateX(-50%);
    z-index: 9999;
    transition: all 0.8s ease;
    animation: slideRight 0.8s ease forwards;
}

.success-card {
    width: 330px;
    height: 80px;
    border-radius: 8px;
    box-sizing: border-box;
    padding: 10px 15px;
    background-color: #ffffff;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 15px;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.wave {
    position: absolute;
    transform: rotate(90deg);
    left: -31px;
    top: 32px;
    width: 80px;
    fill: #04e4003a;
}

.icon-container {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #04e40048;
    border-radius: 50%;
    margin-left: 8px;
    flex-shrink: 0;
}

.icon {
    width: 17px;
    height: 17px;
    color: #269b24;
}

.message-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex-grow: 1;
}

.message-text,
.sub-text {
    margin: 0;
    cursor: default;
}

.message-text {
    color: #269b24;
    font-size: 17px;
    font-weight: 700;
}

.sub-text {
    font-size: 14px;
    color: #555;
}

.cross-button {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cross-icon {
    width: 18px;
    height: 18px;
    color: #555;
}

@keyframes slideRight {
    from {
        transform: translateX(-50%) translateX(30px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateX(0);
        opacity: 1;
    }
}