/* ===============================
   GLOBAL RESET
================================ */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
}

/* ===============================
   NAVBAR
================================ */
.navbar {
    background: #0d6efd;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
}

/* ===============================
   LAYOUT
================================ */
.container {
    display: flex;
}

/* SIDEBAR */
.sidebar {
    width: 220px;
    background: #1e293b;
    color: white;
    min-height: 100vh;
    padding: 20px;
}

.sidebar a {
    display: block;
    color: white;
    padding: 10px;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 5px;
}

.sidebar a:hover {
    background: #334155;
}

/* MAIN CONTENT */
.content {
    flex: 1;
    padding: 20px;
}
/* Two-column content inside main area */
.content .container {
    display: flex;
    gap: 19px;
}
/* ===============================
   CARDS
================================ */
.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
/* Dashboard cards layout */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
/* Bigger numbers */
.big {
    font-size: 22px;
    font-weight: bold;
}

/* Colors */
.text-green {
    color: #198754;
}

.text-red {
    color: #dc3545;
}

/* Hover effect */
.card:hover {
    transform: translateY(-3px);
    transition: 0.2s;
}
/* Card links */
.card a {
    text-decoration: none;
    color: black;
}

.card h3 {
    margin-bottom: 10px;
}
/* ===============================
   FORMS
================================ */
input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #0b5ed7;
}

/* ===============================
   TABLES
================================ */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
}

th {
    background: #0d6efd;
    color: white;
}
/* Right side of navbar */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* User name */
.user-name {
    color: white;
    font-weight: 500;
}

/* Logout button */
.logout-btn {
    background: #dc3545;
    padding: 6px 12px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
}

.logout-btn:hover {
    background: #bb2d3b;
}
.success-msg {
    background: #d1e7dd;
    color: #0f5132;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: opacity 1s ease;
}
/* ===============================
   STATUS COLORS
================================ */
.defaulter {
    color: rgb(167, 14, 14);
    font-weight: bold;
}

.overpaid {
    color: green;
    font-weight: bold;
}

.cleared {
    color: blue;
    font-weight: bold;
}