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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    padding: 20px 40px;
    position: relative;
}

.header h1 {
    font-size: 32px;
    font-weight: 300;
    margin: 0;
}

.btn-close {
    position: absolute;
    top: 20px;
    right: 40px;
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s;
}

.btn-close:hover {
    background: white;
    color: #1e3a5f;
}

/* Views */
.view {
    display: none;
    min-height: 100vh;
    background: #f5f5f5;
}

.view.active {
    display: block;
}

.content {
    padding: 30px 40px;
    background: white;
    margin: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Dashboard */
.dashboard-container {
    display: flex;
    justify-content: space-around;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-section {
    text-align: center;
    flex: 1;
    padding: 20px;
}

.dashboard-section h2 {
    color: #1e3a5f;
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 300;
}

.view-all {
    display: block;
    margin-top: 20px;
    color: #2c5282;
    text-decoration: none;
    font-size: 14px;
}

.view-all:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin: 5px;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: #2c5282;
    color: white;
}

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

.btn-secondary {
    background: #5a6c7d;
    color: white;
}

.btn-secondary:hover {
    background: #4a5c6d;
}

.btn-success {
    background: #84c441;
    color: white;
}

.btn-success:hover {
    background: #6fa835;
}

.btn-info {
    background: #00bcd4;
    color: white;
}

.btn-info:hover {
    background: #00a4b8;
}

.btn-dark {
    background: #2c3e50;
    color: white;
}

.btn-dark:hover {
    background: #1a252f;
}

.btn-import {
    background: #ff9800;
    color: white;
}

.btn-import:hover {
    background: #e68900;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-link {
    background: transparent;
    color: #2c5282;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 12px;
    padding: 4px 8px;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 40px;
    background: #e9ecef;
}

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

.data-table thead {
    background: #2c3e50;
    color: white;
}

.data-table th {
    padding: 12px;
    text-align: left;
    font-weight: 500;
    font-size: 13px;
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.data-table tbody tr:nth-child(even):hover {
    background: #f0f0f0;
}

.table-scroll {
    overflow-x: auto;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.form-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
}

.form-section h3 {
    color: #1e3a5f;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
    font-size: 13px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c5282;
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.form-group input[readonly] {
    background: #e9ecef;
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 5px;
    margin: 20px 0 0 0;
    border-bottom: 2px solid #dee2e6;
}

.tab-btn {
    padding: 10px 20px;
    background: #e9ecef;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px 4px 0 0;
    color: #555;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #dee2e6;
}

.tab-btn.active {
    background: white;
    color: #1e3a5f;
    border-bottom: 3px solid #2c5282;
}

.tab-content {
    display: none;
    padding: 20px;
    background: white;
}

.tab-content.active {
    display: block;
}

/* Toolbar */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.toolbar input[type="text"] {
    flex: 1;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
}

/* Summary Rows */
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin: 20px 0;
    font-size: 13px;
}

.summary-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.summary-item .label {
    font-weight: 600;
    color: #555;
}

.summary-item .projected {
    color: #2c5282;
    font-weight: 500;
}

.summary-item .actual {
    color: #28a745;
    font-weight: 500;
}

.summary-item .unscheduled {
    color: #ff6b6b;
    font-weight: 500;
}

.summary-item .error {
    color: #dc3545;
}

/* Billing */
.billing-header {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 20px;
}

.billing-totals {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
}

.total-row .label {
    font-weight: 600;
    color: #555;
    margin-right: 15px;
}

.total-row .unbilled {
    color: #dc3545;
    font-weight: 600;
}

/* Backlog Report */
.backlog-table {
    font-size: 12px;
}

.backlog-table th,
.backlog-table td {
    padding: 8px;
    white-space: nowrap;
}

/* Admin */
.admin-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-section {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.admin-section h2 {
    color: #c9302c;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
}

.admin-section .btn {
    display: block;
    width: 100%;
    margin: 10px 0;
}

/* Import */
.import-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 50px;
    justify-content: center;
    align-items: center;
}

.import-container .btn {
    min-width: 200px;
}

/* Record Count */
.record-count {
    margin-top: 15px;
    padding: 10px;
    text-align: right;
    color: #666;
    font-size: 13px;
}

/* Info Text */
.info-text {
    padding: 30px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Action Links */
.action-link {
    color: #2c5282;
    text-decoration: none;
    cursor: pointer;
    font-size: 12px;
    margin: 0 5px;
}

.action-link:hover {
    text-decoration: underline;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.status-draft {
    background: #fff3cd;
    color: #856404;
}

.status-executed {
    background: #d4edda;
    color: #155724;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .form-grid,
    .form-grid-2col {
        grid-template-columns: 1fr;
    }
    
    .admin-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .content {
        padding: 20px;
        margin: 10px;
    }
    
    .btn-close {
        top: 15px;
        right: 20px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

