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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #24292e;
    background-color: #ffffff;
    padding: 20px;
}

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

header {
    margin-bottom: 30px;
    border-bottom: 1px solid #e1e4e8;
    padding-bottom: 20px;
}

header h1 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #0366d6;
}

.timestamp {
    color: #586069;
    font-size: 0.9em;
}

/* Tab Navigation */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e1e4e8;
}

.tab-button {
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-bottom: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.95em;
    color: #586069;
    transition: all 0.2s;
    border-radius: 6px 6px 0 0;
    margin-bottom: -2px;
}

.tab-button:hover {
    background-color: #e1e4e8;
    color: #24292e;
}

.tab-button.active {
    background-color: #ffffff;
    border-bottom: 2px solid #ffffff;
    color: #24292e;
    font-weight: 600;
    z-index: 1;
    position: relative;
}

/* Tab Content */
.tab-content {
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #e1e4e8;
    border-radius: 0 6px 6px 6px;
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h2 {
    font-size: 1.75em;
    margin-bottom: 15px;
    color: #0366d6;
    border-bottom: 2px solid #e1e4e8;
    padding-bottom: 10px;
}

/* Review Section */
.review-section {
    margin: 20px 0;
    padding: 20px;
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
}

.review-form {
    margin-top: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #24292e;
}

.form-group select,
.form-group textarea,
.form-group input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5da;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-review-btn {
    background-color: #28a745;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-review-btn:hover {
    background-color: #22863a;
}

.submit-review-btn:active {
    background-color: #1e7e34;
}

.review-success {
    margin-top: 15px;
    padding: 12px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

.download-btn {
    margin-top: 10px;
    background-color: #0366d6;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.download-btn:hover {
    background-color: #0256c2;
}

.reviews-list {
    margin-top: 20px;
}

.review-item {
    padding: 15px;
    margin-bottom: 15px;
    background-color: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    border-left: 4px solid #0366d6;
}

.review-item.rating-correct {
    border-left-color: #28a745;
}

.review-item.rating-incorrect {
    border-left-color: #d73a49;
}

.review-item.rating-needs-review {
    border-left-color: #f66a0a;
}

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

.review-item-meta {
    font-size: 12px;
    color: #586069;
}

.review-item-rating {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.review-item-rating.correct {
    background-color: #d4edda;
    color: #155724;
}

.review-item-rating.incorrect {
    background-color: #f8d7da;
    color: #721c24;
}

.review-item-rating.needs-review {
    background-color: #fff3cd;
    color: #856404;
}

.review-item-comment {
    margin-top: 10px;
    color: #24292e;
    line-height: 1.5;
}

.review-item-suggestions {
    margin-top: 10px;
    padding: 10px;
    background-color: #f6f8fa;
    border-radius: 4px;
    font-size: 13px;
    color: #586069;
}

/* Audit Stats */
.audit-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.method-stat-card {
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.method-stat-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #24292e;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e1e4e8;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row span:first-child {
    color: #586069;
    font-size: 0.9em;
}

.stat-row strong {
    color: #24292e;
    font-size: 1.1em;
}

.tab-pane h3 {
    font-size: 1.3em;
    margin-top: 30px;
    margin-bottom: 10px;
    color: #24292e;
}

.explanation {
    color: #586069;
    font-style: italic;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f6f8fa;
    border-left: 3px solid #0366d6;
    border-radius: 3px;
}

/* Lists */
.summary-list,
.path-list,
.component-list {
    margin: 15px 0;
    padding-left: 25px;
}

.summary-list li {
    margin: 8px 0;
}

.path-list li {
    margin: 5px 0;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    background-color: #f6f8fa;
    padding: 5px 10px;
    border-radius: 3px;
}

.component-list li {
    margin: 5px 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

thead {
    background-color: #0366d6;
    color: #ffffff;
}

thead th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95em;
}

tbody tr {
    border-bottom: 1px solid #e1e4e8;
}

tbody tr:nth-child(even) {
    background-color: #f6f8fa;
}

tbody tr:hover {
    background-color: #e1e4e8;
}

tbody td {
    padding: 10px 15px;
}

code {
    background-color: #f6f8fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.9em;
    color: #e83e8c;
}

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

    .tabs {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
        border-radius: 6px;
        margin-bottom: 5px;
        border: 1px solid #e1e4e8;
    }

    .tab-button.active {
        border-bottom: 1px solid #e1e4e8;
    }

    .tab-content {
        border-radius: 6px;
        padding: 15px;
    }

    table {
        font-size: 0.9em;
    }

    thead th,
    tbody td {
        padding: 8px 10px;
    }

    /* Horizontal scroll for tables on mobile */
    .tab-content {
        overflow-x: auto;
    }

    table {
        min-width: 500px;
    }
}

