/* RANS HOTEL - Classic Design System */
/* Focus on UI/UX, Responsiveness, and HCI Principles */

:root {
    /* Classic Color Palette */
    --classic-navy: #1a365d;
    --classic-navy-light: #2c5282;
    --classic-navy-dark: #0f2027;
    
    --classic-gold: #d4af37;
    --classic-gold-light: #f4e4bc;
    --classic-gold-dark: #b8941f;
    
    --classic-cream: #f7f5f3;
    --classic-white: #ffffff;
    --classic-gray: #6b7280;
    --classic-gray-light: #f3f4f6;
    --classic-gray-dark: #374151;
    
    --classic-burgundy: #7c2d12;
    --classic-burgundy-light: #dc2626;
    
    /* Typography Scale */
    --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 */
    
    /* Spacing Scale */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    
    /* Border Radius */
    --radius-sm: 0.25rem;   /* 4px */
    --radius-md: 0.375rem;  /* 6px */
    --radius-lg: 0.5rem;    /* 8px */
    --radius-xl: 0.75rem;   /* 12px */
    --radius-2xl: 1rem;     /* 16px */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* 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;
}

/* ========================================
   TYPOGRAPHY SYSTEM
   ======================================== */

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--classic-navy);
    background-color: var(--classic-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, .h1 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: var(--font-size-4xl);
    font-weight: 700;
    line-height: 1.2;
    color: var(--classic-navy);
    margin-bottom: var(--space-6);
}

h2, .h2 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: var(--font-size-3xl);
    font-weight: 600;
    line-height: 1.3;
    color: var(--classic-navy);
    margin-bottom: var(--space-5);
}

h3, .h3 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: var(--font-size-2xl);
    font-weight: 600;
    line-height: 1.4;
    color: var(--classic-navy);
    margin-bottom: var(--space-4);
}

h4, .h4 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    line-height: 1.4;
    color: var(--classic-navy);
    margin-bottom: var(--space-3);
}

h5, .h5 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    line-height: 1.5;
    color: var(--classic-navy);
    margin-bottom: var(--space-3);
}

h6, .h6 {
    font-size: var(--font-size-base);
    font-weight: 600;
    line-height: 1.5;
    color: var(--classic-navy);
    margin-bottom: var(--space-2);
}

/* Body Text */
p {
    margin-bottom: var(--space-4);
    color: var(--classic-gray-dark);
}

.lead {
    font-size: var(--font-size-lg);
    font-weight: 400;
    color: var(--classic-gray);
}

.text-muted {
    color: var(--classic-gray);
}

.text-gold {
    color: var(--classic-gold);
}

/* ========================================
   LAYOUT SYSTEM
   ======================================== */

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

.container-fluid {
    width: 100%;
    padding: 0 var(--space-4);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(var(--space-3) * -1);
}

.col {
    flex: 1;
    padding: 0 var(--space-3);
}

.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-6 { flex: 0 0 50%; }
.col-8 { flex: 0 0 66.666667%; }
.col-9 { flex: 0 0 75%; }
.col-12 { flex: 0 0 100%; }

/* ========================================
   COMPONENT SYSTEM
   ======================================== */

/* Cards */
.card {
    background: var(--classic-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--classic-gray-light);
    overflow: hidden;
    transition: all var(--transition-normal);
}

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

.card-header {
    padding: var(--space-6);
    background: var(--classic-navy);
    color: var(--classic-white);
    border-bottom: 3px solid var(--classic-gold);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-4) var(--space-6);
    background: var(--classic-gray-light);
    border-top: 1px solid var(--classic-gray-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-base);
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 44px; /* HCI: Minimum touch target size */
    white-space: nowrap;
}

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

.btn-primary {
    background: var(--classic-navy);
    color: var(--classic-white);
    border-color: var(--classic-navy);
}

.btn-primary:hover {
    background: var(--classic-navy-light);
    border-color: var(--classic-navy-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--classic-gold);
    color: var(--classic-navy);
    border-color: var(--classic-gold);
}

.btn-secondary:hover {
    background: var(--classic-gold-dark);
    border-color: var(--classic-gold-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--classic-navy);
    border-color: var(--classic-navy);
}

.btn-outline:hover {
    background: var(--classic-navy);
    color: var(--classic-white);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
    min-height: 52px;
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    min-height: 36px;
}

/* Forms */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--classic-navy);
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--classic-navy);
    background: var(--classic-white);
    border: 2px solid var(--classic-gray-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    min-height: 44px; /* HCI: Minimum touch target size */
}

.form-control:focus {
    outline: none;
    border-color: var(--classic-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-control::placeholder {
    color: var(--classic-gray);
    opacity: 1;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right var(--space-3) center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: var(--space-10);
}

/* Navigation */
.navbar {
    background: var(--classic-navy);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.navbar-brand {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--classic-gold) !important;
    text-decoration: none;
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-nav .nav-item {
    margin: 0 var(--space-2);
}

.navbar-nav .nav-link {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--classic-white);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--classic-gold);
    background: rgba(212, 175, 55, 0.1);
}

/* Alerts */
.alert {
    padding: var(--space-4) var(--space-5);
    margin-bottom: var(--space-5);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-weight: 500;
}

.alert-success {
    background: #f0f9ff;
    border-color: #0ea5e9;
    color: #0c4a6e;
}

.alert-danger {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

.alert-info {
    background: #f0f9ff;
    border-color: #3b82f6;
    color: #1e40af;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--classic-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table th,
.table td {
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--classic-gray-light);
}

.table th {
    background: var(--classic-navy);
    color: var(--classic-white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: var(--font-size-sm);
    letter-spacing: 0.05em;
}

.table tbody tr:hover {
    background: var(--classic-gray-light);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Mobile First Approach */
@media (max-width: 640px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    h1, .h1 { font-size: var(--font-size-3xl); }
    h2, .h2 { font-size: var(--font-size-2xl); }
    h3, .h3 { font-size: var(--font-size-xl); }
    
    .btn {
        width: 100%;
        margin-bottom: var(--space-2);
    }
    
    .card-body {
        padding: var(--space-4);
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        margin: var(--space-1) 0;
    }
    
    .table {
        font-size: var(--font-size-sm);
    }
    
    .table th,
    .table td {
        padding: var(--space-2);
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .col-sm-1 { flex: 0 0 8.333333%; }
    .col-sm-2 { flex: 0 0 16.666667%; }
    .col-sm-3 { flex: 0 0 25%; }
    .col-sm-4 { flex: 0 0 33.333333%; }
    .col-sm-6 { flex: 0 0 50%; }
    .col-sm-8 { flex: 0 0 66.666667%; }
    .col-sm-9 { flex: 0 0 75%; }
    .col-sm-12 { flex: 0 0 100%; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .col-md-1 { flex: 0 0 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; }
    .col-md-3 { flex: 0 0 25%; }
    .col-md-4 { flex: 0 0 33.333333%; }
    .col-md-6 { flex: 0 0 50%; }
    .col-md-8 { flex: 0 0 66.666667%; }
    .col-md-9 { flex: 0 0 75%; }
    .col-md-12 { flex: 0 0 100%; }
}

@media (min-width: 1025px) {
    .col-lg-1 { flex: 0 0 8.333333%; }
    .col-lg-2 { flex: 0 0 16.666667%; }
    .col-lg-3 { flex: 0 0 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; }
    .col-lg-6 { flex: 0 0 50%; }
    .col-lg-8 { flex: 0 0 66.666667%; }
    .col-lg-9 { flex: 0 0 75%; }
    .col-lg-12 { flex: 0 0 100%; }
}

/* ========================================
   HCI PRINCIPLES
   ======================================== */

/* Focus Management */
*:focus {
    outline: 2px solid var(--classic-gold);
    outline-offset: 2px;
}

/* Skip Links for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--classic-navy);
    color: var(--classic-white);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    z-index: var(--z-tooltip);
}

.skip-link:focus {
    top: 6px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --classic-navy: #000000;
        --classic-gold: #ffd700;
        --classic-gray: #333333;
    }
}

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

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .alert {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Spacing */
.m-0 { margin: 0; }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-5 { margin: var(--space-5); }
.m-6 { margin: var(--space-6); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flexbox */
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }

/* Shadows */
.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); }

/* Border Radius */
.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: 9999px; }

/* Modern Sidebar Integration */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--classic-gray-light);
}

.modern-sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--classic-navy) 0%, var(--classic-navy-dark) 100%);
    color: var(--classic-white);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.modern-sidebar.collapsed {
    width: 70px;
}

.main-content-wrapper {
    flex: 1;
    margin-left: 280px;
    transition: margin-left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modern-sidebar.collapsed + .main-content-wrapper {
    margin-left: 70px;
}

.top-bar {
    height: 70px;
    background: var(--classic-white);
    border-bottom: 1px solid var(--classic-gray-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-content {
    flex: 1;
    padding: 2rem;
    background: var(--classic-gray-light);
    min-height: calc(100vh - 70px);
}

/* Responsive Design for Sidebar */
@media (max-width: 768px) {
    .modern-sidebar {
        transform: translateX(-100%);
    }
    
    .modern-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content-wrapper {
        margin-left: 0;
    }
    
    .top-bar {
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
}
