/* Modern Command Design */
/* Color Palette */
:root {
    --primary-color: #2563eb;      /* Professional Blue */
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;    /* Success Green */
    --accent-color: #8b5cf6;       /* Purple accent */
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    padding: 0 32px;
}

/* Header */
.main-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.2s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary-sm {
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
}

.btn-primary-sm:hover {
    background: var(--primary-dark);
}

.btn-outline-sm {
    padding: 8px 20px;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 6px;
}

.btn-outline-sm:hover {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

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

/* Main Content */
.main-content {
    flex: 1;
    /* Padding removed to allow content-wrapper to handle layout */
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.card h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* Footer */
.main-footer {
    background: #0F2137;
    color: #d1d5db;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.main-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-footer .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.main-footer .footer-col h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.main-footer .footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.main-footer .footer-col p {
    color: #94A3B8;
    line-height: 1.6;
}

.main-footer .footer-col ul {
    list-style: none;
}

.main-footer .footer-col ul li {
    margin-bottom: 0.5rem;
}

.main-footer .footer-col a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s;
}

.main-footer .footer-col a:hover {
    color: #0EA5E9;
}

.main-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748B;
    font-size: 0.875rem;
}

/* ========================
   Status Badges - Unified
   ======================== */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

/* Active/Success states - Green */
.status-badge.active,
.status-badge.completed,
.status-badge.certified {
    background: #d1fae5;
    color: #065f46;
}

/* In Progress/Flying states - Blue */
.status-badge.in_progress,
.status-badge.in-progress,
.status-badge.flying {
    background: #dbeafe;
    color: #1e40af;
}

/* Planning/Warning states - Yellow */
.status-badge.planning,
.status-badge.pending,
.status-badge.aborted,
.status-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

/* Cancelled/Error states - Red */
.status-badge.cancelled,
.status-badge.failed,
.status-badge.expired,
.status-badge.incident {
    background: #fee2e2;
    color: #991b1b;
}

/* Inactive/Neutral states - Gray */
.status-badge.inactive,
.status-badge.unknown {
    background: #f3f4f6;
    color: #4b5563;
}

/* Scheduled/Queued states - Indigo */
.status-badge.scheduled,
.status-badge.queued {
    background: #e0e7ff;
    color: #4338ca;
}

/* Type badges - for mission/flight types */
.type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.type-badge.commercial {
    background: #dbeafe;
    color: #1e40af;
}

.type-badge.recreational {
    background: #f3f4f6;
    color: #4b5563;
}

.type-badge.training {
    background: #fef3c7;
    color: #92400e;
}

.type-badge.maintenance,
.type-badge.maintenance_test {
    background: #fed7aa;
    color: #c2410c;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .card {
        padding: 1.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .main-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .main-footer .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .main-footer .container {
        padding: 0 1rem;
    }
}
