/* assets/css/style.css - Premium Enterprise Dashboard Design */
:root {
    --primary: #f0c330; /* Golden Yellow */
    --primary-muted: rgba(240, 195, 48, 0.1);
    --bg-main: #0a0f1d;
    --bg-surface: #141b2d;
    --bg-card: #1f2940;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --danger: #ef4444;
    --success: #22c55e;
    --border: #2d3748;
    --sidebar-width: 250px;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

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

/* Sidebar Layout */
.app-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-surface);
    height: 100vh;
    position: fixed;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 0 1rem;
}

.nav-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin: 1.5rem 0 0.5rem 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.2s;
    margin-bottom: 0.25rem;
}

.nav-link:hover, .nav-link.active {
    background: var(--primary-muted);
    color: var(--primary);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Main Content Area */
.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    background: var(--bg-main);
}

.app-header {
    height: 70px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-bar {
    width: 300px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 0.85rem;
    margin-left: 0.5rem;
    width: 100%;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.content-body {
    padding: 2.5rem;
}

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

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-title {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
}

.stat-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
}

/* UI Elements */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Forms Management */
.form-section {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-control {
    background: var(--bg-main);
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: white;
    outline: none;
    transition: 0.2s;
}

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

.switch-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.2s;
    font-size: 0.9rem;
}

.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { opacity: 0.9; }

.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-success { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

/* Table Styling */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 1rem; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; border-bottom: 1px solid var(--border); }
td { padding: 1rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
tr:hover { background: rgba(255, 255, 255, 0.02); }
