/* FileUploader Component Styles */
.file-uploader {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.upload-zone {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: #f7fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-zone:hover {
    border-color: #4299e1;
    background-color: #ebf8ff;
}

.upload-zone.dragging {
    border-color: #3182ce;
    background-color: #bee3f8;
    border-width: 3px;
}

.file-input-hidden {
    display: none;
}

.upload-label {
    cursor: pointer;
    display: block;
    width: 100%;
}

.upload-icon {
    color: #4299e1;
    margin-bottom: 1rem;
}

.upload-text .primary-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.upload-text .secondary-text {
    font-size: 1rem;
    color: #718096;
    margin-bottom: 1rem;
}

.upload-restrictions {
    margin-top: 1rem;
}

.upload-restrictions small {
    color: #a0aec0;
    font-size: 0.875rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    width: 100%;
}

.file-icon {
    color: #48bb78;
    flex-shrink: 0;
}

.file-details {
    flex-grow: 1;
    text-align: left;
}

.file-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.file-size {
    font-size: 0.875rem;
    color: #718096;
}

.btn-remove {
    background: none;
    border: none;
    color: #e53e3e;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.btn-remove:hover:not(:disabled) {
    background-color: #fed7d7;
}

.btn-remove:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upload-progress {
    margin-top: 1rem;
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #4299e1;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.5rem;
}

.alert {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background-color: #fed7d7;
    color: #c53030;
    border: 1px solid #fc8181;
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-message {
    flex-grow: 1;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* Home Page Styles */
.validation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
}

.header h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: #718096;
}

.upload-section {
    margin: 2rem 0;
}

.processing-indicator {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background-color: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.spinner {
    border: 4px solid #e2e8f0;
    border-top: 4px solid #4299e1;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.processing-status {
    margin-bottom: 1.5rem;
}

.status-text {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status-detail {
    color: #718096;
    font-size: 0.9rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #2d3748;
}

.btn-secondary:hover {
    background-color: #cbd5e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .upload-zone {
        padding: 1.5rem;
        min-height: 180px;
    }

    .upload-text .primary-text {
        font-size: 1.1rem;
    }

    .upload-text .secondary-text {
        font-size: 0.9rem;
    }

    .file-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Accessibility */
.upload-zone:focus-within {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
}

/* Validation Error List Styles */
.validation-error-list {
    margin: 20px 0;
}

.error-section, .warning-section {
    margin-bottom: 30px;
    border-left: 4px solid;
    padding-left: 15px;
}

.error-section {
    border-color: #dc3545;
}

.warning-section {
    border-color: #fd7e14;
}

.error-header, .warning-header {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.error-header {
    color: #dc3545;
}

.warning-header {
    color: #fd7e14;
}

.error-item, .warning-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 10px;
}

.error-item {
    border-left: 4px solid #dc3545;
}

.warning-item {
    border-left: 4px solid #fd7e14;
}

.error-location, .warning-location {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 5px;
}

.error-element, .warning-element {
    font-size: 0.95em;
    margin-bottom: 5px;
}

.error-element code, .warning-element code {
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.error-message, .warning-message {
    margin-top: 8px;
    line-height: 1.5;
}

.no-errors {
    text-align: center;
    padding: 40px;
    color: #28a745;
    font-size: 1.1em;
}

.success-icon, .error-icon, .warning-icon {
    font-size: 1.3em;
    margin-right: 8px;
}

/* ===========================
   Epic 5: Validation Summary Component
   =========================== */

.validation-summary {
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.summary-success {
    background-color: #e8f5e9;
    border-left: 6px solid #4caf50;
}

.summary-failure {
    background-color: #ffebee;
    border-left: 6px solid #f44336;
}

.summary-header {
    margin-bottom: 16px;
}

.status-message {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-success .status-message {
    color: #2e7d32;
}

.summary-failure .status-message {
    color: #c62828;
}

.summary-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.file-info p {
    margin: 6px 0;
    color: #555;
    font-size: 0.95rem;
}

.file-info strong {
    color: #333;
    margin-right: 8px;
}

.error-summary {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-error {
    background-color: #ffcdd2;
    color: #c62828;
    border: 1px solid #ef5350;
}

.badge-warning {
    background-color: #ffe0b2;
    color: #e65100;
    border: 1px solid #ff9800;
}

/* Success case styles (E5-US6) */
.success-details {
    margin-top: 16px;
    padding: 16px;
    background-color: #f1f8f4;
    border-radius: 6px;
    border: 1px solid #a5d6a7;
}

.success-text {
    color: #2e7d32;
    font-size: 1rem;
    margin-bottom: 12px;
    line-height: 1.8;
}

.perfect-validation {
    color: #1b5e20;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 12px;
    text-align: center;
}

.warning-note {
    margin-top: 16px;
    padding: 12px;
    background-color: #fff8e1;
    border-left: 4px solid #ff9800;
    border-radius: 4px;
}

.warning-note .small-text {
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
}

.validation-duration {
    margin-top: 16px;
    text-align: right;
}

/* ===========================
   Epic 5: Error Table Component
   =========================== */

.error-table-container {
    margin: 24px 0;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-buttons .btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}

.btn-primary:hover:not(:disabled) {
    background-color: #0056b3;
}

.btn-outline-secondary {
    background-color: white;
    color: #6c757d;
    border: 1px solid #6c757d;
}

.btn-outline-secondary:hover:not(:disabled) {
    background-color: #6c757d;
    color: white;
}

.error-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.error-table thead {
    background-color: #f5f5f5;
    border-bottom: 2px solid #dee2e6;
}

.error-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.error-table th:hover {
    background-color: #e9ecef;
}

.error-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}

/* Row Colors */
.row-error {
    background-color: #ffebee;
}

.row-error:hover {
    background-color: #ffcdd2;
}

.row-warning {
    background-color: #fff3e0;
}

.row-warning:hover {
    background-color: #ffe0b2;
}

.row-success {
    background-color: #e8f5e9;
}

.row-success:hover {
    background-color: #c8e6c9;
}

/* Cell Styles */
.icon-cell {
    font-size: 1.3rem;
    text-align: center;
}

.type-cell {
    font-weight: 600;
    font-size: 0.85rem;
}

.title-cell code {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9rem;
}

.message-cell {
    line-height: 1.5;
}

.timestamp-cell {
    color: #666;
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state.success-state {
    color: #2e7d32;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

/* ===========================
   Epic 5: Download Buttons Component
   =========================== */

.download-buttons {
    display: flex;
    gap: 12px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.download-buttons .btn {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.download-buttons .btn-primary {
    background-color: #007bff;
    color: white;
}

.download-buttons .btn-primary:hover:not(:disabled) {
    background-color: #0056b3;
}

.download-buttons .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.download-buttons .btn-secondary:hover:not(:disabled) {
    background-color: #545b62;
}

.download-buttons .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.download-buttons .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* ===========================
   Epic 5: Validation Sections (XSD/XSLT)
   =========================== */

.validation-section {
    margin: 30px 0;
}

.section-header {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 3px solid;
}

.schema-header {
    color: #c62828;
    border-bottom-color: #ef5350;
}

.business-rule-header {
    color: #1565c0;
    border-bottom-color: #42a5f5;
}

.alert {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===========================
   Responsive Design - Tablet
   =========================== */
@media (max-width: 1199px) {
    .table-responsive {
        overflow-x: auto;
    }
}

/* ===========================
   Responsive Design - Mobile
   =========================== */
@media (max-width: 767px) {
    .validation-summary {
        padding: 16px;
    }

    .status-message {
        font-size: 1.4rem;
    }

    .file-info p {
        font-size: 0.85rem;
    }

    .badge {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-buttons .btn {
        width: 100%;
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-buttons .btn {
        width: 100%;
    }

    /* Convert table to cards on mobile */
    .error-table thead {
        display: none;
    }

    .error-table,
    .error-table tbody,
    .error-table tr,
    .error-table td {
        display: block;
    }

    .error-table tr {
        margin-bottom: 16px;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        overflow: hidden;
    }

    .error-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #dee2e6;
    }

    .error-table td:last-child {
        border-bottom: none;
    }

    .error-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        font-weight: 600;
        text-align: left;
    }

    .icon-cell::before {
        content: "";
    }

    .icon-cell {
        text-align: left;
        padding-left: 16px;
    }
}

/* ===========================
   XML Viewer Line Number Badges
   =========================== */

/* Global styles for line number badges - overrides scoped CSS */
.line-number-badge {
    display: inline-block !important;
    min-width: 35px !important;
    height: 26px !important;
    line-height: 22px !important;
    text-align: center !important;
    border-radius: 13px !important;
    font-weight: bold !important;
    font-size: 0.8rem !important;
    margin-right: 0.75rem !important;
    padding: 2px 8px !important;
    vertical-align: middle !important;
}

.line-number-badge.error {
    background-color: #dc3545 !important;
    color: white !important;
    border: 2px solid #ff6b7a !important;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.6) !important;
}

.line-number-badge.warning {
    background-color: #ffc107 !important;
    color: #000 !important;
    border: 2px solid #ffdb4d !important;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.6) !important;
}

.line-number-badge.info {
    background-color: #17a2b8 !important;
    color: white !important;
    border: 2px solid #5dccde !important;
    box-shadow: 0 0 10px rgba(23, 162, 184, 0.6) !important;
}

/* ===========================
   Font Awesome Icon Colors
   =========================== */

/* Error/Danger Icons - Red */
.fa-times-circle,
.fa-times {
    color: #dc3545;
}

/* Warning Icons - Orange/Amber */
.fa-exclamation-triangle {
    color: #fd7e14;
}

/* Success Icons - Green */
.fa-check-circle,
.fa-check {
    color: #28a745 !important;
}

/* Info Icons - Blue */
.fa-info-circle {
    color: #17a2b8;
}

/* Trophy/Achievement - Gold */
.fa-trophy {
    color: #ffc107;
}

/* Heart/Love - Pink */
.fa-heart {
    color: #e83e8c;
}

/* File/Document Icons - Neutral Gray */
.fa-file,
.fa-file-alt,
.fa-file-code {
    color: #6c757d;
}

/* Clipboard - Dark Gray */
.fa-clipboard,
.fa-clipboard-list {
    color: #495057;
}

/* Chart/Analytics Icons - Blue */
.fa-chart-bar,
.fa-chart-line {
    color: #007bff;
}

/* Map/Location Icons - Red/Orange */
.fa-map-marker-alt {
    color: #e74c3c;
}

/* Tools/Equipment - Dark Gray */
.fa-bore-hole {
    color: #6c757d;
}

/* Lab/Science Icons - Purple */
.fa-flask {
    color: #6f42c1;
}

/* People Icons - Blue Gray */
.fa-users {
    color: #5a6268;
}

/* Attachment Icons - Gray */
.fa-paperclip {
    color: #6c757d;
}

/* Folder Icons - Yellow */
.fa-folder-open {
    color: #ffc107 !important;
}

/* Context-specific icon color overrides */

/* Success state icons should be green */
.success-icon .fa-check-circle,
.no-errors .fa-check-circle,
.success-details .fa-check {
    color: #28a745;
}

/* Error section icons should be red */
.error-section .fa-times-circle,
.error-header .fa-times-circle,
.badge-error .fa-times-circle,
.alert-error .fa-times-circle,
.row-error .fa-times-circle {
    color: #dc3545;
}

/* Warning section icons should be orange */
.warning-section .fa-exclamation-triangle,
.warning-header .fa-exclamation-triangle,
.badge-warning .fa-exclamation-triangle,
.alert-warning .fa-exclamation-triangle,
.row-warning .fa-exclamation-triangle {
    color: #fd7e14;
}

/* Info alert icons should be blue */
.alert-info .fa-info-circle {
    color: #0c5460;
}

/* Button icons should inherit button color */
.btn .fas,
.btn .far,
.btn .fab {
    color: inherit;
}

/* Card header icons should inherit header color */
.card-header .fas,
.card-header .far,
.card-header .fab,
.card-header .header-icon {
    color: inherit !important;
}

/* Table header icons should inherit header color */
.table-header .fas,
.table-header .far,
.table-header .fab,
.table-header .icon {
    color: inherit !important;
}

/* Tab icons - subtle colors matching content */
.tab-button .fa-clipboard {
    color: #495057;
}

.tab-button .fa-map-marker-alt {
    color: #e74c3c;
}

.tab-button .fa-bore-hole {
    color: #6c757d;
}

.tab-button .fa-flask {
    color: #6f42c1;
}

.tab-button .fa-chart-line {
    color: #007bff;
}

.tab-button .fa-file-code {
    color: #6c757d;
}

/* Active tab icons should be more prominent */
.tab-button.active .fas {
    opacity: 1;
    filter: brightness(0.9);
}

/* Remove button icons should be red on hover */
.btn-remove .fa-times {
    color: #dc3545;
}

.btn-remove:hover .fa-times {
    color: #bd2130;
}

/* Alert close buttons */
.alert-close .fa-times {
    color: inherit;
    opacity: 0.7;
}

.alert-close:hover .fa-times {
    opacity: 1;
}

/* Markdown Component Styles */
.cs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cs-topbar {
    margin-bottom: 20px;
}

.cs-topbarspacer {
    height: 10px;
}

.cs-topbarimage {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cs-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    line-height: 1.6;
}

/* Markdown content styling */
.cs-content h1 {
    color: #1b6ec2;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.cs-content h2 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.cs-content h3 {
    color: #555;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.cs-content p {
    margin-bottom: 15px;
    color: #333;
}

.cs-content ul, .cs-content ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.cs-content li {
    margin-bottom: 8px;
}

.cs-content a {
    color: #006bb7;
    text-decoration: none;
}

.cs-content a:hover {
    text-decoration: underline;
}

.cs-content code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.cs-content pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.cs-content pre code {
    background-color: transparent;
    padding: 0;
}

.cs-content blockquote {
    border-left: 4px solid #1b6ec2;
    padding-left: 20px;
    margin-left: 0;
    color: #666;
    font-style: italic;
}

.cs-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cs-content table th {
    background-color: #1b6ec2;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.cs-content table td {
    padding: 12px;
    border: 1px solid #ddd;
}

.cs-content table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.cs-content hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 30px 0;
}

.cs-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 15px 0;
}

/* ===========================
   Boring Details Enhanced UI Styles
   =========================== */

/* Detail Header */
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 3px solid #dee2e6;
    margin-bottom: 1.5rem;
    border-radius: 8px 8px 0 0;
}

.detail-title-section h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.detail-title-section h4 i {
    color: #6c757d !important;
}

.detail-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 400;
}

.detail-status-section {
    display: flex;
    align-items: center;
}

/* Section Headers with Icons */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.section-header i {
    font-size: 1.2rem;
    color: #495057 !important;
}

.section-header h5 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #343a40;
}

/* Form Grid Layouts */
.form-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.form-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1rem;
}

/* Form Fields */
.form-field {
    display: flex;
    flex-direction: column;
}

.form-field-highlight {
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border: 2px solid #dee2e6;
}

.form-field-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.field-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.field-label i {
    font-size: 0.9rem;
    color: #6c757d !important;
}

.field-label-inline {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 130px;
    flex-shrink: 0;
}

.field-label-inline i {
    font-size: 0.9rem;
    color: #6c757d !important;
}

.readonly-field {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    font-size: 0.95rem;
}

.readonly-field-compact {
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    font-size: 0.95rem;
    min-height: 38px;
    display: flex;
    align-items: center;
}

.readonly-field-compact .no-data {
    color: #adb5bd;
    font-style: italic;
}

.readonly-field-inline {
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    font-size: 0.95rem;
    min-height: 38px;
    display: flex;
    align-items: center;
    flex: 1;
}

/* Stats Cards */
.form-section-compact {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #adb5bd;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #e9ecef;
    border-radius: 50%;
    font-size: 1.5rem;
}

.stat-icon i {
    color: #495057 !important;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .form-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .form-grid-2col,
    .form-grid-3col {
        grid-template-columns: 1fr;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .detail-header {
        padding: 1rem;
    }

    .detail-title-section h4 {
        font-size: 1.25rem;
    }

    .form-field-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .field-label-inline {
        min-width: auto;
        width: 100%;
    }

    .readonly-field-inline {
        width: 100%;
    }
}
