/* ===== GLOBAL RESET & FONTS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f7fc;
    color: #333;
    line-height: 1.6;
}
a {
    color: #1e7e34;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ===== MAIN LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVBAR (BLUE) ===== */
.navbar {
    background: #0d47a1;
    color: white;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}
.navbar .logo span {
    color: #00c853;
}
.navbar .nav-links a {
    color: white;
    margin-left: 25px;
    font-size: 15px;
    transition: color 0.3s;
}
.navbar .nav-links a:hover {
    color: #a5d6a7;
}

/* ===== HEADER / PAGE TITLE ===== */
.page-header {
    background: #1565c0;
    color: white;
    padding: 30px 40px;
    margin-top: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.page-header h1 {
    font-size: 26px;
    font-weight: 500;
}

/* ===== CARDS (WHITE) ===== */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 25px;
    margin: 20px 0;
}
.card h2 {
    color: #0d47a1;
    margin-bottom: 15px;
    font-weight: 600;
}

/* ===== TABLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}
th {
    background: #0d47a1;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 500;
}
td {
    padding: 10px 15px;
    border-bottom: 1px solid #e3e8ef;
}
tr:hover td {
    background: #f0f4ff;
}

/* ===== FORMS ===== */
form label {
    display: block;
    margin: 12px 0 4px;
    font-weight: 500;
    color: #1565c0;
}
input, select, button {
    padding: 10px 15px;
    border: 1px solid #ccd8e8;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
}
input:focus, select:focus {
    border-color: #0d47a1;
    box-shadow: 0 0 0 3px rgba(13,71,161,0.1);
}
button {
    background: #1e7e34;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}
button:hover {
    background: #00c853;
}
button.secondary {
    background: #6c757d;
}
button.secondary:hover {
    background: #545b62;
}

/* ===== UTILITY ===== */
.text-green { color: #1e7e34; }
.text-blue { color: #0d47a1; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ===== PAYSLIP PRINT ===== */
@media print {
    body { background: white; }
    .noprint { display: none; }
    .payslip-box {
        width: 400px;
        margin: auto;
        border: 2px solid #0d47a1;
        padding: 20px;
        border-radius: 0;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar { flex-direction: column; }
    .nav-links a { display: block; margin: 5px 0; }
}