/* VitalVault Global Theme CSS */
/* Based on the login page design - Black & Gold Marble Theme */

/* CSS Custom Properties for Global Theme */
:root {
    /* Color Palette */
    --color-primary: #D4AF37;          /* Gold */
    --color-primary-light: #FFD700;     /* Light Gold */
    --color-primary-dark: #B8941F;      /* Dark Gold */
    --color-secondary: #1a1a1a;         /* Dark Black */
    --color-background: #000000;        /* Pure Black */
    --color-surface: rgba(60, 60, 60, 1);  /* Opaque lighter dark surface */
    --color-surface-hover: rgba(80, 80, 80, 1);
    
    /* Text Colors */
    --color-text-primary: #ffffff;      /* White text */
    --color-text-secondary: rgba(255, 255, 255, 0.8);
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-text-accent: #D4AF37;       /* Gold text */
    --color-text-dark: #000000;         /* Dark text for gold backgrounds */
    
    /* Border Colors */
    --color-border: rgba(255, 255, 255, 0.2);
    --color-border-accent: rgba(212, 175, 55, 0.3);
    --color-border-focus: #D4AF37;
    
    /* Status Colors */
    --color-success: #22c55e;
    --color-success-bg: rgba(34, 197, 94, 0.1);
    --color-warning: #f59e0b;
    --color-warning-bg: rgba(245, 158, 11, 0.1);
    --color-error: #ef4444;
    --color-error-bg: rgba(239, 68, 68, 0.1);
    --color-info: #3b82f6;
    --color-info-bg: rgba(59, 130, 246, 0.1);
    
    /* Typography */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Font Sizes */
    --font-size-xs: 0.75rem;     /* 12px */
    --font-size-sm: 0.875rem;    /* 14px */
    --font-size-base: 1rem;      /* 16px */
    --font-size-lg: 1.125rem;    /* 18px */
    --font-size-xl: 1.25rem;     /* 20px */
    --font-size-2xl: 1.5rem;     /* 24px */
    --font-size-3xl: 1.875rem;   /* 30px */
    --font-size-4xl: 2.25rem;    /* 36px */
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacing-xs: 0.25rem;     /* 4px */
    --spacing-sm: 0.5rem;      /* 8px */
    --spacing-md: 0.75rem;     /* 12px */
    --spacing-lg: 1rem;        /* 16px */
    --spacing-xl: 1.5rem;      /* 24px */
    --spacing-2xl: 2rem;       /* 32px */
    --spacing-3xl: 3rem;       /* 48px */
    --spacing-4xl: 4rem;       /* 64px */
    
    /* Border Radius */
    --radius-sm: 0.25rem;      /* 4px */
    --radius-md: 0.5rem;       /* 8px */
    --radius-lg: 0.75rem;      /* 12px */
    --radius-xl: 1rem;         /* 16px */
    --radius-2xl: 1.25rem;     /* 20px */
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 15px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 8px 25px rgba(212, 175, 55, 0.4);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
    
    /* Background Images */
    --bg-marble: url('/assets/img/black-gold-marble.webp');
}

/* Light Mode Theme Variables */
[data-theme="light"] {
    /* Color Palette - Light Mode */
    --color-primary: #B8941F;          /* Darker Gold for better contrast */
    --color-primary-light: #D4AF37;     /* Original Gold */
    --color-primary-dark: #9A7A1A;      /* Even darker gold */
    --color-secondary: #f5f5f5;         /* Light Gray */
    --color-background: #ffffff;        /* Pure White */
    --color-surface: rgba(248, 248, 248, 1);  /* Very light gray surface */
    --color-surface-hover: rgba(240, 240, 240, 1);
    
    /* Text Colors - Light Mode */
    --color-text-primary: #1a1a1a;      /* Dark text */
    --color-text-secondary: rgba(26, 26, 26, 0.8);
    --color-text-muted: rgba(26, 26, 26, 0.6);
    --color-text-accent: #B8941F;       /* Dark gold text */
    --color-text-dark: #1a1a1a;         /* Dark text */
    
    /* Border Colors - Light Mode */
    --color-border: rgba(26, 26, 26, 0.1);
    --color-border-accent: rgba(184, 148, 31, 0.3);
    --color-border-focus: #B8941F;
    
    /* Status Colors - Light Mode (adjust for better contrast) */
    --color-success: #16a34a;
    --color-success-bg: rgba(22, 163, 74, 0.1);
    --color-warning: #d97706;
    --color-warning-bg: rgba(217, 119, 6, 0.1);
    --color-error: #dc2626;
    --color-error-bg: rgba(220, 38, 38, 0.1);
    --color-info: #2563eb;
    --color-info-bg: rgba(37, 99, 235, 0.1);
    
    /* Shadows - Light Mode */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 15px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 8px 25px rgba(184, 148, 31, 0.3);
    
    /* Background Images - Light Mode */
    --bg-marble: url('/assets/img/white-marble.webp');
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Classes */
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }
.text-4xl { font-size: var(--font-size-4xl); }

.font-light { font-weight: var(--font-weight-light); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-text-accent); }
.text-dark { color: var(--color-text-dark); }

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-lg);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

/* Brand Name Styling */
.brand-name {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

@media (max-width: 768px) {
    .brand-name {
        font-size: var(--font-size-2xl);
        letter-spacing: 2px;
    }
}

/* Logo Styles */
.logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.logo-small {
    width: 40px;
    height: 40px;
}

.logo-large {
    width: 120px;
    height: 120px;
}

/* Background Classes */
.bg-marble {
    background-image: var(--bg-marble);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.bg-marble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.bg-marble > * {
    position: relative;
    z-index: 2;
}

/* Glass Morphism Effects */
.glass {
    background: var(--color-surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.glass-hover:hover {
    background: var(--color-surface-hover);
    transform: translateY(-2px);
    transition: all var(--transition-normal);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-xl);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: 2px solid var(--color-border-focus);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-text-dark);
    box-shadow: var(--shadow-md);
}

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

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

.btn-secondary:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border-accent);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-border);
}

.btn-outline:hover {
    background: var(--color-surface);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
    border: none;
}

.btn-ghost:hover {
    background: var(--color-surface);
    color: var(--color-text-primary);
}

/* Button Sizes */
.btn-sm {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-size-lg);
}

.btn-xl {
    padding: var(--spacing-xl) var(--spacing-3xl);
    font-size: var(--font-size-xl);
}

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

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

.form-input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text-primary);
    font-size: var(--font-size-base);
    font-family: var(--font-family-primary);
    transition: all var(--transition-normal);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    background: var(--color-surface-hover);
}

.input-with-icon {
    position: relative;
}

.input-with-icon .form-input {
    padding-left: var(--spacing-3xl);
}

.input-icon {
    position: absolute;
    left: var(--spacing-lg);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: var(--font-size-base);
    pointer-events: none;
}

/* Card Styles */
.card {
    background: var(--color-surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

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

.card-header {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin: 0;
}

.card-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--spacing-xs);
}

/* Alert/Message Styles */
.alert {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    border: 1px solid transparent;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: var(--color-success-bg);
    border-color: var(--color-success);
    color: var(--color-success);
}

.alert-warning {
    background: var(--color-warning-bg);
    border-color: var(--color-warning);
    color: var(--color-warning);
}

.alert-error {
    background: var(--color-error-bg);
    border-color: var(--color-error);
    color: var(--color-error);
}

.alert-info {
    background: var(--color-info-bg);
    border-color: var(--color-info);
    color: var(--color-info);
}

/* Navigation Styles */
.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link.active {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mb-2xl { margin-bottom: var(--spacing-2xl); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mt-2xl { margin-top: var(--spacing-2xl); }

.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }
.p-2xl { padding: var(--spacing-2xl); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.transition { transition: all var(--transition-normal); }
.transition-fast { transition: all var(--transition-fast); }
.transition-slow { transition: all var(--transition-slow); }

/* Responsive Utilities */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .text-4xl { font-size: var(--font-size-3xl); }
    .text-3xl { font-size: var(--font-size-2xl); }
    
    .btn-lg {
        padding: var(--spacing-md) var(--spacing-xl);
        font-size: var(--font-size-base);
    }
    
    .card {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .text-3xl { font-size: var(--font-size-xl); }
    .text-2xl { font-size: var(--font-size-lg); }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }
    
    .card {
        padding: var(--spacing-md);
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Focus Management for Accessibility */
.focus-visible:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --color-surface: rgba(80, 80, 80, 1);
        --color-border: rgba(255, 255, 255, 0.4);
    }
    
    [data-theme="light"] {
        --color-surface: rgba(240, 240, 240, 1);
        --color-border: rgba(26, 26, 26, 0.4);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .card:hover {
        transform: none;
    }
}

/* Enhanced Inactivity Warning Modal Styles */
#inactivityModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1055 !important;
    display: none !important;
    background-color: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

#inactivityModal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
}

#inactivityModal .modal-dialog {
    margin: 0 !important;
    max-width: none !important;
    width: auto !important;
    position: relative !important;
    transform: none !important;
}

#inactivityModal .modal-content.inactivity-modal {
    background: linear-gradient(145deg, 
        rgba(15, 15, 15, 0.98) 0%, 
        rgba(25, 25, 25, 0.95) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    max-width: 480px;
    width: 90%;
    position: relative !important;
    transform: none !important;
    animation: slideInDown 0.3s ease-out;
}

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

/* Header Section */
#inactivityModal .inactivity-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        rgba(212, 175, 55, 0.05) 100%);
    position: relative;
}

#inactivityModal .inactivity-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.5) 50%, 
        transparent 100%);
}

#inactivityModal .warning-icon-container {
    margin-bottom: 1rem;
}

#inactivityModal .warning-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        var(--color-primary) 0%, 
        var(--color-primary-light) 100%);
    border-radius: 50%;
    color: var(--color-text-dark);
    font-size: 24px;
    box-shadow: 
        0 8px 20px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

#inactivityModal .modal-title {
    color: var(--color-text-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

#inactivityModal .subtitle {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.8;
}

/* Countdown Section */
#inactivityModal .countdown-section {
    text-align: center;
    padding: 1.5rem 2rem;
    position: relative;
}

#inactivityModal .countdown-circle {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

#inactivityModal .countdown-ring {
    transform: rotate(-90deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

#inactivityModal .countdown-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

#inactivityModal .countdown-ring-progress {
    fill: none;
    stroke: url(#countdown-gradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 377; /* 2 * π * 60 */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear, stroke 0.5s ease;
}

#inactivityModal .countdown-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

#inactivityModal .countdown-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    line-height: 1;
    animation: countdownPulse 1s ease-in-out infinite;
    transition: color 0.5s ease;
}

@keyframes countdownPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

#inactivityModal .countdown-label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

#inactivityModal .countdown-details {
    margin-bottom: 1rem;
}

#inactivityModal .countdown-message {
    color: var(--color-text-primary);
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

#inactivityModal .countdown-submessage {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

#inactivityModal #lockscreenTime {
    font-weight: bold;
    transition: color 0.3s ease;
}

/* Action Buttons */
#inactivityModal .modal-actions {
    padding: 0 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#inactivityModal .stay-logged-btn {
    background: linear-gradient(135deg, 
        var(--color-primary) 0%, 
        var(--color-primary-light) 100%);
    border: none;
    color: var(--color-text-dark);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

#inactivityModal .stay-logged-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

#inactivityModal .stay-logged-btn:hover::before {
    left: 100%;
}

#inactivityModal .stay-logged-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#inactivityModal .stay-logged-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#inactivityModal .btn-outline-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

#inactivityModal .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-text-primary);
    transform: translateY(-1px);
}

/* Keyboard Hints */
#inactivityModal .keyboard-hints {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

#inactivityModal .hint-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    opacity: 0.7;
}

#inactivityModal .hint-item kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Modal backdrop enhancement */
#inactivityModal .modal-backdrop,
#inactivityModal.show .modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    z-index: 1040 !important;
}

/* Prevent body scroll when modal is shown */
body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

/* Ensure modal stays in place */
#inactivityModal.show .modal-content.inactivity-modal {
    position: relative !important;
    transform: none !important;
    animation: slideInDown 0.3s ease-out;
}

/* Responsive Design */
@media (max-width: 576px) {
    #inactivityModal.show {
        padding: 10px !important;
    }
    
    #inactivityModal .modal-content.inactivity-modal {
        width: 95% !important;
        max-width: none !important;
    }
    
    #inactivityModal .inactivity-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    #inactivityModal .countdown-section {
        padding: 1rem 1.5rem;
    }
    
    #inactivityModal .modal-actions {
        padding: 0 1.5rem 1rem;
    }
    
    #inactivityModal .keyboard-hints {
        padding: 0.75rem 1.5rem 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #inactivityModal .countdown-number {
        font-size: 2rem;
    }
    
    #inactivityModal .modal-title {
        font-size: 1.2rem;
    }
}

/* Add gradient definition for the countdown ring */
#inactivityModal .countdown-ring defs {
    display: none;
}
