@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@700;900&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary: #C4956A; /* Brand Tan */
    --primary-dark: #A67B5B;
    --primary-light: #E8D5C4;
    --bg-dark: #0F111A;
    --card-bg: rgba(255, 255, 255, 0.05);
    --sidebar-bg: rgba(255, 255, 255, 0.03);
    --text-main: #F1F1F1;
    --text-dim: #A0A0A0;
    --border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

/* Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
aside.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 3rem;
    padding-left: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

nav.nav-menu {
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--text-dim);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
    background: rgba(255, 140, 66, 0.1);
    color: var(--primary);
}

.nav-item i {
    font-size: 1.2rem;
}

/* Main Content */
main.main-content {
    flex-grow: 1;
    margin-left: 260px;
    padding: 2rem 3rem;
}

header.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.header-left h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.header-left p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.search-bar {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 300px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    width: 100%;
}

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

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), #FFB17A);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Cards & Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    padding: 1.5rem;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.stat-info .value {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-trend {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.trend-up { color: #4ade80; }
.trend-down { color: #f87171; }

/* Tables */
.data-table-container {
    padding: 1.5rem;
}

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

th {
    text-align: left;
    color: var(--text-dim);
    padding: 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--border);
}

tr:last-child td {
    border-bottom: none;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: 8px;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: white;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
}

/* Badges */
.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.badge-warning { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.badge-danger { background: rgba(248, 113, 113, 0.15); color: #f87171; }

/* Responsive */
@media (max-width: 1024px) {
    aside.sidebar { width: 80px; padding: 2rem 0.5rem; }
    .logo-text, .nav-item span { display: none; }
    main.main-content { margin-left: 80px; }
    .nav-item { justify-content: center; }
}
