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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(rgba(26, 26, 46, 0.85), rgba(22, 33, 62, 0.90)), 
                url('/static/images/american-flag-bg.jpg') center/cover fixed;
    color: #e0e0e0;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(255, 215, 0, 0.1);
}

.logo {
    color: #ffd700;
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin-bottom: 15px;
}

nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    border: 2px solid #ffd700;
    color: #ffd700;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 215, 0, 0.2));
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

/* Button Styles - High Visibility, No Blue Links */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Division Colors - Red, Blue, Green, Yellow */
.btn-drilling, .drilling {
    background: #c03540;
    color: white;
    border-color: #d04555;
}

.btn-drilling:hover {
    background: #d04555;
    box-shadow: 0 4px 12px rgba(192, 53, 64, 0.5);
}

.btn-electrical, .electrical {
    background: #3e6bd8;
    color: white;
    border-color: #5080e5;
}

.btn-electrical:hover {
    background: #5080e5;
    box-shadow: 0 4px 12px rgba(62, 107, 216, 0.5);
}

.btn-ag, .ag {
    background: #2f8f4e;
    color: white;
    border-color: #3da861;
}

.btn-ag:hover {
    background: #3da861;
    box-shadow: 0 4px 12px rgba(47, 143, 78, 0.5);
}

.btn-domestic, .domestic {
    background: #d9a441;
    color: white;
    border-color: #e5b656;
}

.btn-domestic:hover {
    background: #e5b656;
    box-shadow: 0 4px 12px rgba(217, 164, 65, 0.5);
}

.btn-default {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-default:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Card Styles */
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.card-header {
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.card-title {
    color: #ffd700;
    font-size: 1.5em;
    font-weight: bold;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Map Container */
#map {
    height: 500px;
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    margin: 20px 0;
}

.mini-map {
    height: 300px;
    border-radius: 8px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    margin: 15px 0;
}

/* Job Status Badges */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    display: inline-block;
}

.status-scheduled {
    background: #4a90e2;
    color: white;
}

.status-in-progress {
    background: #f5a623;
    color: white;
}

.status-on-hold {
    background: #e94b3c;
    color: white;
}

.status-completed {
    background: #7ed321;
    color: white;
}

/* Division Badge */
.division-badge {
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-right: 10px;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.grid-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.page-btn {
    padding: 8px 16px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #ffd700;
    color: #ffd700;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: rgba(255, 215, 0, 0.4);
}

.page-btn.active {
    background: #ffd700;
    color: #1a1a2e;
}

/* Job Specs Table */
.specs-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.spec-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid #ffd700;
}

.spec-label {
    color: #ffd700;
    font-size: 0.85em;
    font-weight: bold;
}

.spec-value {
    color: #e0e0e0;
    font-size: 1.1em;
}

/* Timeline Notes */
.timeline {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #ffd700;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
}

.timeline ul {
    list-style: none;
    padding-left: 0;
}

.timeline li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline li:before {
    content: "▸ ";
    color: #ffd700;
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    color: rgba(255, 215, 0, 0.6);
}

/* Error Pages */
.error-page {
    text-align: center;
    padding: 60px 20px;
}

.error-code {
    font-size: 120px;
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.error-message {
    font-size: 24px;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 1.8em;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .specs-table {
        grid-template-columns: 1fr;
    }
    
    nav {
        flex-direction: column;
    }
    
    #map, .mini-map {
        height: 300px;
    }
}
