/* Modern SaaS Styling */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--light);
    color: var(--dark);
}

/* Sidebar Modern */
.sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}
.sidebar .nav-link {
    border-radius: 12px;
    margin-bottom: 6px;
    transition: all 0.2s;
}
.sidebar .nav-link:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}
.sidebar .nav-link.active {
    background: var(--primary);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Cards */
.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -12px rgba(0,0,0,0.1);
}
.card-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 20px 20px 0 0 !important;
    font-weight: 600;
    padding: 1rem 1.5rem;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 500;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79,70,229,0.4);
}

/* Tables */
.table {
    border-radius: 16px;
    overflow: hidden;
}
.table thead th {
    background: #f1f5f9;
    border-bottom: none;
    font-weight: 600;
    color: var(--dark);
}
.table tbody tr:hover {
    background: #fef9e3;
}

/* Dashboard stats cards */
.stats-card {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}
.stats-card .icon {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2.5rem;
    opacity: 0.15;
}
.stats-card h3 {
    font-size: 2rem;
    font-weight: 700;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Booking status badges */
.badge {
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 500;
}
.bg-warning { background: #fef3c7 !important; color: #b45309; }
.bg-success { background: #d1fae5 !important; color: #065f46; }
.bg-danger { background: #fee2e2 !important; color: #991b1b; }
.bg-info { background: #dbeafe !important; color: #1e40af; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100% !important;
        position: relative !important;
        height: auto !important;
    }
    .main-content {
        margin-left: 0 !important;
    }
}

/* Landing page hero with background image */
.hero {
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5)), url('../images/hero-bg.jpg') center/cover no-repeat;
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: white;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
}
.hero .btn-light {
    background: white;
    border-radius: 40px;
    padding: 12px 32px;
    font-weight: 600;
}
/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
}
.powered {
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* Sticky Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Admin Sidebar Enhancement */
.admin-sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    position: sticky;
    top: 0;
}
.admin-sidebar .nav-link {
    color: #cbd5e1;
    border-radius: 12px;
    margin: 4px 0;
    transition: all 0.2s;
}
.admin-sidebar .nav-link:hover {
    background: #334155;
    color: white;
    transform: translateX(5px);
}
.admin-sidebar .nav-link.active {
    background: #4f46e5;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.admin-sidebar h4 {
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

/* Main content for both tenant and admin */
.main-content {
    min-height: 100vh;
    background: #f8fafc;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #4f46e5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 999;
}
.scroll-top.show {
    opacity: 1;
}
/* Dashboard stats cards hover effect */
.stats-card, .card.text-white {
    transition: transform 0.2s, box-shadow 0.2s;
}
.stats-card:hover, .card.text-white:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -12px rgba(0,0,0,0.2);
}
/* Today's appointment card special glow */
.card.bg-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}
.card.bg-primary:hover {
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(79,70,229,0.7); }
    70% { box-shadow: 0 0 0 10px rgba(79,70,229,0); }
    100% { box-shadow: 0 0 0 0 rgba(79,70,229,0); }
}