<?php include '../includes/db.php'; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Dashboard</title>

<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css" rel="stylesheet">

<style>
body {
    background: #020617;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
}

/* Sidebar */
.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    background: linear-gradient(180deg, #020617, #020617);
    border-right: 1px solid #1e293b;
    padding: 25px 15px;
}

.sidebar h5 {
    margin-bottom: 30px;
    font-weight: 600;
}

.sidebar .nav-link {
    color: #94a3b8;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar .nav-link:hover {
    background: #1e293b;
    color: #fff;
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}

/* Navbar */
.navbar-custom {
    margin-left: 250px;
    background: rgba(2,6,23,0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1e293b;
}

/* Main */
.main {
    margin-left: 250px;
    padding: 30px;
}

/* Cards */
.card {
    background: rgba(15,23,42,0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 20px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* Stats icons */
.stat-icon {
    font-size: 28px;
    padding: 12px;
    border-radius: 12px;
    display: inline-block;
}

/* Colors */
.bg-blue { background: rgba(59,130,246,0.2); color:#3b82f6; }
.bg-green { background: rgba(34,197,94,0.2); color:#22c55e; }
.bg-yellow { background: rgba(234,179,8,0.2); color:#eab308; }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg,#3b82f6,#2563eb);
    border: none;
    border-radius: 10px;
}
/* Force all text white */
body, 
h1, h2, h3, h4, h5, h6, 
p, span, small, label {
    color: #ffffff !important;
}

/* Fix Bootstrap muted/secondary text */
.text-secondary,
.text-muted {
    color: #cbd5f5 !important;
}

/* Sidebar links */
.sidebar .nav-link {
    color: #e2e8f0 !important;
}

/* Fix input fields */
.form-control {
    background-color: #020617 !important; /* dark background */
    color: #ffffff !important; /* white text */
    border: 1px solid #1e293b !important;
}

/* Placeholder */
.form-control::placeholder {
    color: #94a3b8 !important;
}

/* Focus state */
.form-control:focus {
    background-color: #020617 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.3);
}
</style>
</head>

<body>