@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --accent: #c4f80b;
    --bg: #0a0d10;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --text: #eef2f0;
    --text-dim: #9aa5a0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    position: relative;
}

.bg-decor {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1.6px, transparent 1.6px);
    background-size: 26px 26px;
}

.glass {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

a { color: inherit; text-decoration: none; }

.btn-accent, .btn-ghost, .btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-accent {
    background: var(--accent);
    color: #0a0d10;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(196, 248, 11, 0.25);
}

.input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
}
.input:focus {
    outline: none;
    border-color: var(--accent);
}
.input::placeholder { color: var(--text-dim); }

.password-wrap { position: relative; }
.password-wrap .input { padding-right: 44px; }
.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.password-toggle:hover { color: var(--accent); }

.label {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 6px;
    display: block;
}

/* ---- Login page ---- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-header { text-align: center; margin-bottom: 28px; }
.login-header-logo { height: 60px; width: auto; }
.login-header-sub {
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    margin-top: 10px;
}
.login-card {
    width: 100%;
    max-width: 380px;
    padding: 32px;
}
.login-footer {
    color: var(--text-dim);
    font-size: 12px;
    margin-top: 22px;
    text-align: center;
}
.label-caps { text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; font-weight: 600; }
.login-card .input {
    background: #eef2f9;
    color: #1a1a1a;
    border: none;
}
.login-card .input::placeholder { color: #8a93a6; }
.field { margin-bottom: 16px; text-align: left; }
.char-count { font-size: 11px; color: var(--text-dim); margin-top: 4px; text-align: right; }
.hint { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.img-preview {
    display: none;
    margin-top: 8px;
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    padding: 4px;
}
.error-box {
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid rgba(255, 80, 80, 0.3);
    color: #ff8a8a;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 18px;
    text-align: left;
}

/* ---- Dashboard ---- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    border-bottom: 1px solid var(--border);
}
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.topbar-brand-badge {
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.topbar-brand-icon {
    width: 20px; height: 20px;
    object-fit: contain;
    filter: brightness(0);
}
.topbar-title { font-weight: 700; font-size: 17px; }
.topbar-sub { font-size: 12px; color: var(--text-dim); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.btn-ghost {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
}

.btn-danger {
    background: transparent;
    color: #ff5c5c;
    border: 1px solid rgba(255, 92, 92, 0.4);
    transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-danger:hover {
    background: rgba(255, 92, 92, 0.12);
    border-color: #ff5c5c;
}

.container { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 20px;
}
.menu-card {
    padding: 26px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.menu-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.menu-card-icon { font-size: 26px; }
.menu-card-label { font-size: 13px; font-weight: 600; letter-spacing: 0.03em; }

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 32px 0 4px;
}
