/* assets/css/admin.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #007bff;
    --dark: #2c3e50;
    --light-bg: #f4f6f9;
    --border: #e0e0e0;
    --text: #333;
    --text-muted: #6c757d;
    --sidebar-width: 250px;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text);
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: #fff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.sidebar-header h3 {
    margin: 0;
    color: var(--primary);
}

.sidebar-nav {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.sidebar-nav li a {
    display: block;
    padding: 12px 20px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav li a i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
    color: var(--text-muted);
}

.sidebar-nav li a:hover, .sidebar-nav li a.active {
    background-color: rgba(0, 123, 255, 0.05);
    color: var(--primary);
    border-left-color: var(--primary);
}
.sidebar-nav li a:hover i, .sidebar-nav li a.active i {
    color: var(--primary);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.topbar h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.content-area {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}
.btn:hover { background: #0056b3; }

.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: #f8f9fa; color: var(--text); }
.btn-danger { background: #dc3545; color: white; }
.btn-danger:hover { background: #c82333; }

/* Dashboard specifics */
.dashboard-header { margin-bottom: 30px; }
.dashboard-header h1 { margin: 0 0 5px 0; font-size: 1.5rem; }
.dashboard-header p { margin: 0; color: var(--text-muted); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    border: 1px solid var(--border);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
}

.stat-details h3 { margin: 0 0 5px 0; font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.stat-details .stat-number { font-size: 1.8rem; font-weight: 700; color: var(--text); }

/* Table basic */
.table-responsive { overflow-x: auto; background: #fff; border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border); }
table th { background: #f8f9fa; font-weight: 600; font-size: 0.9rem; color: var(--text-muted); }
table tbody tr:last-child td { border-bottom: none; }
table tbody tr:hover { background: #f8f9fa; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; }
.form-control { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 6px; box-sizing: border-box; font-family: inherit; }
.form-control:focus { outline: none; border-color: var(--primary); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* Alerts */
.alert { padding: 15px; border-radius: 6px; margin-bottom: 20px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.recent-list { list-style: none; padding: 0; margin: 0; }
.recent-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.recent-list li:last-child { border-bottom: none; }
.recent-list .title { font-weight: 500; }
.recent-list .date { color: var(--text-muted); font-size: 0.9rem; }
.card { background: #fff; border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.card-header { padding: 15px 20px; border-bottom: 1px solid var(--border); background: #f8f9fa; border-top-left-radius: 10px; border-top-right-radius: 10px; }
.card-header h3 { margin: 0; font-size: 1rem; }
.card-body { padding: 20px; }
