:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-bg: #1e293b;
    --light-bg: #f8fafc;
    --card-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --card-shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    background-color: var(--light-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    line-height: 1.6;
}

.app-shell {
    min-height: 100vh;
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: white;
    box-shadow: 4px 0 20px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    padding: 1.5rem 1rem;
    display: none;
    border-right: 1px solid #e2e8f0;
}

.sidebar h5 {
    color: var(--primary-color);
    font-size: 1.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 2rem;
}

.sidebar .nav-link {
    color: #64748b;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar .nav-link:hover {
    background: #f1f5f9;
    color: var(--primary-color);
    transform: translateX(4px);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 6px -1px rgb(99 102 241 / 0.3);
}

@media (min-width: 992px) {
    .sidebar {
        display: block;
    }
    .main-content {
        margin-left: 260px;
    }
}

/* Cards */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

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

.stat-card {
    min-height: 130px;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
}

/* Buttons */
.btn-soft-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border-radius: 0.75rem;
    border: none;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgb(99 102 241 / 0.3);
}

.btn-soft-primary:hover {
    transform: translateY(-2px);
}

/* Tables */
.table-soft {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.table-soft tbody tr {
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow);
}

.table-soft tbody tr:hover {
    box-shadow: var(--card-shadow-hover);
}

.table-soft td, .table-soft th {
    border: none;
    padding: 1rem;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 1050;
    display: flex;
}

@media (min-width: 992px) {
    .mobile-nav {
        display: none;
    }
}

.mobile-nav a {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0;
    font-size: 0.75rem;
    color: #64748b;
    text-decoration: none;
}

.mobile-nav a.active {
    color: var(--primary-color);
    font-weight: 700;
}
