/* Embassy Appointment System - Main Styles */
/* Modern, professional design for embassy/government use */

/* CSS Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Professional Embassy Theme (WCAG 2.1 AA Compliant) */
    --primary-color: #0f2a5f;      /* Deep naval blue - 4.5:1 contrast on white */
    --primary-light: #1e40af;      /* Light blue for hover states */
    --primary-dark: #0a1e42;       /* Darker blue for emphasis - 7:1 contrast */
    --primary-darkest: #071629;    /* Darkest blue for headers - 12:1 contrast */
    
    --secondary-color: #dc2626;     /* Embassy red */
    --secondary-light: #ef4444;    /* Light red for highlights */
    --secondary-dark: #b91c1c;     /* Dark red for urgency */
    
    --accent-color: #059669;        /* Success green */
    --accent-light: #10b981;       /* Light green for confirmations */
    --accent-dark: #047857;        /* Dark green for completed states */
    
    --warning-color: #d97706;       /* Warning orange */
    --warning-light: #f59e0b;      /* Light orange for alerts */
    --warning-dark: #b45309;       /* Dark orange for cautions */
    
    --info-color: #0ea5e9;         /* Information blue */
    --info-light: #38bdf8;         /* Light info blue */
    --info-dark: #0284c7;          /* Dark info blue */
    
    /* Government Grade Neutral Colors (WCAG 2.1 AA Compliant) */
    --white: #ffffff;
    --cream: #fefefe;              /* Warm white for official documents */
    --off-white: #fafafa;          /* Subtle background variant */
    
    --gray-25: #fcfcfd;            /* Ultra light gray */
    --gray-50: #f9fafb;            /* Light background */
    --gray-75: #f4f5f7;            /* Card backgrounds */
    --gray-100: #f3f4f6;           /* Section dividers */
    --gray-150: #eef1f5;          /* Input backgrounds */
    --gray-200: #e5e7eb;           /* Borders */
    --gray-250: #d6d9e0;          /* Subtle borders */
    --gray-300: #d1d5db;           /* Inactive elements */
    --gray-350: #9ca3af;          /* Muted text - 4.5:1 contrast */
    --gray-400: #6b7280;           /* Placeholder text - 4.5:1 contrast */
    --gray-450: #4b5563;          /* Secondary text - 7:1 contrast */
    --gray-500: #374151;           /* Body text secondary - 9:1 contrast */
    --gray-550: #1f2937;          /* Body text - 12:1 contrast */
    --gray-600: #111827;           /* Primary text - 15:1 contrast */
    --gray-650: #0f172a;          /* Dark text - 18:1 contrast */
    --gray-700: #0f172a;          /* Headers - 18:1 contrast */
    --gray-750: #0a0e1a;          /* Dark headers */
    --gray-800: #030712;          /* Navigation */
    --gray-850: #020617;          /* Dark navigation */
    --gray-900: #030712;          /* Footer */
    --gray-950: #020617;          /* Darkest elements */
    
    /* Professional Status Colors */
    --status-pending: #f59e0b;     /* Pending appointments */
    --status-confirmed: #059669;   /* Confirmed appointments */
    --status-cancelled: #dc2626;   /* Cancelled appointments */
    --status-completed: #6366f1;   /* Completed appointments */
    --status-processing: #8b5cf6;  /* In processing */
    
    /* Embassy Specific Colors (WCAG 2.1 AA Compliant) */
    --embassy-gold: #b8941f;       /* Official gold accent - 4.5:1 contrast */
    --embassy-gold-light: #d4af37; /* Light gold */
    --embassy-gold-dark: #9d7a1a;  /* Dark gold - 7:1 contrast */
    --embassy-navy: #0f172a;       /* Official navy - 18:1 contrast */
    --embassy-seal: #0f2a5f;       /* Seal blue - 4.5:1 contrast */
    
    /* Professional Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-heading: 'Inter', system-ui, sans-serif;
    --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    
    /* Enhanced Font Scale for Government Documents */
    --font-size-xs: 0.75rem;          /* 12px - Small captions */
    --font-size-sm: 0.875rem;         /* 14px - Secondary text */
    --font-size-base: 1rem;           /* 16px - Body text */
    --font-size-md: 1.0625rem;        /* 17px - Comfortable reading */
    --font-size-lg: 1.125rem;         /* 18px - Large body text */
    --font-size-xl: 1.25rem;          /* 20px - Subheadings */
    --font-size-2xl: 1.5rem;          /* 24px - Section headers */
    --font-size-3xl: 1.875rem;        /* 30px - Page titles */
    --font-size-4xl: 2.25rem;         /* 36px - Hero titles */
    --font-size-5xl: 3rem;            /* 48px - Display titles */
    --font-size-6xl: 3.75rem;         /* 60px - Large displays */
    
    /* Professional Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Professional Line Heights */
    --line-height-tight: 1.25;        /* Headings */
    --line-height-snug: 1.375;        /* Subheadings */
    --line-height-normal: 1.5;        /* Body text */
    --line-height-relaxed: 1.625;     /* Comfortable reading */
    --line-height-loose: 2;           /* Spacious text */
    
    /* Enhanced Spacing System */
    --space-px: 1px;
    --space-0: 0;
    --space-0-5: 0.125rem;           /* 2px */
    --space-1: 0.25rem;              /* 4px */
    --space-1-5: 0.375rem;           /* 6px */
    --space-2: 0.5rem;               /* 8px */
    --space-2-5: 0.625rem;           /* 10px */
    --space-3: 0.75rem;              /* 12px */
    --space-3-5: 0.875rem;           /* 14px */
    --space-4: 1rem;                 /* 16px */
    --space-5: 1.25rem;              /* 20px */
    --space-6: 1.5rem;               /* 24px */
    --space-7: 1.75rem;              /* 28px */
    --space-8: 2rem;                 /* 32px */
    --space-9: 2.25rem;              /* 36px */
    --space-10: 2.5rem;              /* 40px */
    --space-11: 2.75rem;             /* 44px */
    --space-12: 3rem;                /* 48px */
    --space-14: 3.5rem;              /* 56px */
    --space-16: 4rem;                /* 64px */
    --space-18: 4.5rem;              /* 72px */
    --space-20: 5rem;                /* 80px */
    --space-24: 6rem;                /* 96px */
    --space-28: 7rem;                /* 112px */
    --space-32: 8rem;                /* 128px */
    --space-36: 9rem;                /* 144px */
    --space-40: 10rem;               /* 160px */
    --space-44: 11rem;               /* 176px */
    --space-48: 12rem;               /* 192px */
    --space-52: 13rem;               /* 208px */
    --space-56: 14rem;               /* 224px */
    --space-60: 15rem;               /* 240px */
    --space-64: 16rem;               /* 256px */
    --space-72: 18rem;               /* 288px */
    --space-80: 20rem;               /* 320px */
    --space-96: 24rem;               /* 384px */
    
    /* Professional Shadow System */
    --shadow-none: none;
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-outline: 0 0 0 3px rgba(30, 58, 138, 0.1);
    --shadow-focus: 0 0 0 3px rgba(30, 58, 138, 0.2);
    
    /* Government-Appropriate Border Radius */
    --radius-none: 0;
    --radius-xs: 0.0625rem;           /* 1px */
    --radius-sm: 0.125rem;            /* 2px */
    --radius-base: 0.25rem;           /* 4px */
    --radius-md: 0.375rem;            /* 6px */
    --radius-lg: 0.5rem;              /* 8px */
    --radius-xl: 0.75rem;             /* 12px */
    --radius-2xl: 1rem;               /* 16px */
    --radius-3xl: 1.5rem;             /* 24px */
    --radius-full: 9999px;            /* Fully rounded */
    
    /* Professional Transitions */
    --transition-none: none;
    --transition-all: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-colors: color 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1), border-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-opacity: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-shadow: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-transform: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index Scale */
    --z-auto: auto;
    --z-0: 0;
    --z-10: 10;
    --z-20: 20;
    --z-30: 30;
    --z-40: 40;
    --z-50: 50;
    --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;
}

/* Base HTML Elements */
html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--gray-800);
    background-color: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-6);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-8);
    }
}

/* Professional Embassy Header */
.header {
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-25) 100%);
    border-bottom: 3px solid var(--embassy-seal);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--embassy-gold), var(--embassy-gold-light), var(--embassy-gold));
    opacity: 0.8;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
    position: relative;
}

/* Embassy Branding Area */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    right: -var(--space-8);
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: var(--gray-300);
    opacity: 0.6;
}

.logo-img {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--embassy-seal) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--embassy-gold);
}

.logo-img::before {
    content: "🏛️";
    position: relative;
    z-index: 2;
}

.logo-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    z-index: 1;
}

.embassy-branding {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.site-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--embassy-navy);
    margin: 0;
    line-height: var(--line-height-tight);
    font-family: var(--font-family-heading);
}

.embassy-subtitle {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--gray-600);
    margin: 0;
    line-height: var(--line-height-snug);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Professional Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--gray-50);
    padding: var(--space-2);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-inner);
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: var(--font-weight-medium);
    padding: var(--space-2-5) var(--space-4);
    border-radius: var(--radius-lg);
    transition: var(--transition-all);
    position: relative;
    font-size: var(--font-size-sm);
    white-space: nowrap;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--white);
    border-color: var(--gray-200);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--white);
    background: var(--primary-color);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    font-weight: var(--font-weight-semibold);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--embassy-gold);
    border-radius: var(--radius-full);
}

.login-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white) !important;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    margin-left: var(--space-4);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-normal);
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darkest) 100%);
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.login-btn:hover::before {
    left: 100%;
}

/* User Menu Enhancement */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + var(--space-2));
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    z-index: var(--z-dropdown);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-var(--space-2));
    transition: var(--transition-all);
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: var(--space-3) var(--space-4);
    text-decoration: none;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition-colors);
    font-weight: var(--font-weight-medium);
}

.dropdown-link:hover {
    background: var(--gray-50);
    color: var(--primary-color);
}

.dropdown-link:last-child {
    border-bottom: none;
    color: var(--secondary-color);
}

.dropdown-link:last-child:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Language Switcher Enhancement */
.language-switcher {
    position: relative;
    display: inline-block;
    margin-left: var(--space-4);
}

.language-btn {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    font-weight: var(--font-weight-medium);
    transition: var(--transition-all);
    box-shadow: var(--shadow-sm);
}

.language-btn:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    background: var(--gray-25);
}

.flag-icon {
    font-size: var(--font-size-base);
    line-height: 1;
}

.lang-code {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-bottom: var(--space-8);
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-8);
    opacity: 0.9;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Comprehensive Professional Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: var(--transition-all);
    border: 2px solid transparent;
    cursor: pointer;
    min-width: 120px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    outline: none;
}

.btn:focus {
    box-shadow: var(--shadow-focus);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: var(--shadow-xs) !important;
}

/* Primary Embassy Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-normal);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darkest) 100%);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

/* Secondary Embassy Button */
.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

/* Embassy Gold Button */
.btn-embassy {
    background: linear-gradient(135deg, var(--embassy-gold) 0%, var(--embassy-gold-light) 100%);
    color: var(--white);
    border-color: var(--embassy-gold);
    font-weight: var(--font-weight-bold);
}

.btn-embassy:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--embassy-gold-dark) 0%, var(--embassy-gold) 100%);
    border-color: var(--embassy-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Success Button */
.btn-success {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: var(--white);
    border-color: var(--accent-color);
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-color) 100%);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Warning Button */
.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, var(--warning-light) 100%);
    color: var(--white);
    border-color: var(--warning-color);
}

.btn-warning:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--warning-dark) 0%, var(--warning-color) 100%);
    border-color: var(--warning-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    color: var(--white);
    border-color: var(--secondary-color);
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Outline Button Variants */
.btn-outline {
    background: var(--white);
    border-width: 2px;
}

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

.btn-outline-primary:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--white);
}

.btn-outline-embassy {
    color: var(--embassy-gold);
    border-color: var(--embassy-gold);
}

.btn-outline-embassy:hover:not(:disabled) {
    background: var(--embassy-gold);
    color: var(--white);
}

.btn-outline-success {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline-success:hover:not(:disabled) {
    background: var(--accent-color);
    color: var(--white);
}

.btn-outline-warning {
    color: var(--warning-color);
    border-color: var(--warning-color);
}

.btn-outline-warning:hover:not(:disabled) {
    background: var(--warning-color);
    color: var(--white);
}

.btn-outline-danger {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-danger:hover:not(:disabled) {
    background: var(--secondary-color);
    color: var(--white);
}

/* Ghost Button Variants */
.btn-ghost {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.btn-ghost-primary {
    color: var(--primary-color);
}

.btn-ghost-primary:hover:not(:disabled) {
    background: rgba(30, 58, 138, 0.1);
    border-color: var(--primary-color);
}

.btn-ghost-embassy {
    color: var(--embassy-gold);
}

.btn-ghost-embassy:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--embassy-gold);
}

/* Button Sizes */
.btn-xs {
    padding: var(--space-1-5) var(--space-3);
    font-size: var(--font-size-xs);
    min-width: 80px;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    min-width: 100px;
    border-radius: var(--radius-md);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
    min-width: 160px;
    border-radius: var(--radius-xl);
}

.btn-xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--font-size-xl);
    min-width: 200px;
    border-radius: var(--radius-xl);
    font-weight: var(--font-weight-bold);
}

/* Button Shapes */
.btn-pill {
    border-radius: var(--radius-full);
}

.btn-square {
    border-radius: var(--radius-none);
}

.btn-rounded {
    border-radius: var(--radius-base);
}

/* Button with Icons */
.btn-icon-only {
    min-width: auto;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-lg);
}

.btn-icon-only.btn-sm {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
}

.btn-icon-only.btn-lg {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xl);
}

.btn-icon-left {
    flex-direction: row;
}

.btn-icon-right {
    flex-direction: row-reverse;
}

/* Loading State */
.btn-loading {
    pointer-events: none;
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: var(--radius-full);
    animation: btn-spin 1s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Button Groups */
.btn-group {
    display: inline-flex;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.btn-group .btn {
    border-radius: 0;
    border-right-width: 1px;
    margin: 0;
}

.btn-group .btn:first-child {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.btn-group .btn:last-child {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    border-right-width: 2px;
}

.btn-group .btn:only-child {
    border-radius: var(--radius-lg);
    border-right-width: 2px;
}

/* Floating Action Button */
.btn-fab {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-50);
    font-size: var(--font-size-xl);
}

.btn-fab:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-2xl);
}

/* Embassy Specific Button Styles */
.btn-appointment {
    background: linear-gradient(135deg, var(--embassy-seal) 0%, var(--primary-color) 100%);
    color: var(--white);
    border-color: var(--embassy-seal);
    font-weight: var(--font-weight-bold);
    position: relative;
    overflow: hidden;
}

.btn-appointment::before {
    content: '📅';
    margin-right: var(--space-2);
}

.btn-emergency {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    border-color: var(--secondary-color);
    font-weight: var(--font-weight-bold);
    animation: pulse-emergency 2s infinite;
}

.btn-emergency::before {
    content: '🚨';
    margin-right: var(--space-2);
}

@keyframes pulse-emergency {
    0%, 100% {
        box-shadow: var(--shadow-lg);
    }
    50% {
        box-shadow: var(--shadow-xl), 0 0 0 4px rgba(220, 38, 38, 0.3);
    }
}

.btn-official {
    background: linear-gradient(135deg, var(--embassy-navy) 0%, var(--embassy-seal) 100%);
    color: var(--white);
    border-color: var(--embassy-navy);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.btn-official::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--embassy-gold);
    opacity: 0;
    transition: var(--transition-normal);
}

.btn-official:hover::after {
    opacity: 1;
}

/* Status Card */
.status-card {
    background: var(--white);
    color: var(--gray-800);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    position: absolute;
    right: var(--space-8);
    top: 50%;
    transform: translateY(-50%);
    min-width: 280px;
    z-index: 3;
}

.status-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--gray-900);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

.status-online .status-dot {
    background: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.3);
}

.status-pending .status-dot {
    background: var(--warning-color);
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.3);
}

.status-text {
    font-weight: 600;
    color: var(--gray-700);
}

.status-time {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    margin: 0;
}

/* Responsive adjustments for hero */
@media (max-width: 1024px) {
    .status-card {
        position: static;
        transform: none;
        margin-top: var(--space-8);
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: var(--space-12) 0;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .header-content {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* WCAG 2.1 AA Accessibility Features */
/* High Contrast Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #1e2b7a;
        --secondary-color: #c41e3a;
        --gray-900: #000000;
        --gray-800: #1a1a1a;
        --gray-700: #333333;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus Management & Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: var(--space-2) var(--space-3);
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--warning-color);
    color: var(--white);
    border-radius: var(--radius-base);
    z-index: var(--z-skip);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: var(--space-4);
    background: var(--embassy-navy);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    border-radius: var(--radius-base);
    z-index: var(--z-skip);
    font-weight: var(--font-weight-semibold);
}

.skip-link:focus {
    top: var(--space-4);
}

/* Enhanced Keyboard Navigation */
*:focus {
    outline: 3px solid var(--embassy-gold);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 3px solid var(--embassy-gold);
    outline-offset: 2px;
}

/* Embassy Patterns and Watermarks */
.embassy-pattern {
    position: relative;
    overflow: hidden;
}

.embassy-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30, 58, 138, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(212, 175, 55, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.embassy-watermark {
    position: relative;
}

.embassy-watermark::after {
    content: '🏛️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 8rem;
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        min-height: 44px;
    }
    
    .embassy-card:hover,
    .service-card:hover {
        transform: none;
    }
    
    .embassy-card:active,
    .service-card:active {
        transform: scale(0.98);
    }
}

/* Print Styles for Official Documents */
@media print {
    .btn, .nav-links, .notification, .toast {
        display: none !important;
    }
    
    .embassy-card,
    .document-card,
    .appointment-card {
        border: 2px solid var(--gray-400) !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    
    body {
        background: var(--white) !important;
        color: var(--gray-900) !important;
    }
}