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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #0d1117;
    color: #c9d1d9;
    min-height: 100vh;
    padding: 1rem;
}

header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #30363d;
}

header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #58a6ff;
}

.disclaimer {
    font-size: 0.8rem;
    color: #8b949e;
    max-width: 700px;
    margin: 0 auto;
    padding: 0.5rem;
    background: #161b22;
    border-radius: 4px;
    border-left: 3px solid #58a6ff;
}

.tech-note {
    text-align: center;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #8b949e;
}

.tech-label {
    color: #58a6ff;
    font-weight: 600;
}

.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #161b22;
    border-radius: 8px;
}

.tamper-controls, .verify-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: #238636;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #2ea043;
}

.btn-warning {
    background: #9e6a03;
    color: white;
}

.btn-warning:hover:not(:disabled) {
    background: #bb8009;
}

.btn-success {
    background: #1f6feb;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #388bfd;
}

.btn-info {
    background: #238636;
    color: white;
}

.btn-info:hover:not(:disabled) {
    background: #2ea043;
}

.btn-secondary {
    background: #30363d;
    color: #c9d1d9;
}

.btn-secondary:hover:not(:disabled) {
    background: #484f58;
}

select {
    padding: 0.6rem;
    border: 1px solid #30363d;
    border-radius: 6px;
    background: #0d1117;
    color: #c9d1d9;
    font-size: 0.85rem;
    min-width: 240px;
}

.columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.column {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #21262d;
    border-bottom: 1px solid #30363d;
}

.column-header h2 {
    font-size: 1rem;
    font-weight: 600;
}

.column-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    background: #30363d;
    color: #c9d1d9;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-small:hover {
    background: #484f58;
}

.btn-small:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-evidence {
    background: #1f6feb;
    color: white;
}

.btn-evidence:hover:not(:disabled) {
    background: #388bfd;
}

.log-container {
    padding: 1rem;
    max-height: 500px;
    overflow-y: auto;
    font-family: "SF Mono", Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.5;
}

.result-container {
    padding: 1rem;
    max-height: 500px;
    overflow-y: auto;
}

.placeholder {
    color: #6e7681;
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

/* Event line styles */
.event-line {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: #0d1117;
    border-radius: 4px;
    border-left: 3px solid #30363d;
    word-break: break-all;
    white-space: pre-wrap;
    position: relative;
}

.event-line.highlight-error {
    border-left-color: #f85149;
    background: rgba(248, 81, 73, 0.1);
}

.event-line.highlight-modified {
    border-left-color: #d29922;
    background: rgba(210, 153, 34, 0.1);
}

.event-line.verified {
    border-left-color: #3fb950;
}

.event-line .key {
    color: #79c0ff;
}

.event-line .string {
    color: #a5d6ff;
}

.event-line .number {
    color: #d2a8ff;
}

/* Modified value highlight */
.event-line .modified-value {
    background: rgba(248, 81, 73, 0.3);
    padding: 0 0.2rem;
    border-radius: 2px;
    text-decoration: line-through;
    text-decoration-color: #f85149;
}

.event-line .new-value {
    background: rgba(210, 153, 34, 0.3);
    padding: 0 0.2rem;
    border-radius: 2px;
    font-weight: bold;
}

/* Deleted event placeholder */
.deleted-placeholder {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: repeating-linear-gradient(
        45deg,
        rgba(248, 81, 73, 0.05),
        rgba(248, 81, 73, 0.05) 10px,
        rgba(248, 81, 73, 0.1) 10px,
        rgba(248, 81, 73, 0.1) 20px
    );
    border: 2px dashed #f85149;
    border-radius: 4px;
    color: #f85149;
    font-weight: 600;
    text-align: center;
    font-size: 0.85rem;
}

.deleted-placeholder .deleted-type {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: normal;
}

/* Swapped event indicator */
.event-line.swapped-up::before,
.event-line.swapped-down::before {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    background: rgba(210, 153, 34, 0.2);
    color: #d29922;
}

.event-line.swapped-up::before {
    content: "↑ moved up";
}

.event-line.swapped-down::before {
    content: "↓ moved down";
}

/* Result styles */
.result-box {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.result-box.success {
    background: rgba(35, 134, 54, 0.2);
    border: 1px solid #238636;
}

.result-box.failure {
    background: rgba(248, 81, 73, 0.15);
    border: 1px solid #f85149;
}

.result-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-title.success {
    color: #3fb950;
}

.result-title.failure {
    color: #f85149;
}

.result-detail {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.result-detail strong {
    color: #c9d1d9;
}

/* Killer statement */
.killer-statement {
    margin-top: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1), rgba(163, 113, 247, 0.1));
    border: 1px solid #58a6ff;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #c9d1d9;
    text-align: center;
}

.killer-statement strong {
    color: #58a6ff;
}

.hash-display {
    font-family: "SF Mono", Consolas, monospace;
    font-size: 0.7rem;
    padding: 0.5rem;
    background: #0d1117;
    border-radius: 4px;
    word-break: break-all;
    margin-top: 0.25rem;
}

.hash-display.expected {
    border-left: 3px solid #3fb950;
}

.hash-display.actual {
    border-left: 3px solid #f85149;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: #0d1117;
    border-radius: 4px;
}

.check-item.pass {
    border-left: 3px solid #3fb950;
}

.check-item.fail {
    border-left: 3px solid #f85149;
}

.check-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.check-content {
    flex: 1;
}

.check-title {
    font-weight: 600;
    font-size: 0.85rem;
}

.check-detail {
    font-size: 0.75rem;
    color: #8b949e;
    margin-top: 0.25rem;
}

footer {
    text-align: center;
    padding: 1rem;
    color: #6e7681;
    font-size: 0.8rem;
    border-top: 1px solid #30363d;
}

footer a {
    color: #58a6ff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.tamper-info {
    background: rgba(158, 106, 3, 0.2);
    border: 1px solid #9e6a03;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.tamper-info strong {
    color: #d29922;
}

.tamper-info code {
    background: rgba(0,0,0,0.3);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-family: "SF Mono", Consolas, monospace;
    font-size: 0.8rem;
}

/* Verification stats */
.verify-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stat-box {
    padding: 0.5rem;
    background: #0d1117;
    border-radius: 4px;
    text-align: center;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.stat-value.success { color: #3fb950; }
.stat-value.failure { color: #f85149; }

.stat-label {
    font-size: 0.7rem;
    color: #8b949e;
}

/* Scrollbar */
.log-container::-webkit-scrollbar,
.result-container::-webkit-scrollbar {
    width: 8px;
}

.log-container::-webkit-scrollbar-track,
.result-container::-webkit-scrollbar-track {
    background: #0d1117;
}

.log-container::-webkit-scrollbar-thumb,
.result-container::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

.log-container::-webkit-scrollbar-thumb:hover,
.result-container::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}
