/* =========================================
   MeraBus Admin Panel Styles
   ========================================= */

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

:root {
    --primary: #d32f2f;
    --primary-dark: #b71c1c;
    --secondary: #2d3436;
    --bg: #f4f7fa;
    --white: #ffffff;
    --text: #2d3436;
    --text-light: #636e72;
    --success: #00b894;
    --info: #0984e3;
    --warning: #e17055;
}

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

/* ================= LOGIN PAGE ================= */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

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

.login-form h2 { color: var(--primary); margin-bottom: 20px; }
.login-form input { width: 100%; margin-bottom: 15px; }
.login-form button { width: 100%; }

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

.header h2 { margin: 0; font-size: 1.5rem; color: var(--secondary); }

.logout-btn {
    background: #ff7675;
    color: var(--white);
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.logout-btn:hover { background: #d63031; }

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

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

.card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.card h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-bottom: 2px solid #f1f2f6;
    padding-bottom: 10px;
}

/* ================= FORMS & INPUTS ================= */
input, select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
}
input:focus, select:focus { border-color: var(--primary); }

.btn-add {
    width: 100%;
    padding: 12px;
    background: var(--success);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.btn-add:hover { background: #00a884; }

/* ================= FILTERS ================= */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-filter {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-print {
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

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

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

th {
    background: var(--secondary);
    color: var(--white);
    padding: 15px;
    text-align: left;
    font-weight: 500;
    font-size: 0.9rem;
}

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

tr:hover { background: #f9f9f9; }

/* ================= BADGES & ICONS ================= */
.badge-agent {
    background: #ffeaa7;
    color: #d35400;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge-online {
    background: #81ecec;
    color: #00cec9;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.wa-btn {
    color: #25D366;
    font-size: 1.4rem;
    transition: 0.2s;
}
.wa-btn:hover { transform: scale(1.2); }

/* Messages */
.alert { padding: 10px; margin-bottom: 15px; border-radius: 5px; font-weight: 500; }
.alert-success { background: #dff9fb; color: var(--success); border: 1px solid #badc58; }
.alert-error { background: #ff7675; color: white; }