/* ===== DASHBOARD CUSTOM STYLES ===== */
/* Valley The Kings Dashboard */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-teal: #2d9b9e;
    --primary-teal-light: #4ab9bc;
    --primary-teal-dark: #1e6b6d;
    --accent-coral: #ff8457;
    --accent-coral-light: #ffb3a1;
    --success-green: #4ade80;
    --info-blue: #3b82f6;
    --warning-amber: #fbbf24;
    --bg-cream: #fefaf7;
    --bg-light: #f5f3f0;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --text-light: #f5f3f0;
    --border-color: #e5e7eb;
    --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 12px 35px -4px rgba(0, 0, 0, 0.12);
    --sidebar-bg: #1e3c5f;
}

html, body { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-light) 100%);
    color: var(--text-dark);
    line-height: 1.6;
}

.dashboard-wrapper { display: flex; min-height: 100vh; }

/* ===== SIDEBAR ===== */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, #1a2e4a 100%);
    color: var(--text-light);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    padding: 30px 0;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(77, 185, 188, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.sidebar-brand {
    padding: 0 25px 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    position: relative;
    z-index: 10;
}

.sidebar-brand h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sidebar-brand h3 i {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-brand p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sidebar-nav {
    list-style: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 15px;
    position: relative;
    z-index: 10;
}

.sidebar-nav li { margin: 0; }

.nav-section-title {
    padding: 12px 18px;
    margin-top: 16px;
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    list-style: none;
}

.sidebar-nav li:first-of-type .nav-section-title {
    margin-top: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    border-radius: 10px;
    position: relative;
}

.sidebar-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #ffd700;
    padding-left: 24px;
}

.sidebar-nav a.active {
    color: white;
    background: rgba(77, 185, 188, 0.3);
    border-left-color: #ffd700;
    padding-left: 24px;
    font-weight: 600;
}

.sidebar-nav i {
    width: 20px;
    text-align: center;
    font-size: 17px;
}

.sidebar-logout {
    margin-top: auto;
    padding: 20px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logout-btn:hover {
    background: rgba(255, 100, 61, 0.25);
    border-color: rgba(255, 100, 61, 0.5);
    color: #ffb3a1;
    transform: translateY(-2px);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-header {
    background: white;
    padding: 24px 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* ===== CONTENT ===== */
.dashboard-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(45, 155, 158, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(45, 155, 158, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-shadow-hover);
}

.stat-card:hover::before {
    top: -25%;
    right: -25%;
}

.stat-card.gradient-1 {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-light) 100%);
    color: white;
    border: none;
}

.stat-card.gradient-2 {
    background: linear-gradient(135deg, var(--success-green) 0%, #52dd80 100%);
    color: white;
    border: none;
}

.stat-card.gradient-3 {
    background: linear-gradient(135deg, var(--accent-coral) 0%, var(--accent-coral-light) 100%);
    color: white;
    border: none;
}

.stat-card.gradient-4 {
    background: linear-gradient(135deg, var(--info-blue) 0%, #60a5fa 100%);
    color: white;
    border: none;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 24px;
}

.dashboard-card {
    background: white;
    border-radius: 18px;
    padding: 32px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(45, 155, 158, 0.1);
}

.dashboard-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
}

.dashboard-card h3 i {
    color: var(--primary-teal);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== BOOKINGS TABLE ===== */
.bookings-table {
    width: 100%;
    border-collapse: collapse;
}

.bookings-table thead {
    background: rgba(45, 155, 158, 0.05);
    border-top: 2px solid rgba(45, 155, 158, 0.2);
    border-bottom: 2px solid rgba(45, 155, 158, 0.2);
}

.bookings-table th {
    padding: 16px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.bookings-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(45, 155, 158, 0.1);
    font-size: 14px;
}

.bookings-table tbody tr {
    transition: all 0.3s ease;
}

.bookings-table tbody tr:hover {
    background: rgba(45, 155, 158, 0.05);
    transform: scale(1.01);
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-confirmed {
    background: rgba(74, 222, 128, 0.15);
    color: var(--success-green);
}

.status-pending {
    background: rgba(251, 191, 36, 0.15);
    color: var(--warning-amber);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.status-active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info-blue);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 40px;
}

.empty-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.4;
}

.empty-state h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-teal-light));
    color: white;
    padding: 13px 32px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 155, 158, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 155, 158, 0.4);
}

/* ===== QUICK ACTIONS ===== */
.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(45, 155, 158, 0.03) 0%, rgba(255, 132, 87, 0.03) 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.action-card:hover {
    background: white;
    border-color: var(--primary-teal);
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(45, 155, 158, 0.15);
}

.action-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.action-icon-1 {
    background: linear-gradient(135deg, var(--primary-teal), var(--primary-teal-light));
    color: white;
}

.action-icon-2 {
    background: linear-gradient(135deg, var(--success-green), #52dd80);
    color: white;
}

.action-icon-3 {
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-coral-light));
    color: white;
}

.action-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.action-card p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar { width: 250px; }
    .main-content { margin-left: 250px; }
    .dashboard-header { padding: 18px 24px; }
    .dashboard-content { padding: 24px; }
    .stats-grid { grid-template-columns: 1fr; gap: 16px; }
    .dashboard-card { padding: 24px; }
}

@media (max-width: 640px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        box-shadow: none;
        border-bottom: 1px solid var(--border-color);
        padding: 16px 0;
    }
    .main-content { margin-left: 0; }
    .dashboard-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        padding: 16px 20px;
    }
    .sidebar-logout { display: none; }
    .dashboard-content { padding: 16px; }
    .dashboard-card { padding: 20px; }
    .stat-value { font-size: 28px; }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(45, 155, 158, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 155, 158, 0.6);
}

/* ===== IFRAME STYLES ===== */
iframe {
    border: none;
    width: 100%;
}
