/* Copied from legacy static/common.css to keep UI identical in v2 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* ============================================
   HEADER STYLES (All pages)
   ============================================ */
.header {
    background: #0d2137;
    color: white;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.header .subtitle {
    opacity: 0.9;
    font-size: 14px;
}

/* ============================================
   NAVIGATION BAR (All pages)
   ============================================ */
.header .nav {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.header .nav a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    transition: background 0.3s;
    font-size: 14px;
}

.header .nav a:hover {
    background: rgba(255,255,255,0.2);
}

.header .nav a.active {
    background: rgba(255,255,255,0.28);
}

/* ============================================
   TABS CONTAINER (Reports sub-pages)
   ============================================ */
.tabs-container {
    background: white;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px auto;
    max-width: 1400px;
    padding: 0 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
}

.tab-button {
    padding: 12px 24px;
    background: transparent;
    color: #666;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    flex: 1;
    text-align: center;
    min-width: 150px;
}

.tab-button:hover {
    background: #f5f5f5;
    color: #0d2137;
}

.tab-button.active {
    color: #0d2137;
    border-bottom-color: #0d2137;
    background: #f8f9fa;
}

/* ============================================
   CONTAINER (All pages)
   ============================================ */
.container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

/* ============================================
   COMMON BUTTON STYLES
   ============================================ */
.btn {
    padding: 9px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: #0d2137;
    color: white;
}

.btn-primary:hover {
    background: #1a3a5c;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

/* ============================================
   COMMON CARD STYLES
   ============================================ */
.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #0d2137;
}

/* ============================================
   COMMON TABLE STYLES
   ============================================ */
table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f8f9fa;
}

th {
    text-align: left;
    padding: 10px;
    font-size: 12px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e6e6e6;
}

td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    vertical-align: top;
}

tr:hover {
    background: #f8f9fa;
}

/* ============================================
   COMMON FORM STYLES
   ============================================ */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 13px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
}

.form-group textarea {
    min-height: 90px;
    resize: vertical;
}


