:root {
    --primary: #2563eb;
    --background: #f5f7fb;
    --surface: #ffffff;
    --border: #dbe3ec;
    --text: #1f2937;
    --muted: #6b7280;
    --success: #16a34a;
    --danger: #dc2626;
}

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:var(--background);
    color:var(--text);
}

.container{
    max-width:1100px;
    margin:40px auto;
    padding:20px;
}

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.cards{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    margin:25px 0;
}

.card{
    background:white;
    border:1px solid var(--border);
    border-radius:10px;
    padding:25px;
    text-align:center;
}

.card h3{
    margin:0;
    color:var(--muted);
    font-size:15px;
}

.card p{
    margin-top:15px;
    font-size:34px;
    font-weight:bold;
}

.search{
    display:flex;
    gap:15px;
    margin:20px 0;
}

.search input{
    flex:1;
    padding:10px 14px;
    border:1px solid var(--border);
    border-radius:8px;
}

.search button{
    background:var(--primary);
    color:white;
    border:none;
    border-radius:8px;
    padding:10px 18px;
    cursor:pointer;
}

table{
    width:100%;
    border-collapse:collapse;
    background:white;
    border-radius:10px;
    overflow:hidden;
}

th{
    background:#eff6ff;
    text-align:left;
    padding:14px;
}

td{
    padding:14px;
    border-top:1px solid var(--border);
}

tr:hover{
    background:#f8fafc;
}

.badge{
    display:inline-block;
    padding:4px 10px;
    border-radius:30px;
    font-size:12px;
    font-weight:bold;
}

.badge-success{
    background:#dcfce7;
    color:#166534;
}

.badge-danger{
    background:#fee2e2;
    color:#b91c1c;
}

/* Login */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    margin: 0 0 8px;
    font-size: 26px;
}

.login-header p {
    margin: 0;
    color: var(--muted);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    background: white;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.btn {
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-full {
    width: 100%;
}

.toolbar {
    width: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.toolbar-inner {
    width: 100%;
    max-width: 1100px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
}

.toolbar-brand {
    font-size: 18px;
    font-weight: 700;
}

.toolbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.toolbar-user-name {
    font-size: 14px;
    color: var(--muted);
}

.btn-logout {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-logout:hover {
    background: var(--background);
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    margin-top: 25px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
}

.pagination-link:hover {
    background: var(--background);
}

.pagination-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

@media (max-width:768px){
    .cards{
        grid-template-columns:1fr;
    }

    .search{
        flex-direction:column;
    }

}