/* =========================================
   MeraBus Agent Portal Styles (Blue Theme)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --brand: #0984e3;       /* Blue */
    --brand-dark: #00cec9;
    --accent: #fdcb6e;
    --bg: #dfe6e9;
    --white: #ffffff;
    --text: #2d3436;
    --danger: #d63031;
    --success: #00b894;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    margin: 0;
    padding: 20px;
    color: var(--text);
}

/* ================= LOGIN PAGE ================= */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 350px;
}

.login-card h2 { color: var(--brand); margin-bottom: 5px; }
.login-card p { color: #636e72; font-size: 0.9rem; margin-bottom: 25px; }

.login-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #b2bec3;
    border-radius: 8px;
    box-sizing: border-box;
    outline: none;
    transition: 0.3s;
}
.login-card input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(9, 132, 227, 0.2); }

.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--brand);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.btn-login:hover { background: #0069d9; transform: translateY(-2px); }

/* ================= DASHBOARD HEADER ================= */
.header {
    background: var(--white);
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.header h2 { margin: 0; font-size: 1.4rem; color: var(--brand); }
.header small { color: #636e72; font-weight: 500; }

.logout-link {
    background: var(--danger);
    color: white;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
}
.logout-link:hover { background: #c0392b; box-shadow: 0 4px 10px rgba(214, 48, 49, 0.3); }

/* ================= GRID LAYOUT ================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 25px;
}

@media (max-width: 850px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

.card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.card-title {
    margin-top: 0;
    border-bottom: 2px solid #f1f2f6;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ================= BOOKING FORM ================= */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 0.9rem; color: #636e72; }

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
}
input:focus, select:focus { border-color: var(--brand); }

.btn-book {
    width: 100%;
    padding: 14px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 184, 148, 0.2);
}
.btn-book:hover { background: #00a884; transform: translateY(-2px); }

/* ================= TABLE ================= */
.table-responsive { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

th {
    background: var(--brand);
    color: white;
    padding: 12px;
    text-align: left;
    font-size: 0.9rem;
    border-radius: 4px 4px 0 0;
}

td {
    padding: 12px;
    border-bottom: 1px solid #f1f2f6;
    font-size: 0.9rem;
}

tr:hover { background: #f9f9f9; }

.pnr-badge {
    background: #fab1a0;
    color: #d63031;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
}

.print-link {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.print-link:hover { text-decoration: underline; }

/* ================= ALERTS ================= */
.alert { padding: 12px; margin-bottom: 20px; border-radius: 8px; font-weight: 500; font-size: 0.9rem; text-align: center; }
.alert-success { background: #dff9fb; color: var(--success); border: 1px solid #badc58; }
.alert-error { background: #ff7675; color: white; }