/* Generated by Copilot */

/* Navbar */
.navbar {
    background-color: var(--dark-color);
    padding: 0;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    display: flex;
    align-items: stretch;
}

.navbar-brand {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 20px;
    text-decoration: none;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: stretch;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    user-select: none;
}

.nav-link:hover {
    color: white;
    background-color: rgba(255,255,255,0.05);
}

.nav-link.active {
    color: white;
    border-bottom-color: var(--primary-color);
    background-color: rgba(255,255,255,0.07);
}

/* Page Sections */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

/* CSF Section */
.csf-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.csf-placeholder .csf-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.csf-placeholder h4 {
    margin-bottom: 10px;
    color: #495057;
}

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-color: #dee2e6;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
    color: var(--dark-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    background: var(--light-color);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    border-radius: 8px 8px 0 0;
}

.card-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.card-body {
    padding: 20px;
}

/* Form Elements */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

textarea.form-control {
    resize: vertical;
}

.form-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

.form-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col {
    flex: 1;
    padding: 0 10px;
}

.col-md-2 { flex: 0 0 16.666%; max-width: 16.666%; padding: 0 10px; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 10px; }
.col-md-5 { flex: 0 0 41.666%; max-width: 41.666%; padding: 0 10px; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; padding: 0 10px; }
.col-md-12 { flex: 0 0 100%; max-width: 100%; padding: 0 10px; }

.mb-3 { margin-bottom: 15px; }
.mt-4 { margin-top: 20px; }
.me-2 { margin-right: 8px; }
.ms-2 { margin-left: 8px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

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

.btn-primary:hover {
    background-color: #0b5ed7;
}

.btn-primary:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

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

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

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

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

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

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

.d-grid {
    display: grid;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.alert-warning {
    background-color: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
}

.alert-info {
    background-color: #cff4fc;
    color: #055160;
    border: 1px solid #b6effb;
}

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

.badge-primary { background-color: var(--primary-color); color: white; }
.badge-success { background-color: var(--success-color); color: white; }
.badge-danger { background-color: var(--danger-color); color: white; }

/* Table */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: var(--light-color);
    font-weight: 600;
}

.table-striped tbody tr:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

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

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-backdrop.show {
    display: flex;
}

.modal {
    background: white;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    margin: 0;
    color: var(--danger-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}

/* Collapse/Details */
details {
    margin-top: 15px;
}

details summary {
    cursor: pointer;
    color: #6c757d;
}

details pre {
    background: var(--light-color);
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 12px;
    margin-top: 10px;
}

/* Section Headers */
h5 {
    font-size: 1rem;
    margin: 0 0 10px 0;
    color: var(--dark-color);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: block;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary-color);
    cursor: pointer;
}

.page-link:hover {
    background-color: var(--light-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: #6c757d;
    cursor: not-allowed;
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Expanded Row Details */
.expanded-details {
    background-color: var(--light-color);
    padding: 15px;
    display: none;
}

.expanded-details.show {
    display: block;
}

.detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.detail-col {
    flex: 1;
    min-width: 250px;
}

.detail-col h6 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
}

.detail-col p {
    margin: 5px 0;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .col-md-2, .col-md-4, .col-md-5, .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .row {
        flex-direction: column;
    }
}

/* Hidden */
.hidden {
    display: none !important;
}

/* Text utilities */
.text-muted { color: #6c757d; }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-small { font-size: 12px; }

/* Generated by Copilot - Download Actions */
.download-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

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

.btn-success:hover {
    background-color: #157347;
}

.btn-outline-secondary {
    background: transparent;
    border: 1px solid #6c757d;
    color: #6c757d;
}

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

.download-icon, .view-icon {
    margin-right: 4px;
}

.link-external {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Download All Button */
.btn-download-all {
    background-color: var(--success-color);
    color: white;
    margin-left: 10px;
}

.btn-download-all:hover {
    background-color: #157347;
}

/* XML Modal */
.xml-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 1050;
    justify-content: center;
    align-items: center;
}

.xml-modal-backdrop.show {
    display: flex;
}

.xml-modal {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.xml-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-color);
    border-radius: 8px 8px 0 0;
}

.xml-modal-header h3 {
    margin: 0;
    font-size: 16px;
    word-break: break-all;
    color: var(--dark-color);
}

.xml-modal-header .modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.xml-modal-header .modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--dark-color);
}

.xml-modal-body {
    flex: 1;
    overflow: auto;
    padding: 20px;
    background: #f5f5f5;
}

.xml-content {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: auto;
    max-height: 55vh;
    margin: 0;
}

.xml-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: white;
    border-radius: 0 0 8px 8px;
}

/* Has Content Indicator */
.has-content-badge {
    background-color: var(--success-color);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
    font-weight: 600;
}
