:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --sidebar-bg: #0f172a;
    --sidebar-text: #94a3b8;
    --sidebar-active: #38bdf8;
    --sidebar-active-bg: #1e293b;
    
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    --success: #10b981;
    --danger: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-color);
    overflow-x: hidden;
    height: 100vh;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar Layout */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(15, 23, 42, 0.05);
}

.sidebar .logo {
    display: flex;
    align-items: center;
    padding: 28px 24px;
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    border-bottom: 1px solid #1e293b;
    letter-spacing: 0.5px;
}

.sidebar .logo-icon {
    margin-right: 12px;
    font-size: 24px;
}

.sidebar .nav-menu {
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    gap: 8px;
    flex-grow: 1;
}

.sidebar .nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.sidebar .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transform: translateX(4px);
}

.sidebar .nav-item.active {
    background-color: var(--sidebar-active-bg);
    color: var(--sidebar-active);
}

/* Main Workspace */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.top-bar {
    background-color: var(--bg-card);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid var(--border-color);
}

.top-bar h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile span {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-muted);
}

.avatar {
    width: 38px;
    height: 38px;
    background-color: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

/* Tabs Panel */
.tab-pane {
    display: none;
    padding: 32px;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8dp); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.metric-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
    opacity: 0.8;
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-icon {
    font-size: 22px;
    opacity: 0.9;
}

.metric-card h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.dashboard-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.recent-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}

.recent-card h3 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
}

/* Data Tables */
.table-container {
    background-color: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 16px 24px;
    font-size: 14px;
}

.data-table th {
    background-color: #f9f9fc;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    border-bottom: 1px solid #f1f3f7;
    color: #4b5563;
}

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

.table-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

/* Config & Forms */
.form-container {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}

.config-box {
    max-width: 600px;
}

.form-container h3 {
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 600;
}

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

.form-group.row-group {
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.form-group.row-group input {
    width: 18px;
    height: 18px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
}

input[type="text"], select, textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background-color: #f9fafb;
    color: var(--text-color);
    outline: none;
    transition: border 0.2s ease;
}

input[type="text"]:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    background-color: #ffffff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: #f1f3f7;
    color: #4b5563;
}

.btn-secondary:hover {
    background-color: #e4e6ef;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    margin-right: 6px;
}

.btn-danger {
    background-color: var(--danger);
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #d9214e;
}

/* Bookings & Guides Grid */
.bookings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.bookings-box {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}

.bookings-box h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-card);
    width: 90%;
    max-width: 550px;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: scaleUp 0.3s ease;
}

@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-color);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}
