/* Copyright (c) 2025-2026 Jericho Crosby (Chalwk) */

.checklists-section {
    background-color: #f8fafc;
    padding: 80px 0;
}

.checklists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.checklist-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.checklist-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.checklist-header {
    background-color: #1a365d;
    color: white;
    padding: 20px;
}

.checklist-header h3 {
    margin-bottom: 5px;
    color: white;
}

.aircraft-type {
    font-size: 0.9rem;
    opacity: 0.9;
}

.aircraft-icon {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.aircraft-icon i {
    font-size: 4rem;
    color: #2d6bc9;
    transition: all 0.3s ease;
}

.checklist-card:hover .aircraft-icon i {
    transform: scale(1.1);
}

.checklist-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.checklist-details p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.checklist-link {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.checklist-link .btn {
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
}

.icon-helicopter {
    color: #2d6bc9;
}

.icon-plane {
    color: #e53e3e;
}

@media (max-width: 768px) {
    .checklists-section {
        padding: 60px 0;
    }

    .checklists-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .checklist-card {
        opacity: 1;
        transform: translateY(0);
    }
}

@media print {
    .checklists-grid {
        grid-template-columns: 1fr;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-content {
    background-color: #1a1a2e;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    color: #eee;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #ffcc00;
}

.modal-close {
    cursor: pointer;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body p {
    margin: 0 0 15px 0;
}

.modal-body .error {
    color: #ff8888;
    font-weight: bold;
    background: #3a1a1a;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #ff5555;
}

.perf-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
}

.perf-table th,
.perf-table td {
    border: 1px solid #444;
    padding: 8px 12px;
    text-align: left;
}

.perf-table th {
    background-color: #2a2a3e;
    color: #ffcc00;
    font-weight: 600;
}

.perf-table td {
    background-color: #1e1e2e;
}

.btn-secondary {
    background-color: #4a5568;
    color: white;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #2d3748;
    text-decoration: none;
    color: white;
}