body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; padding: 20px; max-width: 1200px; margin: 0 auto; background: #f5f5f7; color: #1d1d1f; }
h1 { font-weight: 600; margin-bottom: 30px; }
.card { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 20px; }
.card h3 { margin-top: 0; font-size: 1.2rem; color: #333; border-bottom: 1px solid #eee; padding-bottom: 10px; }

table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #eee; vertical-align: top; }
th { font-weight: 600; color: #666; font-size: 0.9rem; }

.status-dot { height: 10px; width: 10px; background-color: #ddd; border-radius: 50%; display: inline-block; margin-right: 5px; }
.status-dot.active { background-color: #28c840; }
.status-dot.missing { background-color: #ff3b30; }

.btn { cursor: pointer; padding: 6px 12px; border-radius: 6px; border: none; font-size: 0.85rem; font-weight: 500; transition: background 0.2s; text-decoration: none; display: inline-block; color: white; }
.btn-blue { background: #0071e3; }
.btn-blue:hover { background: #0077ed; }
.btn-gray { background: #86868b; }
.btn-green { background: #28c840; }

.actions { display: flex; gap: 8px; }
.row-actions { display: flex; gap: 5px; align-items: center; }

.step-group { display: flex; flex-direction: column; gap: 5px; }
.file-link { font-size: 0.8rem; color: #0071e3; text-decoration: none; }
.file-link:hover { text-decoration: underline; }

select { padding: 5px; border-radius: 4px; border: 1px solid #ccc; font-size: 0.85rem; }

/* Overlay Terminal UI */
.terminal-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 80%;
    background: rgba(10, 10, 10, 0.98);
    color: #00ff41; /* Matrix Green */
    z-index: 2000;
    border-radius: 12px;
    padding: 20px;
    display: none;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    border: 1px solid #333;
    backdrop-filter: blur(10px);
}
.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}
.terminal-title {
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}
.btn-close {
    background: transparent;
    border: 1px solid #ff3b30;
    color: #ff3b30;
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
}
.btn-close:hover { background: #ff3b30; color: white; }

.terminal-content {
    flex: 1;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    white-space: pre-wrap;
    line-height: 1.4;
}
/* Scrollbar styling */
.terminal-content::-webkit-scrollbar { width: 8px; }
.terminal-content::-webkit-scrollbar-track { background: #1a1a1a; }
.terminal-content::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }

/* Animation: Matrix Scan */
.scan-line {
    width: 100%;
    height: 2px;
    background: #00ff41;
    opacity: 0.7;
    box-shadow: 0 0 10px #00ff41;
    animation: scan 2s linear infinite;
    margin-bottom: 10px;
    display: none;
}
@keyframes scan {
    0% { transform: translateY(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(200px); opacity: 0; }
}
