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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.navbar {
    background: #1a1a2e;
    color: white;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name { font-size: 0.9rem; opacity: 0.8; }

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

h1 { margin-bottom: 1rem; font-size: 1.5rem; }
h2 { margin-bottom: 0.75rem; font-size: 1.2rem; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.stat-error .stat-number { color: #e74c3c; }

.section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background: #f9f9f9;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #666;
}

.table a { color: #3498db; text-decoration: none; }
.table a:hover { text-decoration: underline; }

.table-narrow { max-width: 600px; }
.table-narrow td:first-child { font-weight: 600; width: 150px; }

.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.bg-gray-500 { background: #95a5a6; }
.bg-blue-500 { background: #3498db; }
.bg-blue-600 { background: #2980b9; }
.bg-purple-500 { background: #9b59b6; }
.bg-yellow-500 { background: #f39c12; }
.bg-orange-500 { background: #e67e22; }
.bg-orange-600 { background: #d35400; }
.bg-green-500 { background: #2ecc71; }
.bg-green-600 { background: #27ae60; }
.bg-teal-500 { background: #1abc9c; }
.bg-red-500 { background: #e74c3c; }
.bg-red-600 { background: #c0392b; }
.bg-red-700 { background: #c0392b; }
.bg-red-800 { background: #a93226; }
.bg-gray-600 { background: #7f8c8d; }

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
}

.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
.btn-primary { background: #3498db; color: white; }
.btn-success { background: #2ecc71; color: white; }
.btn-danger { background: #e74c3c; color: white; }
.btn-block { display: block; width: 100%; }

.inline-form { display: inline; margin-right: 0.5rem; }

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
}

.job-header {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.job-meta {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.job-meta code {
    background: #f0f0f0;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.mr-link { color: #3498db; text-decoration: none; font-size: 0.9rem; }

.description {
    white-space: pre-wrap;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.timeline { padding-left: 1rem; }

.timeline-item {
    padding: 0.75rem 0;
    border-left: 2px solid #ddd;
    padding-left: 1rem;
    margin-left: 0.5rem;
}

.timeline-time { font-size: 0.8rem; color: #999; }
.timeline-event { font-weight: 600; font-size: 0.9rem; }
.timeline-details { font-size: 0.85rem; color: #666; margin-top: 0.25rem; }

.error-text { color: #e74c3c; }

.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f5f5f5;
}

.login-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-card h1 {
    text-align: center;
    color: #1a1a2e;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.alert {
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error {
    background: #fde8e8;
    color: #e74c3c;
    border: 1px solid #f5c6cb;
}

.alert-danger {
    background: #fde8e8;
    color: #a93226;
    border: 1px solid #f5c6cb;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.alert-warning {
    background: #fff4e0;
    color: #b9770e;
    border: 1px solid #f5d99e;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.alert-danger .table, .alert-warning .table { margin-top: 0.5rem; background: rgba(255,255,255,0.6); border-radius: 4px; }
.alert-danger code, .alert-warning code { background: rgba(0,0,0,0.05); padding: 0.1rem 0.3rem; border-radius: 3px; font-size: 0.85rem; }

.logout-form { display: inline; }
