/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
/* --- CSS Variables --- */
:root { --primary-color: #1a1a1a; --accent-color: #B89E40; --bg-color: #f4f7f6; --text-color: #333; --card-bg: #ffffff; --sidebar-bg: #1e1e1e; --sidebar-text: #e0e0e0; --sidebar-active: var(--accent-color); --shadow: 0 4px 15px rgba(0,0,0,0.08); --border-color: #e9ecef; }
/* --- General Styles --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', sans-serif; background-color: var(--bg-color); color: var(--text-color); font-size: 15px; }
.login-body { display: flex; justify-content: center; align-items: center; height: 100vh; padding: 1rem; }
.login-container { background-color: var(--card-bg); padding: 2.5rem 3rem; border-radius: 12px; box-shadow: var(--shadow); width: 100%; max-width: 420px; text-align: center; }
/* --- Main Layout (Desktop First) --- */
.main-wrapper { display: grid; grid-template-columns: 260px 1fr; }
.sidebar { grid-column: 1 / 2; width: 260px; background-color: var(--sidebar-bg); color: var(--sidebar-text); height: 100vh; position: fixed; left: 0; top: 0; padding-top: 1.5rem; display: flex; flex-direction: column; z-index: 1010; }
.sidebar .logo { color: var(--accent-color); font-size: 1.5rem; font-weight: 600; letter-spacing: 1px; text-decoration: none; text-align: center; display: block; margin-bottom: 2rem; }
.sidebar-menu { list-style: none; }
.sidebar-menu li a { display: flex; align-items: center; color: var(--sidebar-text); text-decoration: none; padding: 1rem 1.5rem; transition: background-color 0.3s, color 0.3s; }
.sidebar-menu li a i { margin-right: 1rem; font-size: 1.2rem; width: 20px; text-align: center; }
.sidebar-menu li a:hover, .sidebar-menu li.active a { background-color: var(--accent-color); color: var(--primary-color); }
.content-area { grid-column: 2 / 3; }
.header { background: var(--card-bg); padding: 1rem 2rem; display: flex; align-items: center; border-bottom: 1px solid var(--border-color); height: 70px; }
.header-left, .header-right { flex: 1; }
.header-center { flex: 2; text-align: center; }
.header-right { text-align: right; }
.header-center h1 { font-size: 1.5rem; font-weight: 600; margin: 0; }
.header .user-info a { text-decoration: none; color: #d9534f; font-weight: 500; display: inline-flex; align-items: center; gap: 0.5rem; }
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: #333; }
.main-content { padding: 2rem; }
/* --- Reusable Components --- */
.card { background: var(--card-bg); border-radius: 12px; box-shadow: var(--shadow); padding: 1.5rem; margin-bottom: 1.5rem; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.card-header h2 { font-size: 1.25rem; font-weight: 600; margin: 0; }
.table-responsive { overflow-x: auto; width: 100%; }
.table { width: 100%; border-collapse: collapse; min-width: 600px; }
.table th, .table td { text-align: left; padding: 1rem; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.table th { font-weight: 600; font-size: 0.9rem; text-transform: uppercase; color: #6c757d; }
.table img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.btn { padding: 0.6rem 1.2rem; border: none; border-radius: 8px; cursor: pointer; text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; transition: opacity 0.3s ease; }
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-info { background-color: #5bc0de; color: white; }
.btn-danger { background-color: #d9534f; color: white; }
/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .main-wrapper { grid-template-columns: 1fr; }
    .content-area { grid-column: 1 / 2; }
    .sidebar { transform: translateX(-100%); transition: transform 0.3s ease-in-out; }
    body.sidebar-mobile-open .sidebar { transform: translateX(0); box-shadow: 0 0 20px rgba(0,0,0,0.2); }
    .mobile-menu-toggle { display: block; }
}