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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f1117;
    color: #e1e4e8;
    line-height: 1.6;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #161b22;
    padding: 0.8rem 2rem;
    border-bottom: 1px solid #30363d;
}
.nav-brand { font-size: 1.2rem; font-weight: 700; color: #58a6ff; }
.nav-links a {
    color: #8b949e;
    text-decoration: none;
    margin-left: 1.2rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #58a6ff; }
.btn-export {
    background: #238636 !important;
    color: #fff !important;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem !important;
}
.btn-logout {
    background: #da3633 !important;
    color: #fff !important;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem !important;
}

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

h1 { font-size: 1.5rem; margin-bottom: 1.5rem; color: #f0f6fc; }
h2 { font-size: 1.2rem; margin: 2rem 0 1rem; color: #c9d1d9; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.2rem;
    text-align: center;
}
.stat-card h3 { font-size: 0.85rem; color: #8b949e; margin-bottom: 0.5rem; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: #58a6ff; }
.stat-pending .stat-value { color: #d29922; }
.stat-done .stat-value { color: #3fb950; }
.stat-failed .stat-value { color: #f85149; }

.info-box {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 0.8rem 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #8b949e;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #161b22;
    border-radius: 8px;
    overflow: hidden;
    table-layout: fixed;
}
.data-table th, .data-table td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data-table th {
    background: #21262d;
    padding: 0.7rem 1rem;
    text-align: left;
    font-size: 0.8rem;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.data-table td {
    padding: 0.6rem 1rem;
    border-top: 1px solid #21262d;
    font-size: 0.85rem;
}
.data-table tr:hover { background: #1c2128; }
.data-table a { color: #58a6ff; text-decoration: none; }

.progress-bar {
    width: 100%;
    height: 8px;
    background: #21262d;
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: #238636;
    border-radius: 4px;
    transition: width 0.3s;
}

.btn-sm {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #30363d;
    color: #c9d1d9;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: 0.3rem;
}
.btn-sm:hover { background: #484f58; }

.alert {
    padding: 0.8rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.alert-error { background: #3d1f1f; border: 1px solid #f85149; color: #f85149; }

/* Login page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.login-box {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 380px;
}
.login-box h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #58a6ff;
}
.login-box input {
    width: 100%;
    padding: 0.7rem;
    margin-bottom: 1rem;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e1e4e8;
    font-size: 0.95rem;
}
.login-box input:focus { border-color: #58a6ff; outline: none; }
.login-box button {
    width: 100%;
    padding: 0.7rem;
    background: #238636;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}
.login-box button:hover { background: #2ea043; }

/* Docs */
section { margin-bottom: 2rem; }
section p, section li { color: #8b949e; font-size: 0.9rem; }
section ul, section ol { padding-left: 1.5rem; }
section li { margin-bottom: 0.4rem; }

small { font-size: 0.75rem; color: #8b949e; }
