
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f6fb;
    color: #263248;
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.narrow {
    max-width: 480px;
}

.panel {
    background: white;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 5px 25px rgba(0,0,0,.06);
}

.panel h1 {
    margin-bottom: 20px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

input {
    width: 100%;
    padding: 14px;
    border: 1px solid #dce1eb;
    border-radius: 8px;
    font-size: 15px;
}

input:focus {
    outline: none;
    border-color: #356ae6;
}

.btn {
    background: #356ae6;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background: #2454c4;
}

.alert {
    background: #ffe9e9;
    color: #bd3030;
    padding: 13px;
    border-radius: 8px;
    margin: 15px 0;
}

.success {
    background: #e5f8ec;
    color: #168044;
    padding: 13px;
    border-radius: 8px;
    margin: 15px 0;
}

/* Dashboard */

.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #17243b;
    color: white;
    padding: 30px 20px;
    flex-shrink: 0;
}

.sidebar h2 {
    margin-bottom: 35px;
}

.sidebar a,
.logout-btn {
    display: block;
    color: #dce5f5;
    text-decoration: none;
    padding: 14px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 15px;
    cursor: pointer;
}

.sidebar a:hover,
.logout-btn:hover {
    background: #2b3e5d;
    color: white;
}

.dashboard-content {
    flex: 1;
    padding: 40px;
    min-width: 0;
}

.dashboard-content > h1 {
    margin-bottom: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,.04);
}

.stat-card h3 {
    font-size: 14px;
    color: #778198;
}

.stat-card h2 {
    font-size: 30px;
    margin-top: 15px;
}

.table-panel {
    background: white;
    padding: 25px;
    border-radius: 12px;
    overflow: hidden;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #edf0f5;
}

th {
    color: #65718a;
    background: #f8f9fc;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .dashboard-content {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================
   NAVIGATION BAR
========================= */

.main-navbar {
    background: #17243b;
    padding: 15px 0;
    box-shadow: 0 3px 15px rgba(0,0,0,.08);
}

.main-navbar .container-fluid {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 30px;
}

.main-navbar .navbar-brand {
    font-size: 22px;
    color: white;
}

.main-navbar .nav-link {
    color: #dce5f5;
    padding: 12px 15px;
    font-size: 14px;
    transition: .3s;
}

.main-navbar .nav-link:hover {
    color: white;
}

.main-navbar .welcome-user {
    color: #8eb6ff;
}

.main-navbar .btn-primary {
    background: #356ae6;
    border-color: #356ae6;
    color: white;
}

.main-navbar .btn-outline-light {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.main-navbar .btn-outline-light:hover {
    background: white;
    color: #17243b;
}

/* =========================
   FOOTER
========================= */

.main-footer {
    background: #17243b;
    color: white;
    margin-top: 60px;
}

.main-footer .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 45px 20px 20px;
}

.footer-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-heading {
    font-size: 17px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-text {
    color: #aebbd0;
    font-size: 14px;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aebbd0;
    text-decoration: none;
    font-size: 14px;
    transition: .3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-login {
    color: #8eb6ff;
    text-decoration: none;
    font-size: 14px;
}

.footer-login:hover {
    color: white;
}

.footer-divider {
    border-color: #43516a;
    margin: 30px 0 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    color: #aebbd0;
    font-size: 13px;
}

.footer-bottom .bi-heart-fill {
    color: #ff6b81;
}

@media (max-width: 991px) {

    .main-navbar .navbar-collapse {
        padding-top: 15px;
    }

    .main-navbar .nav-item {
        margin-bottom: 5px;
    }

}

@media (max-width: 600px) {

    .main-navbar .container-fluid {
        padding: 0 15px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

}
