/* Global reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
}

/* Topbar */
.topbar {
    background: linear-gradient(90deg, #00008B, #1E90FF);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.topbar h1 {
    font-size: 1.6em;
    font-weight: bold;
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

.nav-buttons a button {
    background-color: white;
    color: #00008B;
    font-weight: bold;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.nav-buttons a button:hover {
    background-color: #FF8C00;
    color: #fff;
}

/* Container */
.container {
    display: flex;
    justify-content: center;
    margin: 40px auto;
    width: 95%;
}

/* Login card (only login.php) */
.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 400px;
    text-align: center;
}

/* Wide page layout (all other pages) */
.page {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

/* Headings */
.page h2, .card h2 {
    margin-bottom: 20px;
    color: #00008B;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

/* Forms */
form input, form select {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}

form button {
    background-color: #00008B;
    color: white;
    font-weight: bold;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s;
}

form button:hover {
    background-color: #FF8C00;
}

/* Dashboard button grid */
.button-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.button-grid button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border-radius: 8px;
    border: none;
    background-color: #00008B;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.button-grid button:hover {
    background-color: #FF8C00;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95em;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

table th {
    background-color: #00008B;
    color: white;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f1f1;
}

/* Status colors */
.status-pending {
    color: orange;
    font-weight: bold;
}

.status-approved {
    color: green;
    font-weight: bold;
}

.status-rejected {
    color: red;
    font-weight: bold;
}
