/* =============================================
   YACHT CHARTER ADMIN PANEL — Modern SaaS Dashboard
   Navy & Gold Premium Theme
   ============================================= */

/* === CSS Custom Properties === */
:root {
    /* Navy palette */
    --navy-900: #0a1628;
    --navy-800: #0f2240;
    --navy-700: #152d50;
    --navy-600: #1b3a66;
    --navy-500: #1e4d8c;

    /* Gold palette */
    --gold-600: #b8953f;
    --gold-500: #c8a55a;
    --gold-400: #d4b76a;
    --gold-300: #e0c87a;
    --gold-200: #f0dca0;
    --gold-100: #faf3e0;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;

    /* Semantic colors */
    --green: #22c55e;
    --green-light: #dcfce7;
    --green-dark: #15803d;
    --orange: #f59e0b;
    --orange-light: #fef3c7;
    --orange-dark: #b45309;
    --red: #ef4444;
    --red-light: #fee2e2;
    --red-dark: #b91c1c;
    --blue: #3b82f6;
    --blue-light: #dbeafe;
    --blue-dark: #1d4ed8;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

    /* Borders */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* Transitions */
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --sidebar-width: 260px;
    --sidebar-collapsed: 0px;
    --header-height: 64px;
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
}

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

a {
    color: var(--blue);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--blue-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* =============================================
   ADMIN LAYOUT
   ============================================= */

.admin-body {
    min-height: 100vh;
    background: var(--gray-50);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* === Sidebar === */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--navy-900);
    color: var(--gray-300);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform var(--transition-slow);
    overflow-y: auto;
    overflow-x: hidden;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: var(--navy-600);
}

/* Sidebar Brand */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.sidebar-brand svg {
    color: var(--gold-500);
    flex-shrink: 0;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: var(--gray-400);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    margin: 0 8px;
    border-radius: var(--radius-sm);
}

.sidebar-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-link.active {
    color: var(--gold-400);
    background: rgba(200, 165, 90, 0.1);
    font-weight: 600;
}

.sidebar-link.active svg {
    color: var(--gold-500);
}

.sidebar-link svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.sidebar-link:hover svg {
    opacity: 1;
}

.sidebar-link.active svg {
    opacity: 1;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    margin-top: auto;
}

.sidebar-logout {
    color: var(--gray-500) !important;
}

.sidebar-logout:hover {
    color: var(--red) !important;
    background: rgba(239, 68, 68, 0.08) !important;
}

/* Powered By */
.sidebar-powered-by {
    padding: 0 24px 8px;
}

.powered-by-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity var(--transition);
}

.powered-by-link:hover {
    opacity: 0.8;
}

.powered-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    order: -1;
}

.wf-logo {
    height: 18px;
    width: auto;
}

/* === Main Content Area === */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-slow);
}

/* === Admin Header === */
.admin-header {
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 50;
    flex-shrink: 0;
}

.sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    flex-shrink: 0;
}

.sidebar-toggle:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.admin-page-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy-900);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* === Admin Content === */
.admin-content {
    flex: 1;
    padding: 28px 32px 40px;
}

/* =============================================
   DASHBOARD
   ============================================= */

/* Stats Cards Row */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-blue .stat-card-icon {
    background: var(--blue-light);
    color: var(--blue);
}

.stat-card-orange .stat-card-icon {
    background: var(--orange-light);
    color: var(--orange);
}

.stat-card-green .stat-card-icon {
    background: var(--green-light);
    color: var(--green);
}

.stat-card-gold .stat-card-icon {
    background: var(--gold-100);
    color: var(--gold-600);
}

.stat-card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.stat-card-number {
    font-size: 26px;
    font-weight: 700;
    color: var(--navy-900);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.stat-card-label {
    font-size: 12.5px;
    color: var(--gray-500);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Dashboard Actions */
.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

/* Dashboard Tables Row */
.dashboard-tables {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Dashboard Card */
.dashboard-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    margin-bottom: 20px;
}

.dashboard-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy-900);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}

.dashboard-card-header h3 svg {
    color: var(--gray-400);
}

.dashboard-card-body {
    padding: 0;
}

.dashboard-card-body .data-table {
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.dashboard-card-body > .form-row:first-child,
.dashboard-card-body > .form-group:first-child {
    padding-top: 20px;
}

.dashboard-card-body > .form-row,
.dashboard-card-body > .form-group {
    padding: 0 24px 16px;
}

/* =============================================
   TABLES
   ============================================= */

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.data-table thead {
    background: var(--gray-50);
}

.data-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-500);
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
    user-select: none;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: var(--gray-50);
}

.data-table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    color: var(--gray-700);
}

.data-table tbody td strong {
    color: var(--gray-800);
    font-weight: 600;
}

/* Table image thumbnail */
.table-thumb {
    width: 48px;
    height: 36px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
}

/* Actions cell */
.actions-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Customer cell */
.customer-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.customer-cell strong {
    font-size: 13.5px;
}

.customer-cell span {
    font-size: 12px;
    color: var(--gray-400);
}

/* Reference link */
.ref-link {
    font-weight: 600;
    color: var(--blue);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12.5px;
    letter-spacing: 0.02em;
}

.ref-link:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

/* Empty state */
.empty-state-admin {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    color: var(--gray-400);
}

.empty-state-admin svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-admin h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.empty-state-admin p {
    font-size: 13.5px;
    color: var(--gray-400);
    margin-bottom: 20px;
    max-width: 360px;
}

.empty-table-msg {
    padding: 32px 16px;
    text-align: center;
    color: var(--gray-400);
    font-size: 13.5px;
}

/* Admin table (used in booking_detail) */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.admin-table tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 13.5px;
    color: var(--gray-700);
}

/* =============================================
   TOOLBAR
   ============================================= */

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.toolbar-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.toolbar-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.toolbar-filter-form .form-select,
.toolbar-filter-form .form-input {
    height: 36px;
    font-size: 13px;
    padding: 0 12px;
    min-width: 140px;
}

.form-select-sm,
.form-input-sm {
    height: 36px !important;
    font-size: 13px !important;
    padding: 0 12px !important;
}

/* =============================================
   FORMS
   ============================================= */

.admin-form {
    max-width: 860px;
}

.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    padding: 24px;
    margin-bottom: 20px;
}

.form-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group-lg {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="url"],
select,
textarea {
    height: 42px;
    padding: 0 14px;
    font-size: 14px;
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
    width: 100%;
}

.form-input:hover,
.form-select:hover,
textarea:hover,
input:hover {
    border-color: var(--gray-300);
}

.form-input:focus,
.form-select:focus,
textarea:focus,
input:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(200, 165, 90, 0.15);
}

textarea,
.form-textarea {
    height: auto;
    padding: 12px 14px;
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.form-select,
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' 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;
    cursor: pointer;
}

.form-hint {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 2px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

/* Input with suffix (e.g., %) */
.input-suffix-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-suffix-wrapper .form-input,
.input-suffix-wrapper input {
    padding-right: 42px;
}

.input-suffix {
    position: absolute;
    right: 14px;
    color: var(--gray-400);
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
}

/* Input with icon (login) */
.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.form-input-icon {
    padding-left: 42px !important;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-700);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold-500);
    cursor: pointer;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: var(--font-body);
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    line-height: 1.4;
}

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

/* Primary Button */
.btn-primary {
    background: var(--navy-900);
    color: var(--white);
    border-color: var(--navy-900);
}

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

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

/* Outline Button */
.btn-outline {
    background: var(--white);
    color: var(--gray-700);
    border-color: var(--gray-200);
}

.btn-outline:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    color: var(--gray-800);
}

/* Danger Button */
.btn-danger {
    background: var(--white);
    color: var(--red);
    border-color: var(--red-light);
}

.btn-danger:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

/* Button Sizes */
.btn-sm {
    padding: 6px 12px;
    font-size: 12.5px;
    gap: 5px;
}

.btn-lg {
    padding: 12px 28px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

/* =============================================
   BADGES
   ============================================= */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: 0.02em;
    text-transform: capitalize;
}

.badge-green,
.badge-success {
    background: var(--green-light);
    color: var(--green-dark);
}

.badge-orange,
.badge-warning {
    background: var(--orange-light);
    color: var(--orange-dark);
}

.badge-red,
.badge-danger {
    background: var(--red-light);
    color: var(--red-dark);
}

.badge-gray {
    background: var(--gray-100);
    color: var(--gray-600);
}

.badge-blue {
    background: var(--blue-light);
    color: var(--blue-dark);
}

/* Status badge classes from statusBadgeClass template function */
.badge-pending {
    background: var(--orange-light);
    color: var(--orange-dark);
}

.badge-confirmed {
    background: var(--green-light);
    color: var(--green-dark);
}

.badge-completed {
    background: var(--blue-light);
    color: var(--blue-dark);
}

.badge-cancelled {
    background: var(--red-light);
    color: var(--red-dark);
}

.badge-active {
    background: var(--green-light);
    color: var(--green-dark);
}

.badge-inactive {
    background: var(--gray-100);
    color: var(--gray-600);
}

.badge-maintenance {
    background: var(--orange-light);
    color: var(--orange-dark);
}

/* =============================================
   ALERTS & TOASTS
   ============================================= */

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid;
}

.alert-error,
.alert-danger {
    background: var(--red-light);
    color: var(--red-dark);
    border-color: #fecaca;
}

.alert-success {
    background: var(--green-light);
    color: var(--green-dark);
    border-color: #bbf7d0;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    min-width: 320px;
    max-width: 440px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    box-shadow: var(--shadow-xl);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    background: var(--green-dark);
}

.toast-error {
    background: var(--red-dark);
}

/* =============================================
   MODALS
   ============================================= */

.modal,
.modal-overlay,
.extra-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 22, 40, 0.5);
    backdrop-filter: blur(4px);
    z-index: -1;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modal-enter 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-enter {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy-900);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--gray-400);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.modal-body {
    padding: 24px;
}

.modal-body .form-group {
    margin-bottom: 16px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* =============================================
   LOGIN PAGE
   ============================================= */

.login-body {
    min-height: 100vh;
    background: var(--navy-900);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 165, 90, 0.06) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 165, 90, 0.04) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo svg {
    margin-bottom: 16px;
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy-900);
    letter-spacing: -0.02em;
}

.login-brand-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.login-btn {
    margin-top: 8px;
    height: 48px;
    font-size: 15px;
    background: var(--navy-900);
    border-color: var(--navy-900);
}

.login-btn:hover {
    background: var(--gold-600);
    border-color: var(--gold-600);
}

.login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

.login-footer p {
    font-size: 12px;
    color: var(--gray-400);
}

.login-footer a {
    color: var(--gold-500);
    font-weight: 600;
    text-decoration: none;
}

.login-footer a:hover {
    color: var(--gold-600);
}

/* =============================================
   BOOKING DETAIL — Detail Page Styles
   ============================================= */

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    padding: 20px 24px;
}

.admin-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.detail-table {
    display: flex;
    flex-direction: column;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-50);
    font-size: 13.5px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    color: var(--gray-500);
    font-weight: 500;
}

.total-row {
    padding-top: 12px;
    margin-top: 4px;
    border-top: 2px solid var(--gray-200);
    font-weight: 700;
    font-size: 15px;
    color: var(--navy-900);
}

.total-row .label {
    color: var(--navy-900) !important;
    font-weight: 700;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 16px;
    border-left: 2px solid var(--gray-200);
    font-size: 13px;
    color: var(--gray-600);
}

.timeline-date {
    font-size: 11.5px;
    color: var(--gray-400);
    font-weight: 500;
}

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

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

/* =============================================
   RESPONSIVE — Tablet
   ============================================= */

@media (max-width: 1024px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-tables {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        order: -1;
    }
}

/* =============================================
   RESPONSIVE — Mobile
   ============================================= */

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    }

    .sidebar-toggle {
        display: flex;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-header {
        padding: 0 16px;
    }

    .admin-page-title {
        font-size: 16px;
    }

    .admin-content {
        padding: 20px 16px 32px;
    }

    .stats-cards {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
        gap: 12px;
    }

    .stat-card-icon {
        width: 42px;
        height: 42px;
    }

    .stat-card-number {
        font-size: 20px;
    }

    .stat-card-label {
        font-size: 11px;
    }

    .dashboard-actions {
        flex-wrap: wrap;
    }

    .dashboard-tables {
        grid-template-columns: 1fr;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-filter-form {
        flex-direction: column;
    }

    .toolbar-filter-form .form-select,
    .toolbar-filter-form .form-input {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 32px 24px;
    }

    .modal-content {
        margin: 16px;
    }

    .toast {
        left: 16px;
        right: 16px;
        min-width: auto;
    }

    /* Sidebar overlay for mobile */
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 99;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-slow);
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 480px) {
    .stats-cards {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 14px 16px;
    }

    .btn-lg {
        width: 100%;
    }
}

/* =============================================
   ANIMATION UTILITIES
   ============================================= */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-content > * {
    animation: slideUp 0.3s ease-out both;
}

.stats-cards .stat-card:nth-child(1) { animation-delay: 0s; }
.stats-cards .stat-card:nth-child(2) { animation-delay: 0.05s; }
.stats-cards .stat-card:nth-child(3) { animation-delay: 0.1s; }
.stats-cards .stat-card:nth-child(4) { animation-delay: 0.15s; }

/* =============================================
   PRINT STYLES
   ============================================= */

@media print {
    .admin-sidebar,
    .admin-header,
    .sidebar-toggle,
    .admin-toolbar,
    .btn,
    .toast {
        display: none !important;
    }

    .admin-main {
        margin-left: 0 !important;
    }

    .admin-content {
        padding: 0 !important;
    }

    .dashboard-card,
    .admin-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }
}

/* Login Logs */
.ip-badge {
    background: #f1f5f9;
    color: #334155;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: monospace;
}
.ua-cell { max-width: 250px; }
.text-truncate {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 250px;
    font-size: 0.75rem;
    color: #94a3b8;
}
.text-nowrap { white-space: nowrap; }
.text-muted { color: #64748b; font-size: 0.85rem; }
.toolbar-info { display: flex; align-items: center; }
