/* ===== Base ===== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Top bar ===== */
.topbar {
    background: #1f2937;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.topbar a {
    color: #fff;
    margin-left: 15px;
    text-decoration: none;
    font-size: 14px;
}

.topbar a:hover {
    text-decoration: underline;
}

.logo {
    font-weight: bold;
    margin-right: 20px;
}

/* ===== Layout ===== */
.container {
    max-width: 1100px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

/* ===== Stats grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

/* ===== Table ===== */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.table th,
.table td {
    padding: 8px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.table th {
    background: #f9fafb;
    font-weight: 600;
}

/* Wrapper so table doesn't touch edges on small screens */
.table-wrapper {
    overflow-x: auto;
}

/* ===== Login ===== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.login-box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 320px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.login-box h1 {
    margin: 0 0 10px;
}

.login-box h2 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #555;
}

.login-box label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.login-box input {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.login-box button {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    border: none;
    border-radius: 4px;
    background: #2563eb;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

/* ===== Messages ===== */
.error {
    background: #fee2e2;
    color: #991b1b;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.success {
    background: #dcfce7;
    color: #166534;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 15px;
    color: #6b7280;
    font-size: 13px;
}

/* ===== Buttons (THIS is what you were missing) ===== */
.btn {
    display: inline-block;
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.05s ease;
}

/* big blue button like your screenshot */
.btn-primary {
    background: #3b82f6;      /* blue */
    color: #ffffff;
    padding: 10px 22px;
    font-size: 15px;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-primary:active {
    background: #1d4ed8;
    transform: translateY(0);
}

/* make sure links using this class stay white */
.btn-primary:link,
.btn-primary:visited {
    color: #ffffff;
}

/* optional larger size */
.btn-large {
    padding: 12px 28px;
    font-size: 16px;
}

/* simple secondary (grey) button */
.btn-secondary {
    background: #e5e7eb;
    color: #111827;
    padding: 9px 18px;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #d1d5db;
    text-decoration: none;
}
