/* Hızlı Index Sistemi - Ana CSS */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    
    /* New Modern Colors */
    --gradient-from: #4f46e5;
    --gradient-via: #7c3aed;
    --gradient-to: #ec4899;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --dark-bg: #111827;
    --dark-surface: #1f2937;
    --dark-text: #f9fafb;
    --dark-text-secondary: #d1d5db;
}

/* Genel Stiller */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.min-vh-100 {
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    min-height: 100vh;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 2px 10px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

/* Main Content */
.main-content {
    background: #f8f9fa;
    min-height: 100vh;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 25px rgba(0,0,0,0.12);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: white;
    font-weight: 600;
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    border: none;
}

.stats-card .card-body {
    padding: 1.5rem;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-card p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #146c43);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #b02a37);
    border: none;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background: var(--light-color);
    border: none;
    font-weight: 600;
    color: var(--dark-color);
    padding: 15px;
}

.table tbody td {
    padding: 12px 15px;
    border-color: rgba(0,0,0,0.05);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(13, 110, 253, 0.05);
}

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

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
}

.alert-success {
    background: linear-gradient(135deg, #d1edff, #e7f3ff);
    color: #0c5460;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c2c7);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

/* Navbar */
.navbar {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 10px 0;
}

.dropdown-item {
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* Progress */
.progress {
    height: 8px;
    border-radius: 4px;
    background: var(--light-color);
}

.progress-bar {
    border-radius: 4px;
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-card h3 {
        font-size: 2rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow-y: auto;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    margin: 2px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.notification-count {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    animation: pulse 2s infinite;
}

/* Main Content */
.main-content {
    margin-left: 240px;
    padding-top: 20px;
}

@media (max-width: 767.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* Stats Cards */
.stats-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stats-card.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white;
}

.stats-card.bg-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
    color: white;
}

.stats-card.bg-info {
    background: linear-gradient(135deg, #17a2b8, #6f42c1) !important;
    color: white;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.stats-card p {
    margin-bottom: 0;
    opacity: 0.9;
    font-weight: 500;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 15px 15px 0 0 !important;
    padding: 1.25rem 1.5rem;
}

.card-header h5 {
    margin-bottom: 0;
    font-weight: 600;
    color: #495057;
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #6610f2);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    border: none;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
    border: none;
}

/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: none;
    font-weight: 600;
    color: #495057;
    padding: 15px;
}

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

.table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.table td {
    padding: 15px;
    border-color: rgba(0, 0, 0, 0.05);
    vertical-align: middle;
}

/* Status Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
}

/* Progress Bars */
.progress {
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.05);
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(32, 201, 151, 0.1));
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(255, 107, 107, 0.1));
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(253, 126, 20, 0.1));
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), rgba(111, 66, 193, 0.1));
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .stats-card h3 {
        font-size: 2rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .table-responsive {
        border-radius: 10px;
    }
}

/* Loading States */
.stats-auto-update {
    position: relative;
}

.stats-auto-update::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Package cards */
.package-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.package-card.border-primary {
    border-width: 3px !important;
    position: relative;
}

/* Notification items */
.notification-item {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.notification-item:hover {
    background-color: #f8f9fa;
    border-left-color: #007bff;
}

.notification-item.list-group-item-warning {
    border-left-color: #ffc107;
    background-color: #fff3cd;
}

/* Modal enhancements */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.modal-header {
    border-radius: 15px 15px 0 0;
    border-bottom: 1px solid #e9ecef;
}

/* Accordion enhancements */
.accordion-button {
    border-radius: 8px !important;
    margin-bottom: 5px;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Modal Styles for Details Popup */
.modal-panel {
    transition: all 0.3s ease-out;
    transform: translateY(0);
    opacity: 1;
}

.modal-overlay {
    transition: opacity 0.3s ease-out;
}

/* Modal animations */
@keyframes modalSlideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* Apply animations when modal becomes visible */
#detailsModal:not(.hidden) .modal-panel {
    animation: modalSlideIn 0.3s ease-out;
}

#detailsModal:not(.hidden) .modal-overlay {
    animation: modalFadeIn 0.3s ease-out;
}

/* Scrollbar for modal content */
#detailsModal .max-h-96::-webkit-scrollbar {
    width: 6px;
}

#detailsModal .max-h-96::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#detailsModal .max-h-96::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#detailsModal .max-h-96::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Enhanced details content styling */
.details-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.details-info-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.details-info-card:hover {
    background: #f0f0f0;
    border-color: #dee2e6;
}

.details-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.details-status-badge.success {
    background-color: #d1edff;
    color: #0c5460;
}

.details-status-badge.failed {
    background-color: #f8d7da;
    color: #721c24;
}

.details-status-badge.processing {
    background-color: #fff3cd;
    color: #856404;
}

/* Technical details code block */
.technical-details pre {
    background: #282c34;
    color: #abb2bf;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    line-height: 1.4;
    max-height: 200px;
    overflow-y: auto;
}

/* Responsive modal adjustments */
@media (max-width: 768px) {
    #detailsModal .sm\\:max-w-4xl {
        max-width: 95vw;
        margin: 1rem;
    }
    
    #detailsModal .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .details-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Modern Glassmorphism Styles */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.bg-gradient-cosmic {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

/* Animated Gradients */
.bg-gradient-animated {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Modern Buttons */
.btn-modern {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    font-weight: 700;
    padding: 12px 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.btn-modern::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 0.5s;
}

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

/* Modern Cards */
.card-modern {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-dark {
    background: var(--dark-surface);
    border: 1px solid #374151;
    color: var(--dark-text);
}

.card-dark:hover {
    border-color: #4b5563;
}

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Pulse Animation */
.pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Modern Typography */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

/* Icon Animations */
.icon-bounce {
    transition: transform 0.3s ease;
}

.icon-bounce:hover {
    transform: scale(1.1);
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) scale(1.1); }
    40% { transform: translateY(-10px) scale(1.1); }
    60% { transform: translateY(-5px) scale(1.1); }
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .card-modern {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .btn-modern {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .text-gradient {
        font-size: 2rem;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: var(--dark-surface);
        --dark-color: var(--dark-text);
    }
    
    .card {
        background: var(--dark-surface);
        border-color: #374151;
        color: var(--dark-text);
    }
    
    .form-control {
        background: var(--dark-surface);
        border-color: #374151;
        color: var(--dark-text);
    }
    
    .table {
        background: var(--dark-surface);
        color: var(--dark-text);
    }
    
    .table thead th {
        background: var(--dark-bg);
        border-color: #374151;
    }
}

/* Modern Animations */
.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

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

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

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

.scale-in {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* How It Works Section Styles */
.how-it-works-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.steps-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInSteps 0.8s ease-out forwards;
    transition: all 0.4s ease;
}

.step-item:nth-child(1) { animation-delay: 0.3s; }
.step-item:nth-child(2) { animation-delay: 0.6s; }
.step-item:nth-child(3) { animation-delay: 0.9s; }

@keyframes slideInSteps {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-content {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8), rgba(31, 41, 55, 0.8));
    border: 1px solid rgba(55, 65, 81, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.step-content:hover::before {
    opacity: 1;
}

.step-content:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.step-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 80px;
}

.icon-wrapper {
    position: relative;
    z-index: 2;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.step-content:hover .icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.step-number {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    z-index: 3;
    border: 2px solid rgba(17, 24, 39, 1);
}

.step-text {
    flex: 1;
    z-index: 2;
    position: relative;
}

.step-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.step-text p {
    color: #d1d5db;
    line-height: 1.6;
    margin: 0;
}

.step-line {
    position: absolute;
    left: 50%;
    bottom: -40px;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #3b82f6, transparent);
    transform: translateX(-50%);
    z-index: 1;
}

.step-item:last-child .step-line {
    display: none;
}

/* Search Icon (like in the image) */
.search-icon {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    animation: fadeInRight 1s ease-out 1.2s forwards;
}

.search-glass {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: floating 3s ease-in-out infinite;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .how-it-works-container {
        padding: 0 10px;
    }
    
    .steps-timeline {
        gap: 30px;
    }
    
    .step-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 16px;
    }
    
    .step-icon {
        min-width: auto;
    }
    
    .icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .search-icon {
        display: none;
    }
    
    .step-line {
        left: 25px;
        bottom: -30px;
        height: 30px;
    }
}

@media (max-width: 1024px) {
    .search-icon {
        right: -20px;
    }
    
    .search-glass {
        width: 80px;
        height: 80px;
    }
    
    .search-glass i {
        font-size: 2rem !important;
    }
}

/* Additional animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floating {
    0%, 100% {
        transform: translateY(-50%) translateY(0px);
    }
    50% {
        transform: translateY(-50%) translateY(-10px);
    }
}

/* Pulse effect for step numbers */
.step-number {
    animation: pulse-number 2s infinite;
}

@keyframes pulse-number {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Hover effects for the entire section */
.step-item:hover .step-number {
    animation-play-state: paused;
    transform: scale(1.2);
}

.step-item:hover .step-line {
    background: linear-gradient(to bottom, #8b5cf6, transparent);
    transform: translateX(-50%) scaleY(1.1);
}

/* Additional CSS for JavaScript interactions */
.step-item.step-hovered {
    z-index: 10;
}

.step-item.step-dimmed {
    opacity: 0.5;
    transform: scale(0.95);
}

/* Removed duplicate animation */

/* Enhanced search icon with parallax */
.search-icon {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.search-glass {
    position: relative;
    overflow: hidden;
}

.search-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Scroll indicator for how it works section */
.how-it-works-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    border-radius: 2px;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

/* Smooth transitions for all interactive elements */
.step-item,
.step-content,
.step-icon,
.icon-wrapper,
.step-number,
.step-line,
.search-icon,
.search-glass {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
.step-item:focus-within .step-content {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .step-item {
        animation: none;
    }
    
    .search-glass {
        animation: none;
    }
    
    .step-number {
        animation: none;
    }
    
    .search-glass::before {
        animation: none;
    }
}

/* Optimizzy Style Card */
.optimizzy-card {
    position: relative;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: rotate(1deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.optimizzy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 51, 234, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.optimizzy-card:hover {
    transform: rotate(0deg) translateY(-10px);
    box-shadow: 0 35px 70px -12px rgba(0, 0, 0, 0.35);
}

.optimizzy-card:hover::before {
    opacity: 1;
}

/* Enhanced shadow-3xl */
.shadow-3xl {
    box-shadow: 0 35px 70px -12px rgba(0, 0, 0, 0.35);
}

/* Interactive elements inside card */
.optimizzy-card input {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.optimizzy-card input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.optimizzy-card button {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.optimizzy-card button:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

/* Status badge animation */
.optimizzy-card .animate-pulse {
    animation: optimizzy-pulse 2s infinite;
}

@keyframes optimizzy-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Mobile responsive for the card */
@media (max-width: 768px) {
    .optimizzy-card {
        max-width: 100%;
        margin: 0 1rem;
        transform: rotate(0.5deg);
    }
    
    .optimizzy-card:hover {
        transform: rotate(0deg) translateY(-5px);
    }
}

/* Additional rotation variations for multiple cards */
.optimizzy-card:nth-child(2) {
    transform: rotate(-1deg);
}

.optimizzy-card:nth-child(3) {
    transform: rotate(1.5deg);
}

.optimizzy-card:nth-child(2):hover,
.optimizzy-card:nth-child(3):hover {
    transform: rotate(0deg) translateY(-10px);
}

/* Subtle inner glow effect */
.optimizzy-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.optimizzy-card:hover::after {
    opacity: 1;
}

/* Optimizzy card intersection observer animation */
.optimizzy-card:not(.animate-in) {
    opacity: 0;
    transform: rotate(1deg) translateY(30px);
}

.optimizzy-card {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.optimizzy-card.animate-in {
    opacity: 1;
    transform: rotate(1deg) translateY(0);
}

.optimizzy-card.animate-in:hover {
    transform: rotate(0deg) translateY(-10px);
}

/* Disabled button state */
.optimizzy-card button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: translateY(0) !important;
}

.optimizzy-card button:disabled:hover {
    background: linear-gradient(135deg, #6b7280, #4b5563) !important;
    box-shadow: none !important;
}

/* Success animation for button */
.optimizzy-card button.animate-pulse {
    animation: success-pulse 1s ease-in-out 3;
}

@keyframes success-pulse {
    0% {
        transform: translateY(-2px) scale(1);
        box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4);
    }
    50% {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 15px 35px rgba(34, 197, 94, 0.6);
    }
    100% {
        transform: translateY(-2px) scale(1);
        box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4);
    }
}

/* Input validation colors */
.optimizzy-card input.border-green-500 {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.optimizzy-card input.border-red-500 {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Loading spinner inside button */
.optimizzy-card button .fa-spinner {
    animation: spinner-rotate 1s linear infinite;
}

@keyframes spinner-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Status badge transitions */
.optimizzy-card .bg-yellow-100 {
    background-color: #fef3c7;
    color: #d97706;
}

.optimizzy-card .text-yellow-800 {
    color: #92400e;
}

/* Enhanced ping animation */
.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Card entrance animation variations */
.optimizzy-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.optimizzy-card:nth-child(even) {
    animation-delay: 0.3s;
}

/* Additional mobile enhancements */
@media (max-width: 640px) {
    .optimizzy-card {
        margin: 0 0.5rem;
        padding: 0.5rem;
    }
    
    .optimizzy-card .p-8 {
        padding: 1.5rem;
    }
    
    .optimizzy-card h3 {
        font-size: 1.125rem;
    }
    
    .optimizzy-card .w-12.h-12 {
        width: 2.5rem;
        height: 2.5rem;
    }
}