/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Geist Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
    background-color: #12100E; /* ← EDIT THIS LINE: Change #12100E to any background color you want */
    color: #E0DDD8; /* Border color used for text */
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Main Metrics Section */
.main-metrics {
    margin-bottom: 3rem;
}

.main-metrics h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #E0DDD8;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: #171512; /* Base background color */
    background-image: radial-gradient(ellipse 200% 100% at bottom, rgba(155, 45, 28, 0.2) 0%, rgba(73, 31, 29, 0.05) 50%, transparent 100%); /* Wider radial gradient covering more bottom area */
    border: 2.5px solid #231F1A; /* ← EDIT THIS LINE: Change 2.5px to any border thickness you want */
    border-radius: 5px; /* ← EDIT THIS LINE: Change 5px to any corner radius you want */
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 221, 216, 0.1);
}

.metric-card h3 {
    font-size: 1.1rem;
    font-weight: 300; /* ← EDIT THIS LINE: Change 300 to any font weight you want (100-900) */
    margin-bottom: 1rem;
    color: #E0DDD8; /* ← EDIT THIS LINE: Change #E0DDD8 to any color you want */
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 300; /* ← EDIT THIS LINE: Change 300 to any font weight you want (100-900) */
    margin-bottom: 0.5rem;
    color: #FCF0EE; /* Light cream color for better contrast on gradient */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.metric-card:nth-child(3) .metric-value {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
}

.metric-change {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
}

.metric-change.positive {
    background-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.metric-change.negative {
    background-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Methodology Section */
.methodology {
    margin-bottom: 3rem;
}

.methodology-card {
    background-color: rgba(252, 240, 238, 0.8); /* FCF0EE with 50% transparency */
    border: 2.5px solid #231F1A; /* ← EDIT THIS LINE: Change 2.5px to any border thickness you want */
    border-radius: 5px; /* ← EDIT THIS LINE: Change 5px to any corner radius you want */
    padding: 2rem;
    margin-bottom: 2rem;
}

.methodology-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0C0A09; /* Dark color for contrast on light background */
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.methodology-content {
    color: #0C0A09; /* Dark color for readability on light background */
    line-height: 1.6;
}

.methodology-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.methodology-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.methodology-content li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.methodology-content strong {
    font-weight: 600;
    color: #231F1A;
}

/* Data Pieces Section */
.data-pieces h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #E0DDD8;
}

.data-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.data-item {
    background-color: #171512; /* Box background color as specified */
    border: 2.5px solid #231F1A; /* ← EDIT THIS LINE: Change 2.5px to any border thickness you want */
    border-radius: 5px; /* ← EDIT THIS LINE: Change 5px to any corner radius you want */
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

/* Red centerline for alignment checking */
.data-item::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background-color: #ff0000;
    z-index: 10;
    opacity: 0.7;
    display: none; /* Hide the red line */
}

.data-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(224, 221, 216, 0.1);
}

.data-image {
    flex-shrink: 0;
}

.data-image img {
    width: 100px;
    height: 100px;
    border-radius: 5px; /* ← EDIT THIS LINE: Change 5px to any radius you want */
    object-fit: cover;
    border: 2.5px solid #231F1A; /* ← EDIT THIS LINE: Change 2.5px to any border thickness you want */
}

.image-number {
    font-size: 1rem;
    font-weight: 500;
    color: #FFFFFF;
    padding: 0.15rem 0.35rem;
    text-align: center;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px; /* ← EDIT THIS LINE: Change 5px to any corner radius you want */
    background-color: rgba(224, 221, 216, 0.05);
}

.divider {
    width: 1px;
    height: 40px;
    background-color: rgba(224, 221, 216, 0.3);
    margin: 0 1rem;
    align-self: center;
}

.data-content {
    flex: 1;
}

.data-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #E0DDD8;
}

.data-meta-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 80px;
    flex: 1;
    align-items: center;
    text-align: center;
    justify-content: flex-end;
}

.meta-label {
    font-size: 0.75rem;
    color: #E0DDD8;
    opacity: 0.6;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.confidence-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
    justify-content: flex-end;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(224, 221, 216, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.progress-fill {
    height: 100%;
    background: #FCF0EE;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.percentage, .confidence {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.15rem 0.35rem;
    border-radius: 5px; /* ← EDIT THIS LINE: Change 5px to any corner radius you want */
    background-color: rgba(224, 221, 216, 0.05);
    color: #FFFFFF;
    display: inline-block;
    position: relative;
    text-transform: uppercase;
}
/* Fine-tune vertical alignment while preserving spacing to progress bar */
.confidence-container {
    transform: translateY(12px);
}

.image-type, .test-return, .model {
    font-size: 1rem;
    color: #FFFFFF;
    font-weight: 500;
    padding: 0.15rem 0.35rem;
    border-radius: 5px; /* ← EDIT THIS LINE: Change 5px to any corner radius you want */
    background-color: rgba(224, 221, 216, 0.05);
    text-transform: uppercase;
}

.success-failure {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.15rem 0.35rem;
    border-radius: 5px; /* ← EDIT THIS LINE: Change 5px to any corner radius you want */
    display: inline-block;
    background-color: rgba(224, 221, 216, 0.05);
    text-transform: uppercase;
}

.success-failure.success {
    background-color: rgba(34, 197, 94, 0.2);
    color: #FFFFFF;
}

.success-failure.failure {
    background-color: rgba(239, 68, 68, 0.2);
    color: #FFFFFF;
}

.category {
    font-size: 0.9rem;
    color: #E0DDD8;
    opacity: 0.7;
    font-weight: 500;
}

.date {
    font-size: 0.9rem;
    color: #E0DDD8;
    opacity: 0.6;
}

.description {
    font-size: 0.95rem;
    color: #E0DDD8;
    opacity: 0.8;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .main-metrics h1 {
        font-size: 2rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .data-item {
        flex-direction: column;
        text-align: center;
    }
    
    .data-meta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .metric-card {
        padding: 1.5rem;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .data-item {
        padding: 1rem;
    }
}

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

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
    user-select: none;
}

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

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.modal-navigation button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    user-select: none;
}

.modal-navigation button:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-navigation button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal-info {
    margin-top: 20px;
    text-align: center;
    color: #fff;
}

#modalImageNumber {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

#modalImageDetails {
    font-size: 14px;
    opacity: 0.8;
}

/* Login Form Styles */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-card h2 {
    color: #FFFFFF;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    font-family: 'Geist Mono', monospace;
}

.login-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-card input[type="password"] {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    color: #FFFFFF;
    font-size: 1rem;
    font-family: 'Geist Mono', monospace;
    transition: all 0.3s ease;
}

.login-card input[type="password"]:focus {
    outline: none;
    border-color: #0070f3;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.1);
}

.login-card input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.login-card button {
    background: #0070f3;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Geist Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-card button:hover {
    background: #0051a5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 112, 243, 0.3);
}

.login-card button:active {
    transform: translateY(0);
}

.error-message {
    color: #ff4757;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.5rem;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: 6px;
}
