/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #2563eb;       /* Royal Blue */
    --secondary: #1e293b;     /* Dark Slate */
    --accent: #f59e0b;        /* Amber/Orange */
    --success: #10b981;       /* Green */
    --danger: #ef4444;        /* Red */
    --light: #f3f4f6;         /* Light Gray Background */
    --white: #ffffff;
    --sidebar-width: 260px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    list-style: none;
}

body {
    background: var(--light);
    color: var(--secondary);
    font-size: 15px;
}

/* --- Login / Auth Pages --- */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    padding: 20px;
}

.auth-box {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-box img {
    height: 50px;
    margin-bottom: 20px;
}

.auth-box h2 {
    margin-bottom: 20px;
    color: var(--secondary);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    transition: 0.3s;
    text-align: center;
}

.btn:hover {
    background: #1d4ed8;
}

.btn-danger { background: var(--danger); }
.btn-success { background: var(--success); }
.btn-sm { padding: 8px 16px; width: auto; font-size: 13px; }

/* --- Dashboard Layout --- */
.wrapper {
    display: flex;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--secondary);
    color: var(--white);
    min-height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    transition: 0.3s;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h3 {
    font-size: 20px;
    letter-spacing: 1px;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu a {
    display: block;
    padding: 15px 25px;
    color: #94a3b8;
    font-weight: 500;
    transition: 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: rgba(255,255,255,0.05);
    color: var(--white);
    border-left-color: var(--primary);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding: 30px;
    transition: 0.3s;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: var(--white);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.card h3 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 18px;
}

.card .value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

/* Tables */
.table-container {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow-x: auto;
}

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

table th, table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

table th {
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
}

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active { background: #dcfce7; color: #166534; }
.badge-suspended { background: #fee2e2; color: #991b1b; }
.badge-pending { background: #fef3c7; color: #92400e; }

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid;
}
.alert-success { background: #dcfce7; color: #166534; border-color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; border-color: #991b1b; }

/* Mobile Toggle */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}