/* Custom premium CSS design tokens and layout utility overrides */

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-indigo: #6366f1;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    
    --font-outfit: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    font-family: var(--font-outfit);
    background-color: #f8fafc;
    color: #334155;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Sidebar Custom Styling */
.sidebar-container {
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    transition: all 0.3s ease-in-out;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-nav-link:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.sidebar-nav-link.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    color: #2563eb;
    font-weight: 600;
}

.sidebar-nav-link svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.2s ease;
}

.sidebar-nav-link:hover svg {
    transform: scale(1.05);
}

/* Premium Card Styling */
.premium-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(203, 213, 225, 0.8);
}

.premium-card-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
}

/* Glassmorphism Styles for Dark Theme / Landing Page */
.glass-container {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    color: #f8fafc;
}

/* Buttons with gradients */
.btn-premium {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-premium:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-premium:active {
    transform: translateY(0);
}

/* Custom inputs styling */
.form-control-premium {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.form-control-premium:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background-color: #ffffff;
}

.form-control-dark {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.form-control-dark:focus {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: #3b82f6;
    color: #ffffff;
}

/* Status Badges */
.badge-status {
    padding: 0.35em 0.65em;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.5rem;
}

.badge-status-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-status-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-status-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Welcome Page Specific Styles */
.hero-section {
    background: radial-gradient(ellipse at top, #1e293b 0%, #0f172a 100%);
    color: #f8fafc;
    min-h: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(99, 102, 241, 0.05) 50%, rgba(0,0,0,0) 100%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.hero-bg-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(0,0,0,0) 100%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

/* Table Style Adjustments */
.table-premium th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
    background-color: #f8fafc;
    padding: 0.75rem 1rem;
}

.table-premium td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    color: #475569;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Tailwind-to-Bootstrap compatibility helpers for sub-components (e.g. Profile edit) */
.space-y-6 > * + * {
    margin-top: 1.5rem !important;
}

.space-y-2 > * + * {
    margin-top: 0.5rem !important;
}

.block {
    display: block !important;
}

.w-full {
    width: 100% !important;
}

.max-w-xl {
    max-width: 36rem !important;
}

.max-w-7xl {
    max-width: 80rem !important;
    margin-left: auto;
    margin-right: auto;
}

.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.ms-3 { margin-left: 0.75rem !important; }
.ms-4 { margin-left: 1rem !important; }

.py-12 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.bg-white {
    background-color: #ffffff !important;
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05) !important;
}

.sm\:rounded-lg {
    border-radius: 0.75rem !important;
}

.p-4 {
    padding: 1rem !important;
}

.sm\:p-8 {
    padding: 2rem !important;
}

/* Typo colors fallback */
.text-gray-900 {
    color: #1e293b !important;
}

.text-gray-800 {
    color: #334155 !important;
}

.text-gray-600 {
    color: #64748b !important;
}

.text-lg {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
}

.text-sm {
    font-size: 0.875rem !important;
}

.text-xs {
    font-size: 0.75rem !important;
}

.font-medium {
    font-weight: 500 !important;
}

.font-semibold {
    font-weight: 600 !important;
}

/* Button maps */
.bg-gray-800 {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bg-gray-800:hover {
    background-color: #1e293b !important;
}

.bg-red-600 {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bg-red-600:hover {
    background-color: #dc2626 !important;
}

.border-gray-300 {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.border-gray-300:hover {
    background-color: #f8fafc !important;
}

/* Custom inputs fallback */
input.border-gray-300, textarea {
    display: block !important;
    width: 100% !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #334155 !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.5rem !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

input.border-gray-300:focus, textarea:focus {
    border-color: #3b82f6 !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* Premium Reports Tabs */
.reports-tab-container {
    background-color: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 1.25rem;
}

.reports-nav-pills {
    background-color: #e2e8f0;
    padding: 5px;
    border-radius: 0.875rem;
    display: inline-flex;
    gap: 4px !important;
}

.reports-nav-link {
    background: transparent;
    border: none;
    border-radius: 0.625rem;
    color: #475569 !important;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.reports-nav-link i {
    font-size: 1rem;
    color: #64748b;
    transition: color 0.2s ease;
}

.reports-nav-link:hover {
    color: #0f172a !important;
    background-color: rgba(255, 255, 255, 0.4);
}

.reports-nav-link.active {
    background-color: #ffffff !important;
    color: #2563eb !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

.reports-nav-link.active i {
    color: #2563eb;
}

