body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; padding: 0; }
.header { background: #0f6cbd; color: white; padding: 16px; }
.container { max-width: 980px; margin: 0 auto; padding: 24px; }
.card { background: #fff; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,0.08); padding: 20px; margin-bottom: 20px; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 8px; border: none; text-decoration: none; cursor: pointer; }
.btn-primary { background: #0f6cbd; color: #fff; }
.btn-secondary { background: #f3f2f1; color: #222; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px; border-bottom: 1px solid #eee; text-align: left; }
.badge { background: #e6f0fb; color: #0f6cbd; padding: 4px 8px; border-radius: 9999px; font-size: 12px; }
label { display:block; margin: 10px 0 4px; }
input[type=file], input[type=text], input[type=checkbox] { margin-bottom: 12px; }
.footer { color: #666; text-align: center; font-size: 12px; padding: 16px; }
#bar {
    background: #0f6cbd;
}
/* Header row layout + home icon styling */
.header-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-link {
    display: inline-flex;
    padding: 4px;
    border-radius: 8px;
}

    .home-link:hover {
        background: rgba(255,255,255,0.15);
    }

    /* Force the icon to a small size */
    .home-link .home-icon {
        width: 18px;
        height: 18px;
        fill: #fff;
        display: block;
    }

/* Optional: bump slightly on larger screens */
@media (min-width: 992px) {
    .home-link .home-icon {
        width: 20px;
        height: 20px;
    }
}

.brand {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

    .brand:hover {
        text-decoration: underline;
    }

.spacer {
    flex: 1;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    margin-left: 12px;
}

    .nav-link:hover {
        text-decoration: underline;
    }
.logout-form {
    display: inline;
    margin-left: 12px;
}
#toast-root {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    min-width: 220px;
    max-width: 420px;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .2s ease, transform .2s ease;
    color: #0d0d0d;
    background: #f2f2f2;
    border-left: 4px solid #888;
    font-size: 14px;
}

    .toast.show {
        opacity: 1;
        transform: translateY(0);
    }

    .toast.success {
        background: #e8f6ee;
        border-left-color: #2bb673;
    }

    .toast.error {
        background: #fdecea;
        border-left-color: #d93025;
    }

    .toast.info {
        background: #eef3ff;
        border-left-color: #4f6bed;
    }
