:root {
    --bg: #1e1f24;
    --panel: #2a2c33;
    --text: #f2f5ff;
    --muted: #a7adbd;
    --accent: #B6CC38;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Roboto, Arial;
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.brand {
    text-align: center;
    margin-bottom: 40px;
}

.brand-text {
    display: block;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
}

.brand-sub {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-form {
    background: var(--panel);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.login-form h2 {
    margin: 0 0 24px;
    font-size: 18px;
    color: white;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
}

.form-group input:focus {
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.4);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #1e1f24;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #cce04d;
}

/* Dashboard Styles */
.dashboard-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background: var(--panel);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-brand {
    font-weight: 900;
    font-size: 18px;
    color: white;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.content {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-header {
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 32px;
    margin: 0 0 10px;
}

.page-header p {
    color: var(--muted);
    font-size: 16px;
    margin: 0;
}

/* Stores Grid */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.store-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
}

.store-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.store-header h3 {
    margin: 0;
    font-size: 20px;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    font-family: monospace;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.badge-default {
    background: rgba(182, 204, 56, 0.2);
    color: var(--accent);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.store-branches {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    min-height: 50px;
}

.branch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.branch-row:last-child {
    border-bottom: none;
}

.branch-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.branch-phone {
    color: var(--muted);
    font-size: 12px;
}

.btn-sm {
    background: var(--accent);
    border: none;
    color: #1e1f24;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 12px;
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.5;
}

.btn-icon:hover {
    opacity: 1;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #2a2c33;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    margin-top: 24px;
}