:root {
    --primary-color: #2c3e50;
    --primary-dark: #1a252f;
    --primary-light: #34495e;
    --accent-color: #3498db;
    --accent-dark: #2980b9;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #8e44ad;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --light-gray: #ecf0f1;
    --border-color: #bdc3c7;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 40px 30px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--success-color), var(--warning-color), var(--info-color));
}

.header h1 {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.header p {
    font-size: 1.2em;
    color: var(--text-light);
    font-weight: 400;
}

/* Main Content */
.main-content {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Version Selection */
.version-selection {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: var(--shadow);
}

.version-selection h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.version-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1em;
}

.form-group label i {
    margin-right: 8px;
    color: var(--accent-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

/* Message containers */
.message-container {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-container.success-message {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.message-container.error-message {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

.message-container i {
    font-size: 1.3em;
}

/* Upload Section */
.upload-section {
    padding: 40px;
    text-align: center;
    background: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
}

/* Command Instructions */
.command-instructions {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    text-align: left;
}

.command-instructions h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.command-instructions p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.05em;
}

.command-box {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 15px 0;
    position: relative;
    border: 1px solid #333;
}

.command-box code {
    color: #f8f8f2;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.95em;
    line-height: 1.4;
    white-space: nowrap;
    overflow-x: auto;
    display: block;
    padding-right: 40px;
}

.copy-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-50%) scale(1.05);
}

.command-note {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 6px;
    padding: 12px 16px;
    color: var(--accent-color);
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.command-note i {
    font-size: 1.1em;
}

/* Upload Success Card */
.upload-success-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: var(--shadow);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.success-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.success-header i {
    font-size: 2.5em;
    color: var(--success-color);
}

.success-header h3 {
    color: var(--primary-color);
    font-size: 1.5em;
    font-weight: 600;
    margin: 0;
}

.success-content {
    margin-bottom: 25px;
}

.file-info-card {
    background: rgba(39, 174, 96, 0.05);
    border: 1px solid rgba(39, 174, 96, 0.2);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.file-info-card:hover {
    background: rgba(39, 174, 96, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.15);
}

.file-info-card i {
    font-size: 2em;
    color: var(--success-color);
}

.file-details {
    flex: 1;
    text-align: left;
}

.filename {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1em;
    margin-bottom: 5px;
}

.file-status {
    color: var(--text-light);
    font-size: 0.95em;
}

.next-steps {
    text-align: center;
    margin-bottom: 25px;
}

.next-steps p {
    color: var(--text-light);
    font-size: 1.1em;
    margin: 0;
}

.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    padding: 60px 20px;
    background: var(--white);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--accent-color);
    background: #f8f9fa;
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 4em;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.upload-text {
    font-size: 1.3em;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.upload-subtext {
    color: var(--text-light);
    font-size: 1em;
    margin-bottom: 25px;
}

.file-input {
    display: none;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

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

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

.btn-success:hover {
    background: #219a52;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover {
    background: #6c757d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-warning:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Results Section */
.results-section {
    padding: 40px;
}

.section-title {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Validation Summary */
.validation-summary {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--accent-color);
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-compliant .stat-value {
    color: var(--success-color);
}

.stat-non-compliant .stat-value {
    color: var(--error-color);
}

.stat-total .stat-value {
    color: var(--accent-color);
}

.stat-compliance .stat-value {
    color: var(--info-color);
}

/* Endpoint Cards */
.endpoints-grid {
    display: grid;
    gap: 25px;
    margin-top: 30px;
}

.endpoint-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.endpoint-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.endpoint-header {
    padding: 20px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.endpoint-title {
    font-size: 1.4em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.compliance-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.badge-non-compliant {
    background: var(--error-color);
    color: var(--white);
}

.endpoint-content {
    padding: 25px;
}

.device-types {
    margin-bottom: 25px;
}

.device-type-card {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-color);
}

.device-type-card.non-compliant {
    border-left-color: var(--error-color);
}

.device-type-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.device-type-name {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-color);
}

.device-type-id {
    font-family: 'Courier New', monospace;
    background: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--text-light);
}

.clusters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cluster-card {
    background: var(--white);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.cluster-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.cluster-card.non-compliant {
    border-left-color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.cluster-card.warning {
    border-left-color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.cluster-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--border-color);
}

.cluster-info {
    flex: 1;
}

.cluster-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1em;
    margin-bottom: 4px;
}

/* Make cluster name red for non-compliant clusters */
.cluster-card.non-compliant .cluster-name {
    color: var(--error-color);
}

/* Style for missing clusters - reduce opacity to show they're not interactive */
.cluster-card:not(.clickable-cluster) {
    opacity: 0.8;
}

.cluster-card:not(.clickable-cluster) .cluster-description {
    font-style: italic;
    color: var(--text-light);
}

.cluster-description {
    font-size: 0.85em;
    color: var(--text-light);
    font-style: italic;
}

.cluster-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cluster-id {
    font-family: 'Courier New', monospace;
    background: var(--accent-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
}

.cluster-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: var(--white);
}

.compliance-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.data-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px;
    background: var(--light-gray);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.stat-item:hover {
    background: #e8f4f8;
    transform: translateY(-2px);
}

.stat-item.info-stat {
    border-left: 3px solid #2196f3;
}

.stat-item.info-stat:hover {
    background-color: #e3f2fd;
}

.stat-item i {
    color: var(--accent-color);
    font-size: 1.2em;
    margin-bottom: 8px;
}

.stat-count {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.85em;
    color: var(--text-light);
    margin-top: 4px;
}

/* Missing Elements Styles */
.missing-elements {
    margin-top: 15px;
    padding: 15px;
    background: #ffeaea;
    border: 1px solid #ffcccb;
    border-radius: 6px;
    border-left: 4px solid var(--error-color);
}

.missing-elements h4 {
    margin: 0 0 10px 0;
    color: var(--error-color);
    font-size: 1em;
}

.missing-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.missing-list li {
    padding: 8px 0;
    border-bottom: 1px solid #ffdddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.missing-list li:last-child {
    border-bottom: none;
}

.missing-type {
    background: var(--error-color);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    text-transform: uppercase;
    font-weight: 600;
}

/* Info Elements Styles */
.info-elements {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.info-elements h4 {
    color: #1976d2;
    margin: 0 0 10px 0;
    font-size: 0.9em;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 8px 0;
    border-bottom: 1px solid #bbdefb;
    color: #424242;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-type {
    background: #2196f3;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    text-transform: uppercase;
    font-weight: 600;
}

.missing-message, .info-message {
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

/* Revision Issues Styles */
.revision-issues {
    margin-top: 15px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    border-left: 4px solid #e17055;
}

.revision-issues h4 {
    margin: 0 0 10px 0;
    color: #e17055;
    font-size: 1em;
}

.revision-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.revision-error {
    padding: 10px 0;
    border-bottom: 1px solid #ffeaa7;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.revision-error:last-child {
    border-bottom: none;
}

.revision-error i {
    color: #e17055;
    margin-top: 2px;
    flex-shrink: 0;
}

.issue-message {
    color: #856404;
    font-weight: 500;
    line-height: 1.4;
}

/* Event Warnings Styles */
.event-warnings {
    margin-top: 15px;
    padding: 15px;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    border-left: 4px solid var(--info-color);
}

.event-warnings h4 {
    margin: 0 0 10px 0;
    color: var(--info-color);
    font-size: 1em;
}

.event-notice {
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #666;
}

.event-notice i {
    color: var(--info-color);
}

.event-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-warning {
    padding: 8px 0;
    border-bottom: 1px solid #bbdefb;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.event-warning:last-child {
    border-bottom: none;
}

.event-warning i {
    color: #ff9800;
    margin-top: 2px;
    flex-shrink: 0;
}

.warning-message {
    color: #1976d2;
    font-size: 0.9em;
    line-height: 1.4;
}

.event-more {
    padding: 8px 0;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 60px;
    color: var(--text-light);
}

.loading-spinner {
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background: #ffeaea;
    color: var(--error-color);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--error-color);
    margin: 20px 0;
}

.success-message {
    background: #e8f5e8;
    color: var(--success-color);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
    margin: 20px 0;
}

.file-info {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-radius: 6px;
    padding: 12px 16px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
}

.file-info i {
    color: var(--success-color);
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header h1 {
        font-size: 2em;
    }

    .upload-area {
        padding: 40px 15px;
    }

    .summary-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }

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

    .cluster-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }

    .stat-item {
        padding: 8px;
    }

    .stat-count {
        font-size: 1.2em;
    }

    .cluster-header {
        padding: 15px;
    }

    .cluster-actions {
        gap: 8px;
    }

    .version-selection {
        margin: 15px 0;
        padding: 20px;
    }

    .version-form {
        max-width: 100%;
    }

    .form-actions {
        flex-direction: column;
        gap: 15px;
    }

    .form-actions .btn {
        width: 100%;
        text-align: center;
    }


}

@media (max-width: 480px) {
    .cluster-stats {
        grid-template-columns: 1fr;
    }

    .cluster-description {
        display: none;
    }

    .cluster-actions {
        flex-direction: column;
        gap: 5px;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.d-none {
    display: none;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.modal-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-section:last-child {
    border-bottom: none;
}

.modal-section h3 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-section h3 i {
    color: var(--accent-color);
}

.modal-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.modal-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.modal-id-badge {
    background: var(--accent-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

.modal-name {
    font-weight: 600;
    color: var(--text-color);
    flex: 1;
}

.modal-type-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-type-badge.generated {
    background: #4CAF50;
    color: white;
}

.modal-type-badge.accepted {
    background: #2196F3;
    color: white;
}

.modal-type-badge.event {
    background: #FF9800;
    color: white;
}

.modal-values {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-value {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.modal-value-label {
    font-weight: 500;
    color: var(--text-color);
    min-width: 120px;
    flex-shrink: 0;
}

.modal-value-data {
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-word;
    white-space: pre-wrap;
}

/* Update clickable cluster styles */
.clickable-cluster {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-cluster:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cluster-card.non-compliant:hover {
    border-left-color: var(--error-color);
}

.cluster-card.warning:hover {
    border-left-color: var(--warning-color);
}

.cluster-card.non-compliant .cluster-stats {
    background: transparent;
}

.cluster-card.warning .cluster-stats {
    background: transparent;
}

.clickable-cluster:hover .cluster-name {
    color: var(--accent-color);
}

.view-button {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Missing elements styles */
.missing-element {
    border-left: 4px solid var(--error-color);
    background: rgba(244, 67, 54, 0.05);
}

.missing-element .modal-id-badge.error {
    background: var(--error-color);
    color: white;
}

.missing-element .modal-name.error {
    color: var(--error-color);
    font-weight: 600;
}

.missing-type-section {
    margin: 15px 0;
    padding: 10px;
    border: 1px solid rgba(244, 67, 54, 0.2);
    border-radius: 8px;
    background: rgba(244, 67, 54, 0.02);
}

/* Revision issues styles */
.revision-issue {
    border-left: 4px solid var(--error-color);
    background: rgba(244, 67, 54, 0.05);
}

.revision-issue .modal-id-badge.error {
    background: var(--error-color);
    color: white;
}

.revision-issue .modal-name.error {
    color: var(--error-color);
    font-weight: 600;
}

/* Event information styles */
.event-item {
    border-left: 4px solid var(--info-color);
    background: rgba(33, 150, 243, 0.05);
}

.event-item .modal-id-badge.info {
    background: var(--info-color);
    color: white;
}

.event-item .modal-name.info {
    color: var(--info-color);
    font-weight: 600;
}

.event-item .modal-id-badge.warning {
    background: var(--warning-color);
    color: white;
}

.event-item .modal-name.warning {
    color: var(--warning-color);
    font-weight: 600;
}

/* Modal type badges */
.modal-type-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
    text-transform: uppercase;
    margin-left: 8px;
}

.modal-type-badge.generated {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.modal-type-badge.accepted {
    background: rgba(33, 150, 243, 0.1);
    color: var(--info-color);
    border: 1px solid rgba(33, 150, 243, 0.3);
}

/* Validation Loader Styles */
.validation-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-content {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
}

.loader-spinner {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.loader-spinner i {
    color: var(--accent-color);
    z-index: 2;
    position: relative;
}

.spinner-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 3px solid rgba(33, 150, 243, 0.1);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.loader-content h3 {
    color: var(--primary-color);
    margin: 0 0 12px 0;
    font-size: 1.4em;
}

.loader-content p {
    color: var(--text-light);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.loader-progress {
    margin-top: 24px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9em;
    color: var(--text-light);
    font-weight: 500;
}

.view-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.view-button i {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }

    .modal-content {
        max-width: 100%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-header h2 {
        font-size: 1.1rem;
    }

    .modal-section {
        padding: 15px;
    }

    .modal-value {
        flex-direction: column;
        gap: 5px;
    }

    .modal-value-label {
        min-width: auto;
    }
}
