/* UMI+ Enhanced Styles - Modern UI/UX Improvements */

:root {
    /* Modern Color Palette */
    --primary: #007BFF;
    --secondary: #00C6FF;
    --accent: #1CC88A;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    
    /* Enhanced Shadows */
    --shadow-soft: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 15px rgba(0,0,0,0.15);
    --shadow-strong: 0 8px 25px rgba(0,0,0,0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}


/* Global Enhancements */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Enhanced Navbar - Transparent with Blur */
.navbar-enhanced {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
}

.navbar-enhanced.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-soft);
}


/* Mobile Bottom Navigation Enhanced */
.bottom-nav-enhanced {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    z-index: 1030;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-nav-enhanced .nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.bottom-nav-enhanced .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.bottom-nav-enhanced .nav-link:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-normal);
    transform: translate(-50%, -50%);
}

.bottom-nav-enhanced .nav-link:active:before {
    width: 60px;
    height: 60px;
}

.bottom-nav-enhanced .nav-link.active,
.bottom-nav-enhanced .nav-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.bottom-nav-enhanced .nav-link i {
    font-size: 1.2rem;
    margin-bottom: 4px;
    transition: transform var(--transition-fast);
}

.bottom-nav-enhanced .nav-link:active i {
    transform: scale(1.1);
}

/* Floating Action Button (FAB) */
.fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-medium);
    z-index: 1040;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-strong);
}

.fab:active {
    transform: scale(0.95);
}

/* FAB Menu */
.fab-menu {
    position: fixed;
    bottom: 150px;
    right: 20px;
    z-index: 1035;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.fab-menu.show {
    opacity: 1;
    visibility: visible;
}

.fab-menu-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    transform: translateX(100px);
    transition: transform var(--transition-normal);
}

.fab-menu.show .fab-menu-item {
    transform: translateX(0);
}

.fab-menu.show .fab-menu-item:nth-child(1) { transition-delay: 0.1s; }
.fab-menu.show .fab-menu-item:nth-child(2) { transition-delay: 0.2s; }
.fab-menu.show .fab-menu-item:nth-child(3) { transition-delay: 0.3s; }

.fab-menu-btn {
    width: 48px;
    height: 48px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-fast);
    margin-left: 12px;
}

.fab-menu-btn:hover {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
}

.fab-menu-label {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-soft);
    white-space: nowrap;
}

/* Loading Skeleton Effects */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-text.large { height: 24px; }
.skeleton-text.small { height: 12px; }
.skeleton-text.short { width: 60%; }

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Enhanced Cards */
.card-enhanced {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-normal);
    overflow: hidden;
}

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

/* Perfect Circle Icons */
.feature-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-circle i {
    font-size: 1.2rem;
}

/* Hero Section Enhancements */
.hero-enhanced {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Floating Icons Animation */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    opacity: 0.1;
    font-size: 2rem;
    color: white;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 20%; right: 15%; animation-delay: 2s; }
.floating-icon:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 4s; }
.floating-icon:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(2deg); }
    66% { transform: translateY(8px) rotate(-1deg); }
}

/* Statistics Cards Enhanced */
.stats-card-enhanced {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all var(--transition-normal);
}

.stats-card-enhanced:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.25);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enhanced Buttons */
.btn-enhanced {
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

.btn-enhanced:hover::before {
    left: 100%;
}

.btn-primary-enhanced {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
}

.btn-primary-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    /* Fix viewport issues */
    html {
        overflow-x: hidden;
    }
    
    body {
        overflow-x: hidden;
        padding-bottom: 80px; /* Space for bottom nav */
    }
    
    /* Container fixes */
    .container, .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }
    
    /* Hero section mobile - Fixed positioning */
    .hero-enhanced, .hero-slider-section {
        height: 100vh !important;
        min-height: 100vh;
        padding: 0 !important;
    }
    
    .hero-slide {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        padding: 80px 0 20px !important;
        display: flex !important;
        align-items: center !important;
        z-index: 1 !important;
    }
    
    .hero-slide.active {
        z-index: 2 !important;
    }
    
    .hero-content {
        text-align: center;
        padding: 20px 15px;
    }
    
    .hero-content .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .hero-content .row {
        align-items: flex-start !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .hero-content .col-lg-6 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Mobile stats container - 2x2 Grid */
    .stats-container-mobile {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 20px !important;
        padding: 0 10px !important;
    }
    
    .stats-row {
        display: flex !important;
        gap: 12px !important;
    }
    
    .stats-item {
        flex: 1 !important;
        background: rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 12px !important;
        padding: 16px 12px !important;
        text-align: center !important;
        min-height: 75px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    /* Cards mobile */
    .card-enhanced {
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    /* Text sizing */
    .display-4 {
        font-size: 1.6rem !important;
        line-height: 1.2;
        margin-bottom: 0.8rem;
        padding: 0 5px !important;
    }
    
    .display-6 {
        font-size: 1.4rem;
    }
    
    .lead {
        font-size: 0.9rem !important;
        line-height: 1.4;
        margin-bottom: 1.2rem;
        padding: 0 5px !important;
    }
    
    /* Button sizing */
    .btn-lg {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.8rem !important;
        margin: 0 5px 8px 5px !important;
    }
    
    .d-flex.flex-wrap.gap-3 {
        gap: 0.5rem !important;
        justify-content: center;
        margin-bottom: 1.5rem;
        padding: 0 10px !important;
    }
    
    /* Floating icons hide on mobile */
    .floating-icon {
        display: none;
    }
    
    /* FAB positioning */
    .fab {
        bottom: 90px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .fab-menu {
        bottom: 150px;
        right: 16px;
    }
    
    /* Perfect circles for mobile */
    .feature-circle {
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    .feature-circle i {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .container, .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .stats-grid-mobile {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .stats-card-enhanced {
        padding: 12px;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
}

/* Scroll Reveal Animation Classes */
.aos-init {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Progress Bar (NProgress style) */
.progress-bar-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Status Badges Enhanced */
.badge-enhanced {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-active { background: var(--accent); color: white; }
.badge-inactive { background: var(--text-secondary); color: white; }
.badge-pending { background: #ffc107; color: #212529; }
.badge-rejected { background: #dc3545; color: white; }

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.shadow-enhanced {
    box-shadow: var(--shadow-soft);
}

.shadow-enhanced-hover:hover {
    box-shadow: var(--shadow-medium);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}
