* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0f1117;
    --surface: #1a1d27;
    --border: #2a2d3a;
    --text: #e4e4e7;
    --muted: #71717a;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --danger: #ef4444;
    --success: #22c55e;
    --radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

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

.login-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.login-form h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.login-form .subtitle {
    color: var(--muted);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

/* Forms */
label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 4px;
    margin-top: 16px;
}

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s;
}

input:focus {
    border-color: var(--accent);
}

button {
    display: inline-block;
    width: 100%;
    margin-top: 24px;
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s;
}

button:hover {
    background: var(--accent-hover);
}

/* Alerts */
.alert {
    padding: 10px 14px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Topbar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.brand {
    font-weight: 600;
    font-size: 1.05rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.user {
    color: var(--muted);
    font-size: 0.85rem;
}

.btn-logout {
    color: var(--danger) !important;
}

/* Container */
.container {
    max-width: 800px;
    margin: 32px auto;
    padding: 0 24px;
}

.container h2 {
    margin-bottom: 24px;
    font-size: 1.3rem;
}

/* Card placeholder */
.card-placeholder {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: var(--muted);
}

/* Settings form */
.settings-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.settings-form h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.settings-form button {
    max-width: 200px;
}

/* Shop list */
.shop-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    gap: 16px;
}

.shop-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-name {
    font-weight: 600;
    font-size: 1rem;
}

.shop-client {
    color: var(--muted);
    font-size: 0.8rem;
}

.badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-hover);
    border: 1px solid rgba(99, 102, 241, 0.3);
    vertical-align: middle;
}

.inline-form {
    margin: 0;
    flex-shrink: 0;
}

.inline-form button {
    width: auto;
    margin: 0;
    padding: 8px 16px;
}

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

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.15);
}

.link {
    color: var(--accent-hover);
    text-decoration: none;
}

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