/* Global Reset & Page Layout */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f4f6f9;
    color: #212529;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

/* Header & Strict Logo Sizing */
.brand-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    padding: 10px 0;
    width: 100%;
}

.brand-header img {
    max-height: 70px !important;
    max-width: 250px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

/* Shared Top Navigation Bar */
.nav-bar {
    background: #343a40;
    padding: 12px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.nav-bar a {
    color: #f8f9fa;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.15s ease-in-out;
}

.nav-bar a:hover, .nav-bar a.active {
    color: #007bff;
    font-weight: 700;
}

.nav-bar .logout {
    margin-left: auto;
    color: #dc3545;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

/* Common Card & Grid Layouts */
.card {
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .grid { grid-template-columns: 1fr; }
    .nav-bar { flex-wrap: wrap; gap: 12px; }
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: 14px;
}

input, select, button {
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    font-size: 14px;
}

input:focus, select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}

button.btn-primary { background: #007bff; color: #fff; border: none; font-weight: 700; cursor: pointer; }
button.btn-success { background: #28a745; color: #fff; border: none; font-weight: 700; cursor: pointer; }
button.btn-danger { background: #dc3545; color: #fff; border: none; font-weight: 700; cursor: pointer; }

h3 { margin-top: 0; color: #007bff; font-size: 18px; }

/* Global Copyright Footer */
.app-footer {
    text-align: center;
    padding: 20px 0 10px 0;
    margin-top: auto;
    font-size: 13px;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
}