/* CAD DATA Page Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1a3a6b 0%, #2d5a9e 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header .container {
    width: 100%;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* CAD Data Section */
.cad-data-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-info {
    text-align: center;
    margin-bottom: 40px;
}

.section-info h2 {
    font-size: 2rem;
    color: #1a3a6b;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-info p {
    font-size: 1.1rem;
    color: #666;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 15px 40px;
    background: white;
    border: 2px solid #e1e4e8;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-tab:hover {
    border-color: #ff6b35;
    color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.category-tab.active {
    background: #ff6b35;
    border-color: #ff6b35;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* File Type Legend */
.file-type-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #666;
}

.legend-item i {
    font-size: 1.2rem;
    color: #ff6b35;
}

/* CAD Table Container */
.cad-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #1a3a6b;
    color: white;
}

.data-table thead th {
    padding: 18px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.data-table thead th:last-child {
    border-right: none;
}

.data-table tbody tr {
    border-bottom: 1px solid #e1e4e8;
    transition: all 0.3s ease;
}

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

.data-table tbody tr.hidden {
    display: none;
}

.data-table tbody td {
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: #333;
}

.data-table tbody td:first-child {
    font-weight: 600;
    color: #999;
}

.data-table tbody td strong {
    color: #1a3a6b;
    font-size: 1rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-primary {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-success {
    background: #e8f5e9;
    color: #388e3c;
}

/* Download Button */
.download-btn {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px;
    background: #f0f4f8;
    color: #1a3a6b;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #e1e4e8;
    white-space: nowrap;
}

.download-btn:hover {
    background: #1a3a6b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 58, 107, 0.2);
}

/* Download buttons cell */
.download-buttons-cell {
    white-space: nowrap;
}

/* File not available */
.file-not-available {
    display: inline-block;
    padding: 6px 12px;
    margin: 2px;
    background: #f8f9fa;
    color: #adb5bd;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #e1e4e8;
    cursor: not-allowed;
    opacity: 0.6;
    white-space: nowrap;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

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

.btn-primary:hover {
    background: #f7931e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .category-tabs {
        gap: 10px;
    }

    .category-tab {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .file-type-legend {
        gap: 15px;
        font-size: 0.85rem;
    }

    .cad-table-container {
        overflow-x: auto;
    }

    .data-table {
        min-width: 800px;
    }

    .data-table thead th {
        padding: 12px 10px;
        font-size: 0.85rem;
    }

    .data-table tbody td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }

    .download-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
        margin: 2px;
    }

    .btn-small {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .category-tabs {
        flex-direction: column;
        width: 100%;
    }

    .category-tab {
        width: 100%;
        text-align: center;
    }

    .file-type-legend {
        flex-direction: column;
        align-items: flex-start;
    }
}
