/**
 * ============================================================================
 * LiteBansU - Modern Premium Design System
 * ============================================================================
 * Apple-inspired minimalist design with glassmorphism effects,
 * smooth animations, and premium UX principles
 */

/* ============================================================================
   SCROLL BEHAVIOR & ANIMATIONS
   ============================================================================ */
html {
    scroll-behavior: smooth;
}

/* ============================================================================
   TYPOGRAPHY & TEXT
   ============================================================================ */
body {
    font-kerning: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.875rem;
    font-weight: 600;
}

/* Subtle text colors */
.text-muted {
    color: #6b7280;
}

.text-subtle {
    color: #9ca3af;
}

/* ============================================================================
   LAYOUT & SPACING
   ============================================================================ */
section {
    padding: 5rem 0;
}

section.py-16 {
    padding: 4rem 0;
}

section.py-20 {
    padding: 5rem 0;
}

section.py-24 {
    padding: 6rem 0;
}

/* ============================================================================
   CARDS & CONTAINERS
   ============================================================================ */
.card {
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.card:hover {
    border-color: rgba(229, 231, 235, 0.8);
    transform: translateY(-2px);
}

.card-content {
    padding: 2.5rem;
}

@media (max-width: 768px) {
    .card-content {
        padding: 1.5rem;
    }
}

/* ============================================================================
   BUTTONS & INTERACTIVE ELEMENTS
   ============================================================================ */
.btn-primary,
.btn {
    border-radius: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #111827;
    color: white;
}

.btn-primary:hover {
    background-color: #1f2937;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

/* ============================================================================
   HERO SECTIONS
   ============================================================================ */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 100%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ============================================================================
   SEARCH & INPUT ELEMENTS
   ============================================================================ */
.search-container {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(249, 250, 251, 0.5) 100%);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 1.5rem;
    padding: 2.5rem;
    backdrop-filter: none;
}

.form-control,
.input-group-text {
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
    background: white;
}

.form-control::placeholder {
    color: #9ca3af;
}

/* ============================================================================
   STATISTICS & METRICS
   ============================================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(249, 250, 251, 0.8) 100%);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 1.5rem;
    padding: 2rem;
    backdrop-filter: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 231, 235, 0.8);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* ============================================================================
   TABLES & DATA DISPLAY
   ============================================================================ */
.table-container {
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.5);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: none;
}

.table {
    margin-bottom: 0;
}

.table thead {
    background: rgba(249, 250, 251, 0.8);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.table th {
    font-weight: 600;
    color: #6b7280;
    padding: 1.25rem;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    text-transform: uppercase;
    border: none;
}

.table td {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.3);
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(249, 250, 251, 0.5);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================================================
   BADGES & STATUS
   ============================================================================ */
.badge {
    border-radius: 0.5rem;
    padding: 0.25rem 0.75rem;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

/* ============================================================================
   PAGINATION
   ============================================================================ */
.pagination {
    gap: 0.5rem;
}

.page-link {
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    color: #111827;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 1rem;
}

.page-link:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    color: #111827;
}

.page-link.active {
    background-color: #111827;
    border-color: #111827;
}

/* ============================================================================
   FORMS
   ============================================================================ */
.form-group label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

.form-group input,
.form-group textarea,
.form-group select {
    border-radius: 0.875rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-in-left {
    animation: slideInLeft 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-in-right {
    animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero-section {
        min-height: 50vh;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .search-container {
        padding: 1.5rem;
    }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================================
   UTILITIES
   ============================================================================ */
.container-max {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-balance {
    text-wrap: balance;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

.translate-y-10 {
    transform: translateY(2.5rem);
}

.translate-y-0 {
    transform: translateY(0);
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* ============================================================================
   CUSTOM SCROLLBAR
   ============================================================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ============================================================================
   DARK MODE SUPPORT (Optional)
   ============================================================================ */
body.siegelands-dark {
    background:
        radial-gradient(circle at 50% -10%, rgba(56, 73, 112, 0.45), transparent 34rem),
        linear-gradient(180deg, #070a12 0%, #02040a 100%);
    color: #e5e7eb;
}

body.siegelands-dark main {
    background:
        radial-gradient(circle at top, rgba(35, 45, 70, 0.6), transparent 42rem),
        #02040a;
}

body.siegelands-dark main > div.min-h-screen,
body.siegelands-dark .hero-section {
    background:
        radial-gradient(circle at top, #1a2133 0%, #090d16 42%, #02040a 100%) !important;
}

body.siegelands-dark .from-white,
body.siegelands-dark .from-gray-50 {
    --tw-gradient-from: #090d16 var(--tw-gradient-from-position) !important;
    --tw-gradient-to: rgba(9, 13, 22, 0) var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

body.siegelands-dark .via-white,
body.siegelands-dark .via-gray-50 {
    --tw-gradient-to: rgba(2, 4, 10, 0) var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), #05070d var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

body.siegelands-dark .to-white,
body.siegelands-dark .to-gray-50 {
    --tw-gradient-to: #02040a var(--tw-gradient-to-position) !important;
}

body.siegelands-dark .card,
body.siegelands-dark .stat-card,
body.siegelands-dark .search-container,
body.siegelands-dark .table-container,
body.siegelands-dark .bg-white,
body.siegelands-dark .bg-white\/70,
body.siegelands-dark .bg-white\/75,
body.siegelands-dark .bg-white\/80,
body.siegelands-dark .bg-white\/85 {
    background: rgba(15, 23, 42, 0.72) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18) !important;
    backdrop-filter: none !important;
}

body.siegelands-dark .bg-gray-50,
body.siegelands-dark .bg-gray-50\/80,
body.siegelands-dark .bg-gray-100 {
    background: rgba(255, 255, 255, 0.06) !important;
}

body.siegelands-dark .bg-rose-50,
body.siegelands-dark .bg-red-100 {
    background: rgba(244, 63, 94, 0.14) !important;
}

body.siegelands-dark .bg-amber-50,
body.siegelands-dark .bg-amber-100 {
    background: rgba(245, 158, 11, 0.14) !important;
}

body.siegelands-dark .bg-sky-50,
body.siegelands-dark .bg-blue-100 {
    background: rgba(14, 165, 233, 0.14) !important;
}

body.siegelands-dark .bg-purple-100 {
    background: rgba(168, 85, 247, 0.14) !important;
}

body.siegelands-dark .text-gray-950,
body.siegelands-dark .text-gray-900,
body.siegelands-dark .text-gray-800,
body.siegelands-dark .text-gray-700,
body.siegelands-dark .stat-number,
body.siegelands-dark h1,
body.siegelands-dark h2,
body.siegelands-dark h3,
body.siegelands-dark h4 {
    color: #f8fafc !important;
}

body.siegelands-dark .text-gray-600,
body.siegelands-dark .text-gray-500,
body.siegelands-dark .text-muted,
body.siegelands-dark .stat-label {
    color: #94a3b8 !important;
}

body.siegelands-dark .text-gray-400 {
    color: #64748b !important;
}

body.siegelands-dark .border-gray-100,
body.siegelands-dark .border-gray-200,
body.siegelands-dark .border-gray-200\/50,
body.siegelands-dark .border-gray-200\/70,
body.siegelands-dark .border-white\/70 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.siegelands-dark input,
body.siegelands-dark textarea,
body.siegelands-dark select,
body.siegelands-dark .form-control {
    background: rgba(2, 6, 23, 0.72) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
}

body.siegelands-dark input::placeholder,
body.siegelands-dark textarea::placeholder {
    color: #64748b !important;
}

body.siegelands-dark input:focus,
body.siegelands-dark textarea:focus,
body.siegelands-dark select:focus {
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08) !important;
}

body.siegelands-dark a.bg-gray-950,
body.siegelands-dark button.bg-gray-950,
body.siegelands-dark .bg-gray-950 {
    background: #f8fafc !important;
    color: #02040a !important;
}

body.siegelands-dark a.bg-gray-950:hover,
body.siegelands-dark button.bg-gray-950:hover {
    background: #dbe4ef !important;
}

body.siegelands-dark .hover\:bg-gray-50\/80:hover,
body.siegelands-dark .hover\:bg-gray-50:hover,
body.siegelands-dark .hover\:bg-gray-100:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

body.siegelands-dark .shadow-gray-950\/5,
body.siegelands-dark .shadow-gray-950\/10,
body.siegelands-dark .shadow-gray-950\/15,
body.siegelands-dark .shadow-gray-950\/20 {
    --tw-shadow-color: rgba(0, 0, 0, 0.45) !important;
}

body.siegelands-dark footer {
    margin-top: 0;
}

body.siegelands-dark .backdrop-blur,
body.siegelands-dark .backdrop-blur-sm,
body.siegelands-dark .backdrop-blur-md,
body.siegelands-dark .backdrop-blur-xl,
body.siegelands-dark .backdrop-blur-2xl {
    backdrop-filter: none !important;
}

body.siegelands-dark .blur-3xl {
    filter: none !important;
}

body.siegelands-dark .shadow-2xl,
body.siegelands-dark .shadow-xl {
    --tw-shadow: 0 8px 22px rgba(0, 0, 0, 0.18) !important;
    --tw-shadow-colored: 0 8px 22px var(--tw-shadow-color) !important;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;
}

.reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

body.siegelands-dark .card:hover,
body.siegelands-dark .stat-card:hover,
body.siegelands-dark [class*="hover:-translate"]:hover,
body.siegelands-dark [class*="hover:scale"]:hover {
    transform: none !important;
}

body.siegelands-dark .transition,
body.siegelands-dark .transition-all,
body.siegelands-dark .transition-colors {
    transition-duration: 120ms !important;
}

body.admin-shell {
    background: #f5f7fb;
    color: #111827;
}

body.admin-shell main {
    background: #f5f7fb;
    min-height: calc(100vh - 4rem);
}

body.admin-shell .admin-dashboard,
body.admin-shell .admin-login {
    width: min(100% - 2rem, 1280px);
    margin: 0 auto;
    padding: 3rem 0;
}

body.admin-shell .admin-login {
    min-height: calc(100vh - 12rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.admin-shell .admin-login .container {
    width: 100%;
}

body.admin-shell .login-card {
    width: min(100%, 520px);
    max-width: 520px;
    margin: 0 auto;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

body.admin-shell .login-card .card-body {
    padding: 2.5rem;
}

body.admin-shell .login-icon {
    margin-bottom: 1.25rem;
}

body.admin-shell .login-card h3 {
    margin-bottom: 0.75rem;
    color: #111827;
}

body.admin-shell .login-card .text-muted {
    color: #6b7280 !important;
}

body.admin-shell .login-card form {
    margin-top: 1.5rem;
}

body.admin-shell .login-card .mb-3 {
    margin-bottom: 1.25rem !important;
}

body.admin-shell .login-card .mb-4 {
    margin-bottom: 1.75rem !important;
}

body.admin-shell .form-label {
    margin-bottom: 0.6rem;
    font-weight: 650;
    color: #374151;
}

body.admin-shell .form-control,
body.admin-shell .form-select,
body.admin-shell .input-group-text {
    border-color: #d8dee8;
    background-color: #fff;
    color: #111827;
}

body.admin-shell .form-control:focus,
body.admin-shell .form-select:focus {
    border-color: #2d7a7a;
    box-shadow: 0 0 0 0.2rem rgba(45, 122, 122, 0.14);
}

body.admin-shell .btn {
    border-radius: 0.75rem;
}

body.admin-shell .admin-dashboard > .d-flex:first-child {
    gap: 1rem;
    margin-bottom: 2rem !important;
}

body.admin-shell .admin-dashboard h1 {
    color: #111827;
    font-size: clamp(2rem, 4vw, 3rem);
}

body.admin-shell .nav-tabs {
    gap: 0.35rem;
    border-bottom: 1px solid #dfe5ef;
}

body.admin-shell .nav-tabs .nav-link {
    border-radius: 0.75rem 0.75rem 0 0;
}

body.admin-shell .card {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

body.admin-shell .card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

body.admin-shell .table {
    color: #111827;
}

body.admin-shell .modal {
    color: #111827;
}

@media (max-width: 640px) {
    body.admin-shell .admin-dashboard,
    body.admin-shell .admin-login {
        width: min(100% - 1rem, 1280px);
        padding: 1.5rem 0;
    }

    body.admin-shell .login-card .card-body {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}
