/* Basic reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: #f5f7fb;
    color: #222;
}

/* Top bar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a237e;
    color: #fff;
    padding: 1rem 2rem;
    margin-bottom: 1.5rem;
}

.topbar h1 {
    font-size: 1.3rem;
}

.user-badge {
    margin-right: 1rem;
}

/* Main content */
.content {
    max-width: 1100px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
}

/* Table styling */
.status-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.status-table thead {
    background: #e3e7ff;
}

.status-table th,
.status-table td {
    padding: 0.75rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

.status-table tbody tr:nth-child(even) {
    background: #fafbff;
}

.status-table a {
    color: #1a73e8;
    text-decoration: none;
}

.status-table a:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-info {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #0d47a1;
}

.alert-error {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #b71c1c;
}

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

.btn-logout {
    background: #ef5350;
    color: #fff;
}

.btn-logout:hover {
    background: #e53935;
}

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

.login-box {
    background: #fff;
    padding: 2rem 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 380px;
}

.login-box h1 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    text-align: center;
}

.login-box h2 {
    font-size: 1rem;
    margin-bottom: 1.2rem;
    text-align: center;
    color: #555;
}

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

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

.form-group input {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #cfd8dc;
    font-size: 0.9rem;
}

.form-group input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 1px rgba(26,115,232,0.1);
}

.login-box .btn {
    width: 100%;
    background: #1a73e8;
    color: #fff;
    margin-top: 0.3rem;
}

.login-box .btn:hover {
    background: #1558b0;
}

.login-hint {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #777;
    text-align: center;
}

/* Sorting arrow styles */
th {
    position: relative;
    user-select: none;
    padding-right: 20px;
}

th.asc::after {
    content: "▲";
    position: absolute;
    right: 5px;
    font-size: 0.7rem;
    color: #333;
}

th.desc::after {
    content: "▼";
    position: absolute;
    right: 5px;
    font-size: 0.7rem;
    color: #333;
}

th.sortable:hover {
    background: #d5dbff;
    cursor: pointer;
}