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

body {
    font-family: 'Poppins', sans-serif;
    background: #0f0f1e;
    color: #e0e0e0;
    overflow-x: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #1a1a2e;
    border-right: 1px solid #2a2a3e;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #2a2a3e;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.sidebar-logo-icon {
    font-size: 28px;
}

.sidebar-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: #888;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.sidebar-tab {
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: #888;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    font-size: 14px;
}

.sidebar-tab:hover {
    background: #2a2a3e;
    color: #fff;
}

.sidebar-tab.active {
    background: #fbbf24;
    color: #1a1a2e;
    font-weight: 600;
}

.tab-icon {
    font-size: 18px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #2a2a3e;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #fbbf24;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

.tab-content {
    display: none;
}

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

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 14px;
    color: #888;
}

/* Card */
.card {
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    border-radius: 12px;
    margin-bottom: 24px;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #2a2a3e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.card-body {
    padding: 24px;
}

/* Info Box */
.info-box {
    background: #2a2a3e;
    border-left: 4px solid #fbbf24;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-box strong {
    color: #fbbf24;
    display: block;
    margin-bottom: 8px;
}

.info-box ul {
    margin-left: 20px;
    color: #ccc;
}

.info-box li {
    margin-bottom: 4px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-primary {
    background: #fbbf24;
    color: #1a1a2e;
}

.btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #2a2a3e;
    color: #e0e0e0;
}

.btn-secondary:hover {
    background: #3a3a4e;
}

.btn-success {
    background: #10b981;
    color: #fff;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #2a2a3e;
    border-top: 4px solid #fbbf24;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Driver List */
.driver-list {
    display: grid;
    gap: 12px;
}

.driver-item {
    background: #2a2a3e;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.driver-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.driver-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.driver-callsign {
    font-size: 14px;
    color: #888;
}

.driver-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-label {
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
}

.stat-value {
    color: #fff;
    font-weight: 600;
}

.stat-value.good {
    color: #10b981;
}

.stat-value.bad {
    color: #ef4444;
}

/* Result Sections */
.result-section {
    margin-top: 32px;
}

.result-header {
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.result-header.add {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
}

.result-header.remove {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
}

.result-header.keep {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
}

.result-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.badge {
    background: #fbbf24;
    color: #1a1a2e;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

/* Apply Section */
.apply-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #2a2a3e;
    text-align: center;
}

.apply-note {
    margin-top: 12px;
    font-size: 13px;
    color: #888;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #888;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Log Entry */
.log-entry {
    background: #2a2a3e;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid #fbbf24;
}

.log-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.log-timestamp {
    font-size: 13px;
    color: #888;
}

.log-action {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.log-action.added {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.log-action.removed {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.log-details {
    font-size: 14px;
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
    }

    .main-content {
        padding: 20px;
    }
}
