﻿/* ===== VARIABLES ===== */
:root {
    /* Primary Colors - Lottery Theme */
    --primary: #2c5aa0;
    --primary-dark: #1e3d72;
    --primary-light: #4a7bc8;
    --secondary: #f39c12;
    --secondary-dark: #e67e22;
    --accent: #e74c3c;
    
    /* Neutral Colors */
    --dark: #2c3e50;
    --darker: #1a2530;
    --light: #ecf0f1;
    --lighter: #f8f9fa;
    --gray: #95a5a6;
    --gray-dark: #7f8c8d;
    
    /* Status Colors */
    --success: #27ae60;
    --warning: #f1c40f;
    --danger: #e74c3c;
    --info: #3498db;
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 5px 10px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15), 0 10px 10px rgba(0,0,0,0.05);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
}

/* ===== LANDING PAGE STYLES ===== */
.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.landing-header {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-2xl);
    box-shadow: var(--shadow-lg);
}

.landing-header h1 {
    font-size: var(--font-size-3xl);
    color: white;
    font-weight: 700;
}

.landing-header h1 span {
    color: var(--secondary);
}

.tagline {
    color: var(--light);
    font-size: var(--font-size-lg);
    opacity: 0.9;
}

.landing-content {
    flex: 1;
    padding: var(--space-2xl) var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.feature-card h3 {
    color: var(--dark);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-xl);
}

.feature-card p {
    color: var(--gray-dark);
    font-size: var(--font-size-sm);
}

.auth-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(10px);
    max-width: 500px;
    margin: 0 auto;
}

.role-selector {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.role-selector h2 {
    color: var(--dark);
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-2xl);
}

.role-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.role-btn {
    flex: 1;
    min-width: 120px;
    padding: var(--space-md);
    border: 2px solid var(--light);
    background: white;
    color: var(--gray-dark);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.role-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.role-btn:hover:not(.active) {
    border-color: var(--primary-light);
    color: var(--primary);
}

.login-form .form-group {
    margin-bottom: var(--space-lg);
    position: relative;
}

.login-form label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: var(--dark);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.login-form label i {
    color: var(--primary);
    width: 16px;
}

.login-form input {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--light);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: var(--transition-fast);
    background: white;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    font-size: var(--font-size-sm);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.remember-me input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.remember-me input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.remember-me input:checked + .checkmark::after {
    content: 'âœ“';
    color: white;
    font-size: var(--font-size-xs);
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: var(--space-md);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.demo-credentials {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--lighter);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--secondary);
}

.demo-credentials h4 {
    color: var(--dark);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-sm);
    text-align: center;
}

.credential-tabs {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.credential-tab {
    padding: var(--space-sm);
    background: white;
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    text-align: center;
    display: none;
}

.credential-tab.active {
    display: block;
}

.credential-tab strong {
    color: var(--primary);
}

.landing-footer {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: rgba(0, 0, 0, 0.2);
    color: white;
}

.country-flags {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.flag {
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    font-weight: 600;
}

/* ===== OTP & RESET PASSWORD STYLES ===== */
.otp-container,
.reset-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.otp-header,
.reset-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    color: white;
}

.otp-content,
.reset-content {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 450px;
}

.otp-form .form-group,
.reset-form .form-group {
    margin-bottom: var(--space-lg);
}

.verify-btn,
.reset-btn {
    width: 100%;
    padding: var(--space-md);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.verify-btn:hover,
.reset-btn:hover {
    background: var(--primary-dark);
}

.otp-actions,
.reset-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-lg);
    font-size: var(--font-size-sm);
}

.resend-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: var(--transition-fast);
}

.resend-btn:hover {
    color: var(--primary-dark);
}

.back-login {
    color: var(--gray-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: var(--transition-fast);
}

.back-login:hover {
    color: var(--dark);
}

.otp-info {
    margin-top: var(--space-xl);
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--lighter);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--info);
}

.info-card i {
    color: var(--info);
    font-size: var(--font-size-lg);
    margin-top: 2px;
}

.info-card h4 {
    color: var(--dark);
    margin-bottom: var(--space-xs);
}

.info-card p {
    color: var(--gray-dark);
    font-size: var(--font-size-sm);
}

/* Reset Password Steps */
.reset-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.reset-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--light);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    border: 3px solid white;
    transition: var(--transition-normal);
}

.step.active .step-number {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.step span {
    font-size: var(--font-size-xs);
    color: var(--gray);
    text-align: center;
    font-weight: 600;
}

.step.active span {
    color: var(--primary);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.password-strength {
    margin-top: var(--space-sm);
}

.strength-bar {
    height: 4px;
    background: var(--light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.strength-bar::before {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    background: var(--danger);
    transition: var(--transition-normal);
}

/* Password strength indicators */
input[type="password"]:valid ~ .password-strength .strength-bar::before {
    background: var(--success);
    width: 100%;
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.text-center {
    text-align: center;
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-in {
    animation: slideIn 0.3s ease;
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .landing-content {
        padding: var(--space-lg) var(--space-sm);
    }
    
    .auth-section {
        padding: var(--space-xl);
        margin: 0 var(--space-sm);
    }
    
    .role-buttons {
        flex-direction: column;
    }
    
    .role-btn {
        min-width: auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .otp-content,
    .reset-content {
        padding: var(--space-xl);
        margin: 0 var(--space-sm);
    }
    
    .reset-steps::before {
        left: 5%;
        right: 5%;
    }
}

@media (max-width: 480px) {
    .landing-header h1 {
        font-size: var(--font-size-2xl);
    }
    
    .logo-container {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .auth-section {
        padding: var(--space-lg);
    }
    
    .form-options {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }
    
    .country-flags {
        flex-direction: column;
        gap: var(--space-sm);
    }
}


/* Base Styles and Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #17a2b8;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --bg-color: #f8f9fa;
    --sidebar-width: 250px;
    --header-height: 60px;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Layout */
.main-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 20px;
    transition: var(--transition);
}

/* Header */
.header {
    background: white;
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    transition: var(--transition);
}

.header-left .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--primary-color);
    color: white;
    transition: var(--transition);
    z-index: 1001;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left: 4px solid var(--secondary-color);
}

.sidebar-menu i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Page Header */
.page-header {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breadcrumb .active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 20px;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    border-left: 4px solid var(--secondary-color);
}

.stat-card.revenue { border-left-color: var(--success-color); }
.stat-card.tickets { border-left-color: var(--info-color); }
.stat-card.agents { border-left-color: var(--warning-color); }
.stat-card.payouts { border-left-color: var(--danger-color); }

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.stat-card.revenue .stat-icon { background: rgba(39, 174, 96, 0.1); color: var(--success-color); }
.stat-card.tickets .stat-icon { background: rgba(23, 162, 184, 0.1); color: var(--info-color); }
.stat-card.agents .stat-icon { background: rgba(243, 156, 18, 0.1); color: var(--warning-color); }
.stat-card.payouts .stat-icon { background: rgba(231, 76, 60, 0.1); color: var(--danger-color); }

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.stat-change {
    font-size: 0.8rem;
    font-weight: 600;
}

.stat-change.positive { color: var(--success-color); }
.stat-change.negative { color: var(--danger-color); }

/* Dashboard Content */
.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.chart-container,
.activities-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.chart-placeholder {
    height: 300px;
    padding: 20px;
}

/* Activities List */
.activities-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--secondary-color);
}

.activity-details {
    flex: 1;
}

.activity-text {
    margin-bottom: 5px;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Tables */
.responsive-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active,
.status-badge.completed {
    background: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
}

.status-badge.pending,
.status-badge.in_progress {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
}

.status-badge.inactive,
.status-badge.cancelled {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
}

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary { background: rgba(52, 152, 219, 0.1); color: var(--secondary-color); }
.badge-secondary { background: rgba(108, 117, 125, 0.1); color: var(--text-muted); }
.badge-success { background: rgba(39, 174, 96, 0.1); color: var(--success-color); }
.badge-warning { background: rgba(243, 156, 18, 0.1); color: var(--warning-color); }
.badge-danger { background: rgba(231, 76, 60, 0.1); color: var(--danger-color); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background: var(--light-color);
}

.btn-outline.btn-danger {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.btn-outline.btn-danger:hover {
    background: var(--danger-color);
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Search Box */
.search-box {
    position: relative;
    display: inline-block;
}

.search-box input {
    padding-left: 35px;
    width: 250px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.close:hover {
    color: var(--text-color);
}

/* Tabs */
.tabs-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--light-color);
}

.tab-btn {
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
    background: white;
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

/* Draw Cards */
.draws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.draw-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    border-left: 4px solid var(--secondary-color);
}

.draw-card.in_progress { border-left-color: var(--warning-color); }
.draw-card.completed { border-left-color: var(--success-color); }
.draw-card.cancelled { border-left-color: var(--danger-color); }

.draw-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.draw-country {
    display: flex;
    align-items: center;
    gap: 10px;
}

.country-flag {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--light-color);
    color: var(--dark-color);
}

.draw-type {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
}

.draw-body {
    padding: 15px;
}

.draw-time {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.draw-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.stat {
    text-align: center;
}

.stat .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stat .value {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
}

.draw-footer {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.draw-actions {
    display: flex;
    gap: 5px;
}

/* Pending Agents Grid */
.pending-agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.pending-agent-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.agent-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.agent-info h4 {
    margin-bottom: 5px;
}

.agent-email,
.agent-phone {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.registration-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.approval-actions {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-details strong {
    margin-bottom: 2px;
}

.user-details span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Alert Card */
.alert-card {
    border-left: 4px solid var(--warning-color);
}

/* Winning Numbers */
.winning-numbers {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.winning-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--success-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition);
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--success-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Utility Classes */
.text-muted { color: var(--text-muted); }
.full-width { grid-column: 1 / -1; }


/* Footer Styles */
.admin-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    margin-top: auto;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3498db;
}

.footer-description {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #bdc3c7;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.system-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-item i {
    color: #3498db;
    width: 1rem;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.85rem;
    color: #95a5a6;
}

.info-value {
    font-weight: 600;
    color: #ecf0f1;
}

.info-value.online {
    color: #2ecc71;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright p {
    margin: 0;
    color: #bdc3c7;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #3498db;
}

/* Mobile Action Buttons */
.mobile-action-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
}

.mobile-action-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #3498db;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.mobile-action-btn:hover {
    background: #2980b9;
    transform: scale(1.1);
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.spinner-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid #3498db;
}

.toast-success {
    border-left-color: #2ecc71;
}

.toast-error {
    border-left-color: #e74c3c;
}

.toast-warning {
    border-left-color: #f39c12;
}

.toast-info {
    border-left-color: #3498db;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-content i {
    font-size: 1.2rem;
}

.toast-success .toast-content i { color: #2ecc71; }
.toast-error .toast-content i { color: #e74c3c; }
.toast-warning .toast-content i { color: #f39c12; }
.toast-info .toast-content i { color: #3498db; }

.toast-close {
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.toast-close:hover {
    background: #f8f9fa;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Dark Mode Support */
.dark-mode .admin-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.dark-mode .toast {
    background: #2d2d2d;
    color: #ecf0f1;
}

.dark-mode .spinner-content {
    background: #2d2d2d;
    color: #ecf0f1;
}


/* Agent Dashboard Specific Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid #4CAF50;
}

.stat-card:nth-child(2) { border-left-color: #2196F3; }
.stat-card:nth-child(3) { border-left-color: #FF9800; }
.stat-card:nth-child(4) { border-left-color: #F44336; }

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-card:nth-child(2) .stat-icon { background: #2196F3; }
.stat-card:nth-child(3) .stat-icon { background: #FF9800; }
.stat-card:nth-child(4) .stat-icon { background: #F44336; }

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: #2c3e50;
}

.stat-info p {
    margin: 0.25rem 0 0 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.quick-actions {
    margin-bottom: 2rem;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    text-decoration: none;
    color: #2c3e50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-5px);
    border-color: #4CAF50;
    color: #4CAF50;
}

.action-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.action-card span {
    font-weight: 600;
    font-size: 1.1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    color: #2c3e50;
}

.view-all {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.card-body {
    padding: 1.5rem;
}

/* Ticket Selling Styles */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.number-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    background: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.number-btn:hover {
    border-color: #4CAF50;
    background: #f8fff8;
}

.number-btn.selected {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.selected-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 50px;
    padding: 1rem;
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.selected-number {
    background: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.placeholder {
    color: #95a5a6;
    font-style: italic;
}

.stock-grid {
    display: grid;
    gap: 1rem;
}

.stock-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: #f8f9fa;
    border-left: 4px solid #4CAF50;
}

.stock-item.low {
    border-left-color: #F44336;
    background: #fff5f5;
}

.stock-item.critical {
    border-left-color: #d32f2f;
    background: #ffebee;
}

.stock-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stock-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #ecf0f1;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .numbers-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .numbers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
}


/* Base Styles and Variables */
:root {
    --primary-color: #2c5aa0;
    --primary-dark: #1e3d72;
    --primary-light: #4a7bce;
    --secondary-color: #28a745;
    --accent-color: #ff6b35;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f7fa;
}

/* Layout */
.main-content {
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
    transition: var(--transition);
}

/* Header */
.header {
    background: white;
    box-shadow: var(--shadow);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-brand h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: white;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    box-shadow: var(--shadow);
    z-index: 999;
    transition: var(--transition);
}

.sidebar-nav {
    padding: 2rem 0;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    background: var(--primary-color);
    color: white;
}

/* Cards */
.dashboard-card, .ticket-card, .result-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-content {
    padding: 1.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--gray-color);
    color: white;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Betting Interface */
.betting-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.number-btn {
    aspect-ratio: 1;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
}

.number-btn:hover {
    border-color: var(--primary-color);
}

.number-btn.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.selected-numbers {
    background: var(--light-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    min-height: 60px;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-won {
    background: #d1ecf1;
    color: #0c5460;
}

.status-lost {
    background: #f8d7da;
    color: #721c24;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-link {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-color);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Filters */
.filters-section {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Quick Actions */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.action-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }






/* Flash Messages */
.flash-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.flash-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Password Input Container */
.password-input-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

/* Demo Credentials Styling */
.demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.credential-role {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 10px;
}

.credential-details {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.credential-item {
    margin: 5px 0;
}

.credential-access {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #666;
    margin-top: 8px;
}

/* Security Notice */
.security-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
}

.security-content {
    display: flex;
    align-items: center;
    gap: 12px;
}