html, body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Dashboard Card Enhancements */
.dashboard-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    border-radius: 15px;
    cursor: pointer;
}

.dashboard-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
}

.dashboard-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.dashboard-card:hover .dashboard-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 2;
}

.dashboard-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(5px);
}

.card-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dashboard-card:hover .card-decoration {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.15);
}

/* Icon-specific styling */
.dashboard-icon i {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Card title enhancements */
.dashboard-card .card-title {
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Card text enhancements */
.dashboard-card .card-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Add subtle animation delay for each card */
.dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-card:nth-child(3) { animation-delay: 0.3s; }

/* Modern Navbar Styling */
.modern-navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(10px);
    border: none;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Brand Section */
.navbar-brand-section .navbar-brand {
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover .brand-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.brand-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
}

/* Navigation Links */
.nav-pills-custom {
    gap: 0.5rem;
}

.nav-link-modern {
    color: rgba(255, 255, 255, 0.85) !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.nav-link-modern:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-link-modern.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.nav-link-modern i {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* User Menu */
.user-actions {
    margin-left: 1rem;
}

.user-menu {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.user-menu:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.user-name {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Dropdown Menu */
.user-dropdown {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
}

.user-dropdown .dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    margin: 0.2rem;
    transition: all 0.2s ease;
}

.user-dropdown .dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(3px);
}

/* Mobile Toggler */
.modern-toggler {
    border: none;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modern-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
}

.navbar-toggler-icon-custom {
    color: white;
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .navbar-brand-section {
        flex: 1;
    }
    
    .nav-pills-custom {
        margin-top: 1rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .nav-link-modern {
        text-align: left;
        justify-content: flex-start;
    }
    
    .user-actions {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .user-menu {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Active Page Indicator */
.navbar-nav .nav-link-modern[href*="/dashboard"].active,
.navbar-nav .nav-link-modern[href*="/inventory"].active,
.navbar-nav .nav-link-modern[href*="/customers"].active,
.navbar-nav .nav-link-modern[href*="/vendors"].active,
.navbar-nav .nav-link-modern[href*="/purchase-orders"].active,
.navbar-nav .nav-link-modern[href*="/invoices"].active {
    background: rgba(255, 255, 255, 0.25);
    color: white !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-card {
        margin-bottom: 1.5rem;
    }
    
    .dashboard-icon {
        margin-bottom: 1rem;
    }
    
    .dashboard-icon i {
        font-size: 2.5rem !important;
    }
    
    .card-arrow {
        bottom: 15px;
        right: 15px;
    }
    
    .brand-title {
        font-size: 1.2rem;
    }
    
    .brand-subtitle {
        display: none;
    }
}