/* ========================================
   PREMIUM UI ENHANCEMENTS
   Modern, Professional, Enterprise-Grade Design
   Color Scheme: Sophisticated Navy Blue (Professional & Financial)
   ======================================== */

/* Icon Styling */
.nav-icon {
    width: 1.17vw;
    height: 2.08vh;
    margin-right: 0.52vw;
    vertical-align: middle;
    stroke-width: 0.13vw;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth Icon Animations */
nav a:hover .nav-icon {
    transform: translateY(-0.13vw);
}

/* Button Icons */
.btn [data-lucide], .btn-sm [data-lucide] {
    width: 1.04vw;
    height: 1.85vh;
    margin: 0.33vw 0.39vw;
    vertical-align: middle;
    stroke-width: 0.13vw;
}

/* Premium Button Styles - Navy Blue Theme */
.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    border: none;
    box-shadow: 0 0.26vw 0.98vw 0 rgba(37, 99, 235, 0.35);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-0.13vw);
    box-shadow: 0 0.39vw 1.3vw 0 rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #1e40af15 0%, #2563eb15 100%);
    border: 0.07vw solid #2563eb40;
    color: #1e40af;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #1e40af25 0%, #2563eb25 100%);
    border-color: #2563eb;
    transform: translateY(-0.07vw);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    box-shadow: 0 0.26vw 0.78vw rgba(23, 162, 184, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0.26vw 0.78vw rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #2f86d3 0%, #1c67b7 100%);
    box-shadow: 0 0.26vw 0.78vw rgba(239, 68, 68, 0.3);
}

/* Premium Cards */
.card, .section, .form-container {
    border-radius: 0.78vw;
    border: 0.07vw solid #e5e7eb;
    box-shadow: 0 0.07vw 0.2vw 0 rgba(0, 0, 0, 0.1), 0 0.07vw 0.13vw 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    padding: 0.98vw;
    margin: 1.95vw 0 1.95vw 0;
}

.card:hover {
    box-shadow: 0 0.65vw 1.63vw -0.33vw rgba(0, 0, 0, 0.1), 0 0.65vw 0.65vw -0.33vw rgba(0, 0, 0, 0.04);
    transform: translateY(-0.13vw);
}

/* Premium Table Styling */
.data-table {
    border-radius: 0.78vw;
    overflow: hidden;
    box-shadow: 0 0.07vw 0.2vw rgba(0, 0, 0, 0.1);
}

.data-table thead {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

.data-table thead th {
    color: #ffffff !important;
    font-weight: 600;
}

.data-table tbody tr {
    transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
    background-color: #f1f5f9;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.26vw;
    padding: 0.26vw 0.78vw;
    border-radius: 1.3vw;
    font-size: 0.78vw;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03vw;
}

.badge [data-lucide] {
    width: 0.91vw;
    height: 1.62vh;
}

.badge-primary {
    background: linear-gradient(135deg, #1e40af20 0%, #2563eb20 100%);
    color: #1e40af;
    border: 0.07vw solid #2563eb40;
}

.badge-success {
    background: linear-gradient(135deg, #10b98120 0%, #05966920 100%);
    color: #10b981;
    border: 0.07vw solid #10b98140;
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b20 0%, #d9770620 100%);
    color: #f59e0b;
    border: 0.07vw solid #f59e0b40;
}

.badge-info {
    background: linear-gradient(135deg, #17a2b820 0%, #13849620 100%);
    color: #17a2b8;
    border: 0.07vw solid #17a2b840;
}

/* Premium Navigation */
.navbar {
    box-shadow: 0 0.13vw 0.52vw rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(0.65vw);
    background: rgba(255, 255, 255, 0.95);
}

.brand-logo {
}

/* Info Boxes */
.info-box {
    border-left: 0.26vw solid #2563eb;
    background: linear-gradient(135deg, #1e40af05 0%, #2563eb05 100%);
    border-radius: 0.52vw;
}

.info-box-warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #f59e0b05 0%, #d9770605 100%);
}

.info-box-success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #10b98105 0%, #05966905 100%);
}

/* Form Inputs */
.form-control {
    border: 0.13vw solid #e5e7eb;
    border-radius: 0.52vw;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2vw rgba(37, 99, 235, 0.1);
    outline: none;
}

/* Page Headers */
.page-header h2 {
    display: flex;
    align-items: center;
    gap: 0.78vw;
    font-size: 1.82vw;
    font-weight: 700;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header h2 [data-lucide] {
    width: 2.08vw;
    height: 3.7vh;
    stroke: url(#gradient);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(1.3vw);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .section {
    animation: slideUp 0.5s ease-out;
}

/* Premium Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.52vw;
    align-items: center;
}

.action-buttons .btn {
    padding: 0.39vw 0.78vw;
    border-radius: 0.39vw;
    font-size: 0.85vw;
    font-weight: 500;
    transition: all 0.2s ease;
}

.action-buttons .btn:hover {
    transform: translateY(-0.07vw);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16.28vw, 1fr));
    gap: 1.3vw;
    margin-bottom: 3.47vh;
}

.stat-card {
    background: white;
    border-radius: 0.78vw;
    padding: 1.56vw;
    border: 0.07vw solid #e5e7eb;
    box-shadow: 0 0.07vw 0.2vw rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-0.26vw);
    box-shadow: 0 0.78vw 1.56vw rgba(0, 0, 0, 0.12);
}

.stat-card [data-lucide] {
    width: 2.6vw;
    height: 4.63vh;
    padding: 0.52vw;
    border-radius: 0.65vw;
    background: linear-gradient(135deg, #1e40af15 0%, #2563eb15 100%);
    color: #1e40af;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Premium Pagination */
.pagination-container {
    background: white;
    padding: 1.04vw;
    border-radius: 0.78vw;
    box-shadow: 0 0.07vw 0.2vw rgba(0, 0, 0, 0.1);
}

.pagination-info {
    background: linear-gradient(135deg, #1e40af10 0%, #2563eb10 100%);
    border: 0.07vw solid #2563eb20;
    color: #1e40af;
    font-weight: 600;
}

/* Tooltips */
[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.52vw 0.78vw;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 0.78vw;
    border-radius: 0.39vw;
    white-space: nowrap;
    z-index: 1000;
}

/* Success/Error Messages */
.alert {
    display: flex;
    align-items: center;
    gap: 0.78vw;
    padding: 1.04vw 1.3vw;
    border-radius: 0.65vw;
    font-weight: 500;
}

.alert [data-lucide] {
    width: 1.3vw;
    height: 2.31vh;
}

.alert-success {
    background: linear-gradient(135deg, #10b98115 0%, #05966915 100%);
    border: 0.07vw solid #10b98140;
    color: #10b981;
}

.alert-error {
    background: linear-gradient(135deg, #2f86d315 0%, #1c67b715 100%);
    border: 0.07vw solid #2f86d340;
    color: #2f86d3;
}

.alert-info {
    background: linear-gradient(135deg, #17a2b815 0%, #13849615 100%);
    border: 0.07vw solid #17a2b840;
    color: #17a2b8;
}

/* ===== RESPONSIVE DESIGN - MOBILE UX ===== */

@media (max-width: 768px) {
    /* Icons - Mobile Optimized */
    .nav-icon {
        width: 20px !important;
        height: 20px !important;
        margin-right: 8px;
    }
    
    .btn [data-lucide],
    .btn-sm [data-lucide] {
        width: 18px !important;
        height: 18px !important;
        margin: 0 6px 0 0;
    }
    
    /* Page Headers */
    .page-header h2 {
        font-size: 20px;
    }
    
    .page-header h2 [data-lucide] {
        width: 24px !important;
        height: 24px !important;
    }
    
    /* Cards - Touch Friendly */
    .card,
    .section,
    .form-container {
        border-radius: 12px;
        padding: 16px;
        margin: 16px 0;
    }
    
    .card:hover {
        transform: none; /* Disable hover lift on mobile */
    }
    
    /* Buttons - Touch Optimized */
    .btn-primary,
    .btn-secondary,
    .btn-info,
    .btn-success,
    .btn-danger {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-info:hover,
    .btn-success:hover,
    .btn-danger:hover {
        transform: none; /* Disable hover effects */
    }
    
    .btn-primary:active,
    .btn-secondary:active,
    .btn-info:active,
    .btn-success:active,
    .btn-danger:active {
        transform: scale(0.98); /* Touch feedback */
        opacity: 0.9;
    }
    
    /* Tables - Mobile Scroll */
    .data-table {
        border-radius: 12px;
        font-size: 13px;
    }
    
    .data-table thead th {
        font-size: 13px;
        padding: 10px 8px;
        white-space: nowrap;
    }
    
    .data-table tbody td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    /* Alerts - Mobile Friendly */
    .alert-success,
    .alert-danger,
    .alert-warning,
    .alert-info {
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile adjustments */
    .card,
    .section,
    .form-container {
        padding: 12px;
        margin: 12px 0;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-info,
    .btn-success,
    .btn-danger {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table thead th,
    .data-table tbody td {
        padding: 8px 6px;
        font-size: 12px;
    }
}
