* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #1f2937;
}
.check-row.status-warning {
    background: #fffcde;
}
.check-row.status-fail {
    background: #ffc1c1;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    flex: 1;
}

header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    flex: 1;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #10b981;
    color: white;
    width: 100%;
    margin-top: 20px;
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: white;
    color: #667eea;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background: #f3f4f6;
}

.upload-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.info-box {
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.info-box h2 {
    color: #1e40af;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    padding: 8px 0;
    color: #1e3a8a;
}

.info-box li strong {
    color: #1e40af;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.upload-form {
    margin-top: 30px;
}

.upload-area {
    border: 3px dashed #cbd5e1;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f1f5f9;
}

.upload-area.dragover {
    border-color: #10b981;
    background: #ecfdf5;
    transform: scale(1.02);
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: #667eea;
    margin: 0 auto 20px;
}

.upload-area h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 10px;
}

.upload-area p {
    color: #6b7280;
    margin-bottom: 8px;
}

.upload-area .file-info {
    font-size: 0.9rem;
    color: #9ca3af;
}

.upload-area input[type="file"] {
    display: none;
}

footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    opacity: 0.9;
}

footer a {
    color: white;
    text-decoration: underline;
}

.results-container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.overall-status {
    text-align: center;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.overall-status.status-pass {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
}

.overall-status.status-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
}

.overall-status.status-fail {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
}

.status-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.status-icon svg {
    width: 100%;
    height: 100%;
}

.status-pass .status-icon {
    color: #10b981;
}

.status-warning .status-icon {
    color: #f59e0b;
}

.status-fail .status-icon {
    color: #ef4444;
}

.overall-status h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.status-pass h2 {
    color: #065f46;
}

.status-warning h2 {
    color: #92400e;
}

.status-fail h2 {
    color: #991b1b;
}

.status-summary {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-badge.pass {
    background: #10b981;
    color: white;
}

.status-badge.warning {
    background: #f59e0b;
    color: white;
}

.status-badge.fail {
    background: #ef4444;
    color: white;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 968px) {
    .two-column {
        grid-template-columns: 1fr;
    }
}

.preview-section,
.checks-section {
    background: #f9fafb;
    padding: 25px;
    border-radius: 12px;
}

.preview-section h3,
.checks-section h3,
.files-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #1f2937;
}

.ad-preview-container {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    margin-bottom: 20px;
}

.ad-preview-container iframe {
    border: 1px solid #d1d5db;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ad-info {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.ad-info p {
    margin-bottom: 8px;
    color: #4b5563;
}

.checks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .checks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .checks-grid {
        grid-template-columns: 1fr;
    }
}

.check-row {
    background: white;
    padding: 10px 15px;
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 10px;
    align-items: start;
    font-size: 0.9rem;
}

.check-row:hover {
    background: #f9fafb;
}

.check-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.status-pass .check-icon {
    color: #10b981;
}

.status-warning .check-icon {
    color: #6b7280;
}

.status-fail .check-icon {
    color: #ef4444;
}

.check-label {
    color: #1f2937;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.check-value {
    color: #1f2937;
    font-weight: 600;
    text-align: right;
    font-size: 0.875rem;
}

.check-reason {
    background: #fffbeb;
    padding: 10px 15px;
    font-size: 0.8rem;
    color: #92400e;
    border-left: 3px solid #f59e0b;
    grid-column: 1 / -1;
    line-height: 1.4;
}

.check-reason-fail {
    background: #fee2e2;
    color: #991b1b;
    border-left-color: #ef4444;
}

.check-details-list {
    margin: 8px 0 0 0;
    padding-left: 20px;
    list-style: disc;
}

.check-details-list li {
    margin: 4px 0;
    word-break: break-all;
}

.check-row[title] {
    cursor: help;
}

.files-section {
    background: #f9fafb;
    padding: 25px;
    border-radius: 12px;
}

.file-tree {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.file-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.file-item:last-child {
    border-bottom: none;
}

.file-name {
    color: #1f2937;
    font-family: 'Courier New', monospace;
}

.file-size {
    color: #6b7280;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .upload-section,
    .results-container {
        padding: 20px;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .overall-status {
        padding: 30px 20px;
    }
    
    .overall-status h2 {
        font-size: 1.5rem;
    }
}
