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

:root {
    --primary: #6C3EF4;
    --primary-light: #8B5CF6;
    --primary-dark: #5b21b6;
    --secondary: #10B981;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --body-bg: #f4f7fe;
    
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(108, 62, 244, 0.1), 0 4px 6px -2px rgba(108, 62, 244, 0.05);
    
    --border-radius: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--body-bg);
    color: var(--dark);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Utilities */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 24px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.btn {
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    box-shadow: 0 4px 10px rgba(108, 62, 244, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: 0 6px 15px rgba(108, 62, 244, 0.4);
    transform: translateY(-2px);
}

/* Admin Sidebar */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sidebar-header h4 {
    margin: 0;
    font-weight: 700;
    color: var(--primary);
}

.sidebar-menu {
    padding: 16px 0;
    list-style: none;
    margin: 0;
}

.sidebar-menu li {
    padding: 4px 16px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--gray);
    border-radius: 8px;
    font-weight: 500;
}

.sidebar-menu a i {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 12px;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(108, 62, 244, 0.2);
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 24px 32px;
    transition: all 0.3s ease;
}

/* Header Navbar */
.topbar {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 16px 24px;
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Dashboard Stats */
.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.icon-purple { background: rgba(108, 62, 244, 0.1); color: var(--primary); }
.icon-red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.icon-green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.icon-orange { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.stat-details h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.stat-details p {
    color: var(--gray);
    margin: 0;
    font-size: 14px;
}

/* DataTables customization */
.table {
    vertical-align: middle;
}
.table thead th {
    background-color: #f8fafc;
    color: var(--gray);
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
    padding: 12px 16px;
}
.table tbody td {
    padding: 12px 16px;
    color: var(--dark);
    border-bottom: 1px solid #f1f5f9;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary) !important;
    color: white !important;
    border: none;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
}
