:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --accent: #f59e0b;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.125);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    padding-bottom: 0px; 
    overflow-x: hidden;
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 80px; /* Space for bottom nav only on mobile/tab */
    }
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

.glass-header {
    background: var(--nav-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* App Header */
.app-header {
    padding: 1rem 0;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1050;
    padding: 0 10px;
}

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

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
}

.bottom-nav-item i {
    font-size: 1.5rem;
    margin-bottom: 2px;
    transition: transform 0.2s ease;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active i {
    transform: translateY(-2px);
}

/* Hero Gradient */
.hero-gradient {
    background: radial-gradient(circle at top right, #e0e7ff 0%, #f8fafc 40%);
}

/* Dashboard Cards */
.summary-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
    border: none;
}

.summary-card:hover {
    transform: translateY(-3px);
}

.summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

/* Quick Actions Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .action-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .action-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.action-item {
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.action-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    color: var(--primary);
}

.action-item i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.btn-primary {
    background: var(--primary);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Hide elements for mobile/app feel */
@media (max-width: 991.98px) {
    .navbar-expand-lg .navbar-nav {
        display: none;
    }
    .footer {
        display: none;
    }
}

/* Profile styles */
.profile-img-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 4px solid white;
    box-shadow: var(--shadow);
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badge styles */
.badge-pill {
    border-radius: 50rem;
    padding: 0.35em 0.8em;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

.transition-all {
    transition: all 0.3s ease;
}

.group:hover .hover-opacity-100 {
    opacity: 1 !important;
}