﻿/* =========================================================
   GLOBAL RESET
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f4f7fb;
    color: #222;
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar {
    width: 220px;
    height: 100vh;
    background: #0b1f4a; /* Dark blue */
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 20px;
}

.sidebar-title {
    font-size: 20px;
    font-weight: bold;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.side-link {
    display: block;
    padding: 12px 18px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    border-left: 3px solid transparent;
}

.side-link:hover {
    background: rgba(255,255,255,0.1);
    border-left: 3px solid #4da3ff;
}

.side-link.active {
    background: rgba(255,255,255,0.15);
    border-left: 3px solid #4da3ff;
}

.logout-btn {
    width: calc(100% - 30px);
    margin: 20px 15px;
    padding: 10px;
    background: #e74c3c;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 15px;
    cursor: pointer;
}

.logout-btn:hover {
    background: #c0392b;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */
.main {
    margin-left: 230px;
    padding: 20px 25px;
}

/* =========================================================
   TOP SEARCH
   ========================================================= */
.top-search {
    position: relative;
    margin-bottom: 15px;
}

.top-search input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 16px;
}

.search-dropdown {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    max-height: 240px;
    overflow-y: auto;
    display: none;
    z-index: 20;
}

.search-dropdown div {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.search-dropdown div:hover {
    background: #f0f0f0;
}

/* =========================================================
   FORM CARD
   ========================================================= */
.form-card {
    background: white;
    padding: 20px;
    border-radius: 7px;
    margin-top: 20px;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.08);
}

.form-card h2 {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.input {
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 5px;
    width: 100%;
    font-size: 15px;
}

.btn {
    background: #0b1f4a;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
}

.btn:hover {
    background: #163a80;
}

.red-btn {
    background: #e74c3c;
}

.red-btn:hover {
    background: #c0392b;
}

/* =========================================================
   TABLE
   ========================================================= */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.table th {
    background: #0b1f4a;
    color: white;
    padding: 10px;
    text-align: left;
    font-size: 15px;
}

.table td {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    font-size: 15px;
}

/* =========================================================
   DASHBOARD CARDS
   ========================================================= */
.dashboard-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.dash-card {
    flex: 1;
    min-width: 200px;
    background: #112a62;
    padding: 18px;
    border-radius: 7px;
    color: white;
    text-align: center;
}

.dash-card .dash-number {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 6px;
}

.dash-card.green { background: #1f7a1f; }
.dash-card.red { background: #a52727; }
.dash-card.blue { background: #0b1f4a; }

/* =========================================================
   LOGIN PAGE
   ========================================================= */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #0b1f4a;
}

.login-box {
    background: white;
    width: 350px;
    padding: 25px;
    border-radius: 7px;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.3);
}

.login-title {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
}

.login-subtitle {
    text-align: center;
    margin: 10px 0;
    color: #444;
}

.login-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #aaa;
    border-radius: 6px;
    margin-top: 10px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #0b1f4a;
    color: white;
    border: none;
    border-radius: 6px;
    margin-top: 15px;
    cursor: pointer;
}

.login-error {
    color: red;
    font-size: 14px;
    text-align: center;
    margin-top: 8px;
}
