* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

.navbar {
    background: linear-gradient(135deg, #1a2a3a, #0d1b2a);
    color: #fff;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.navbar .brand {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar .brand span {
    color: #4fc3dc;
}

.navbar .brand small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #9fb3c8;
    letter-spacing: 1px;
    margin-top: 2px;
}

.navbar .nav-menu a {
    color: #d7e0e8;
    text-decoration: none;
    margin-left: 22px;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 4px;
    border-bottom: 2px solid transparent;
}

.navbar .nav-menu a:hover {
    color: #fff;
    border-bottom: 2px solid #4fc3dc;
}

.page-wrap {
    padding: 35px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-header h1 {
    font-size: 22px;
    color: #1a2a3a;
    font-weight: 700;
}

.page-header .subtitle {
    font-size: 13px;
    color: #8a97a3;
    margin-top: 4px;
}

.btn {
    display: inline-block;
    text-decoration: none;
    background: #1a2a3a;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn:hover { background: #0d1b2a; }

.btn-outline:hover {
    background: #1a2a3a;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #1a2a3a;
    border: 1.5px solid #1a2a3a;
}

.panel {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    border: 1px solid #eaedf1;
    margin-bottom: 20px;
}

form label {
    display: block;
    margin-top: 16px;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

form input, form select, form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fafbfc;
    font-family: inherit;
}

form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: #1a2a3a;
    background: #fff;
}

input[type="submit"], button[type="submit"] {
    margin-top: 26px;
    background: linear-gradient(135deg, #1a2a3a, #0d1b2a);
    color: #fff;
    border: none;
    padding: 13px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: auto;
    letter-spacing: 0.3px;
}

input[type="submit"]:hover, button[type="submit"]:hover { opacity: 0.9; }

.message {
    background: #eafaf1;
    color: #1e7e42;
    padding: 13px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #27ae60;
}

.message.error {
    background: #fdecea;
    color: #c0392b;
    border-left: 4px solid #c0392b;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px;
    font-size: 14px;
}

th, td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid #eef1f4;
}

th {
    background-color: #1a2a3a;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:hover { background-color: #f9fafb; }

.action-link { text-decoration: none; margin-right: 10px; font-weight: 600; font-size: 13px; }
.edit-link { color: #2980b9; }
.delete-link { color: #c0392b; }

.cards { display: flex; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.card {
    flex: 1;
    padding: 24px;
    border-radius: 10px;
    color: #fff;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.card h3 { font-size: 28px; margin-bottom: 4px; font-weight: 700; }
.card p { font-size: 13px; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.5px; }
.total { background: linear-gradient(135deg, #1a2a3a, #2c3e50); }
.paid { background: linear-gradient(135deg, #219653, #27ae60); }
.pending { background: linear-gradient(135deg, #d35400, #e67e22); }

.pending-status {
    color: #e67e22; font-weight: 700; font-size: 12px;
    background: #fdf1e7; padding: 4px 10px; border-radius: 12px;
}
.paid-status {
    color: #27ae60; font-weight: 700; font-size: 12px;
    background: #e9f9ef; padding: 4px 10px; border-radius: 12px;
}

.footer-note {
    text-align: center;
    font-size: 12px;
    color: #a0aab5;
    margin-top: 30px;
}

.nav-card {
    display: block;
    background: #fff;
    padding: 22px 24px;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    border: 1px solid #eaedf1;
    margin-bottom: 16px;
    text-decoration: none;
}

.nav-card h3 {
    color: #1a2a3a;
    font-size: 17px;
    margin-bottom: 6px;
}

.nav-card p {
    color: #8a97a3;
    font-size: 13px;
}

.nav-card.disabled {
    opacity: 0.6;
    cursor: default;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.badge.active { color: #27ae60; background: #e9f9ef; }
.badge.inactive { color: #c0392b; background: #fdecea; }

.login-wrap {
    max-width: 400px;
    margin: 90px auto;
}

.login-wrap .panel {
    text-align: left;
}

.login-wrap h1 {
    color: #1a2a3a;
    font-size: 22px;
    margin-bottom: 6px;
    text-align: center;
}

.login-wrap .subtitle {
    text-align: center;
    color: #8a97a3;
    font-size: 13px;
    margin-bottom: 10px;
}
