/* ===== Font ===== */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazir/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazir/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/vazir/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-radius: 16px;
    --box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
    --font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family);
    direction: rtl;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    min-height: 100vh;
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    margin: 5px;
    font-family: var(--font-family);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: white;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

.btn-back {
    background: #e9ecef;
    color: var(--dark-color);
}
.btn-back:hover {
    background: #dee2e6;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-warning {
    background: var(--warning-color);
    color: var(--dark-color);
}

/* ===== Login Page ===== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px 30px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    text-align: center;
}

.login-card h2 {
    color: #2b2d42;
    margin-bottom: 10px;
    font-size: 28px;
}

.login-card p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.login-card .form-group {
    text-align: right;
    margin-bottom: 25px;
}

.login-card label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #2b2d42;
}

.login-card input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: var(--font-family);
    transition: 0.3s;
}

.login-card input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.login-card .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    margin-top: 10px;
}

.error-msg {
    background: #ffe6e6;
    color: #cc0000;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* ===== Dashboard ===== */
.dashboard-page {
    background: #f5f7fb;
}

.dashboard-header {
    background: linear-gradient(135deg, #1a237e, #283593);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.store-logo h2 {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.info-item {
    background: rgba(255,255,255,0.15);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.points-badge {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    color: #000;
    font-weight: bold;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 16px;
}

.welcome-section {
    background: linear-gradient(135deg, #ffffff, #f8faff);
    border-radius: 24px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.welcome-section h1 {
    font-size: 32px;
    color: #1a237e;
    margin-bottom: 10px;
}

.welcome-section p {
    font-size: 18px;
    color: #555;
    margin-bottom: 15px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.menu-card {
    background: white;
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.05);
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(13, 110, 253, 0.2);
    border-color: rgba(13, 110, 253, 0.3);
}

.menu-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.menu-card h4 {
    font-size: 18px;
    color: #2c3e50;
    margin: 0;
}

.lottery-btn {
    text-align: center;
    margin-top: 30px;
}

.lottery-btn .btn-primary {
    padding: 15px 50px;
    font-size: 18px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}



/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .customer-info {
        flex-direction: column;
        width: 100%;
    }
    
    .info-item {
        width: 100%;
        justify-content: center;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .welcome-section h1 {
        font-size: 24px;
    }
    
    .login-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .store-logo h2 {
        font-size: 20px;
    }
}
