:root {
    --primary: #0f0f5e;
    --secondary: #ffd700;
    --accent: #e6b800;
    --bg: #f8f9fa;
    --text: #333;
    --light: #fff;
    --danger: #dc3545;
    --success: #28a745;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { background: var(--bg); color: var(--text); min-height: 100vh; }

/* Navbar */
.navbar {
    background: var(--primary);
    color: var(--light);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar .brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary);
}

.navbar nav a {
    color: var(--light);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar nav a:hover { color: var(--secondary); }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1a1a8c 100%);
    color: var(--light);
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23ffd700" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: 100px;
    opacity: 0.3;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; position: relative; z-index: 1; }
.hero p { font-size: 1.3rem; margin-bottom: 2rem; position: relative; z-index: 1; color: #ddd; }
.hero .btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: var(--secondary);
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative; z-index: 1;
}
.hero .btn:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--light);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s;
    border-top: 4px solid var(--secondary);
}

.card:hover { transform: translateY(-5px); }
.card h3 { color: var(--primary); margin-bottom: 0.5rem; }
.card p { color: #666; font-size: 0.95rem; }

/* Forms */
.form-container {
    max-width: 500px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--light);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.form-container h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 600; color: var(--primary); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}

.btn:hover { background: #0a0a4a; }
.btn-success { background: var(--success); }
.btn-success:hover { background: #218838; }
.btn-warning { background: var(--accent); color: var(--primary); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #c82333; }

/* Table */
.table-container {
    overflow-x: auto;
    margin: 2rem;
    background: var(--light);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: var(--primary);
    color: var(--light);
    font-weight: 600;
}

tr:hover { background: #f8f9fa; }

/* Alert */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 2rem;
    font-weight: 500;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* Wallet card */
.wallet-card {
    background: linear-gradient(135deg, var(--primary) 0%, #1a1a8c 100%);
    color: var(--light);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    margin: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -30%;
    width: 300px; height: 300px;
    background: rgba(255,215,0,0.1);
    border-radius: 50%;
}

.wallet-card h2 { font-size: 2rem; margin-bottom: 0.5rem; position: relative; z-index: 1; }
.wallet-card .balance { font-size: 3rem; font-weight: bold; color: var(--secondary); position: relative; z-index: 1; }

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border-left: 4px solid var(--secondary);
}

.stat-card h4 { color: #666; font-size: 0.9rem; margin-bottom: 0.5rem; }
.stat-card .value { font-size: 1.8rem; font-weight: bold; color: var(--primary); }

/* Badge */
.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}
.badge-pending { background: #fff3cd; color: #856404; }
.badge-approved { background: #d4edda; color: #155724; }
.badge-rejected { background: #f8d7da; color: #721c24; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .navbar { flex-direction: column; gap: 0.5rem; }
    .navbar nav a { margin: 0 0.5rem; }
    .card-grid { grid-template-columns: 1fr; }
}
