/* Mimicking bwadmin-dashboard/css/styles.css core theme */
:root {
    --primary: #4361ee;
    --primary-light: #4895ef;
    --secondary: #3f37c9;
    --accent: #f72585;
    --light: #f8f9fa;
    --light-gray: #e9ecef;
    --medium-gray: #adb5bd;
    --dark: #212529;
    --success: #4cc9f0; /* TourFlow uses a teal-ish success */
    --warning: #f8961e;
    --danger: #f94144;
    --border-radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fb; /* Light background */
    color: var(--dark);
    display: flex;
    min-height: 100vh;
    overflow: hidden; /* Prevent body scroll */
}

/* Side Panel */
.side-panel {
    width: 260px;
    background: white;
    box-shadow: var(--shadow);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    z-index: 10;
    transition: var(--transition);
    flex-shrink: 0; /* Prevent shrinking */
    height: 100vh; /* Full height */
    position: sticky; /* Keep it visible */
    top: 0;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
    height: 40px; /* Match header height roughly */
    flex-shrink: 0;
}

.logo img {
    height: 32px; /* Adjust as needed */
    margin-right: 0.75rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.nav-menu {
    flex: 1;
    overflow-y: auto; /* Allow scrolling if menu is long */
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius);
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem; /* Slightly smaller text */
}

.nav-item:hover, .nav-item.active {
    background-color: var(--primary-light);
    color: white;
}

.nav-item i {
    margin-right: 0.75rem;
    font-size: 1rem; /* Slightly smaller icon */
    width: 20px;
    text-align: center;
}

.user-profile {
    display: flex;
    align-items: center;
    padding: 1rem 0.5rem;
    border-top: 1px solid var(--light-gray);
    flex-shrink: 0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 0.9rem;
}
.user-info { line-height: 1.3; }
.user-name { font-weight: 600; font-size: 0.9rem;}
.user-role { font-size: 0.75rem; color: var(--medium-gray); }

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent main area from causing body scroll */
}

/* Header */
.header {
    background: white;
    padding: 0 2rem; /* Adjusted padding */
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px; /* Fixed height */
    flex-shrink: 0; /* Prevent shrinking */
    border-bottom: 1px solid var(--light-gray);
    z-index: 5; /* Ensure header is above content */
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--light);
    border: 1px solid var(--light-gray);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    width: 300px;
}

.search-bar input {
    border: none;
    background: transparent;
    margin-left: 0.5rem;
    width: 100%;
    outline: none;
    font-size: 0.9rem;
}
.search-bar input::placeholder { color: var(--medium-gray); }

.header-actions {
    display: flex;
    align-items: center;
}

.header-action {
    margin-left: 1.5rem;
    font-size: 1.1rem; /* Slightly smaller */
    color: var(--medium-gray);
    cursor: pointer;
    transition: var(--transition);
    position: relative; /* For badge */
    background: none;
    border: none;
    padding: 0;
}

.header-action:hover {
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Dashboard Content Area */
.dashboard-content {
    flex: 1; /* Take remaining space */
    padding: 1.5rem;
    overflow-y: auto; /* Enable scrolling only here */
    background-color: #f5f7fb; /* Match body */
}

/* Base styles for components (can be expanded in components.css or later) */
.content-section {
    display: none; /* Initially hidden, controlled by JS */
    animation: fadeIn 0.4s ease;
}
.content-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--light-gray);}
.section-title { font-size: 1.5rem; font-weight: 600; color: var(--dark); }

.btn { padding: 0.6rem 1.2rem; border-radius: var(--border-radius); border: none; cursor: pointer; font-weight: 500; transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; line-height: 1.25; }
.btn i { margin-right: 0.5rem; }
.btn-primary { background: var(--primary); color: white; } .btn-primary:hover { background: var(--secondary); }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); } .btn-outline:hover { background: var(--primary); color: white; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }

/* Loading State */
.loading-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 4rem 2rem; color: var(--medium-gray); text-align: center;
}
.loading-state i { font-size: 2rem; margin-bottom: 1rem; color: var(--primary); }

/* Basic error message */
.error-message { text-align: center; padding: 4rem 2rem; color: var(--danger); }
.error-message i { font-size: 3rem; margin-bottom: 1rem; }

/* Responsive adjustments could go here */
@media (max-width: 768px) {
    .side-panel {
        position: fixed; /* Allow hiding off-screen */
        transform: translateX(-100%);
        box-shadow: 0 0 20px rgba(0,0,0,0.1); /* Add shadow when overlaying */
    }
    .side-panel.open { transform: translateX(0); }
    .header { padding: 0.5rem 1rem; height: 60px; }
    .search-bar { display: none; } /* Hide search on small screens */
    .dashboard-content { padding: 1rem; }
    .section-title { font-size: 1.25rem; }
    /* Add mobile menu button style if needed */
}