/* public/assets/css/style.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: #f2f2f7;
    color: #222;
}

/* logo */
.logo {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
}
.logo:hover {
    text-decoration: underline;
}

/* Navbar */
.navbar {
    width: 100%;
    padding: 10px 15px;
    background: #1e88e5;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    font-weight: 600;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
    font-size: 14px;
}

.navbar a:hover {
    text-decoration: underline;
}

.nav-user {
    margin-right: 8px;
    font-size: 13px;
    opacity: 0.9;
}

/* Container chính */
.page-container {
    padding: 20px 10px;
    display: flex;
    justify-content: center;
}

/* Card form */
.card {
    background: #fff;
    max-width: 400px; /* vừa mobile, gọn PC */
    width: 100%;
    padding: 20px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.card h1 {
    font-size: 22px;
    margin-bottom: 10px;
    text-align: center;
}

.card p {
    font-size: 14px;
    text-align: center;
    margin-bottom: 15px;
    color: #555;
}

/* Home box */
.home-box {
    background: #fff;
    max-width: 600px;
    width: 100%;
    padding: 20px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.home-box h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Form */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.form-group input {
    width: 100%;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #1e88e5;
    box-shadow: 0 0 0 2px rgba(30,136,229,0.2);
}

/* Button */
.btn {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: #1e88e5;
    border: none;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    margin-top: 5px;
}

.btn:hover {
    background: #1565c0;
}

/* Text helper */
.text-center {
    text-align: center;
}

.text-small {
    font-size: 13px;
    margin-top: 10px;
}

/* Alert */
.alert {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 10px;
}

.alert.error {
    background: #ffebee;
    color: #b71c1c;
}

.alert.success {
    background: #e8f5e9;
    color: #1b5e20;
}

/* Responsive cho màn nhỏ */
@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ============================
   User Menu (3-dot dropdown)
   ============================ */
.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

/* Email hiển thị */
.user-email {
    font-size: 14px;
    color: #fff;
    opacity: 0.95;
}

/* Badge admin */
.badge-admin {
    background: #ffeb3b;
    color: #333;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 6px;
}

/* Ẩn checkbox toggle */
.menu-toggle {
    display: none;
}

/* Nút 3 chấm */
.menu-button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-button:hover {
    background: rgba(255,255,255,0.25);
}

.menu-button span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
}

/* Dropdown menu */
.menu-dropdown {
    position: absolute;
    right: 0;
    top: 120%;
    background: #fff;
    border-radius: 10px;
    min-width: 170px;
    padding: 6px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 999;
}

/* Mục trong menu */
.menu-dropdown a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    margin-left: 0; /* không ăn margin-left của .navbar a */
}

.menu-dropdown a:hover {
    background: #f2f2f7;
}

/* Khi checkbox được bật -> mở menu */
.menu-toggle:checked ~ .menu-dropdown {
    display: block;
}

/* Mobile fix: căn lại menu */
@media (max-width: 480px) {
    .menu-dropdown {
        right: 10px;
    }
}
