/* Modern Effects CSS for Teman Umroh */
/* Advanced Effects and Animations - Base styles are in theme-global.css */

/* Advanced Button Effects */
.btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-light:hover {
    background: white;
    color: #374151;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
    transform: translateY(-2px);
}

/* Pricing Cards */
.pricing-card {
    position: relative;
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.pricing-card.popular {
    border: 2px solid #fbbf24;
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--warning-gradient);
}

/* Feature Cards */
.feature-card {
    transition: all var(--transition-normal);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: white;
}

/* Testimonial Cards */
.testimonial-card {
    transition: all var(--transition-normal);
    border-radius: var(--border-radius-xl);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Advanced Badge Effects */
.badge {
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* Hero Section Effects */
.hero-bg {
    background: var(--primary-gradient);
}

.hero-pattern {
    opacity: 0.1;
    background-size: 100px 100px;
}

/* Floating Elements */
.floating-elements {
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 8s;
}

.floating-icon:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 7s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(5deg); 
    }
}

/* Animations */
.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

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

/* Hover Effects */
.hover-lift {
    transition: all var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Progress Bars */
.progress {
    border-radius: var(--border-radius-sm);
    background-color: #f3f4f6;
    height: 8px;
}

.progress-bar {
    border-radius: var(--border-radius-sm);
    transition: width var(--transition-slow);
}

/* Stats Section */
.stat-item {
    transition: all var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1;
}

/* CTA Section */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::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="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .pricing-card.popular {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .cta-buttons {
        margin-top: 2rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.bg-gradient-primary {
    background: var(--primary-gradient);
}

.bg-gradient-success {
    background: var(--success-gradient);
}

.bg-gradient-warning {
    background: var(--warning-gradient);
}

.bg-gradient-danger {
    background: var(--danger-gradient);
}

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

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

.shadow-strong {
    box-shadow: var(--shadow-lg);
}

.rounded-xl {
    border-radius: var(--border-radius-xl);
}

.rounded-lg {
    border-radius: var(--border-radius-lg);
}

/* Backdrop Blur */
.backdrop-blur {
    backdrop-filter: blur(10px);
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

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

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

/* Comparison Table Styles */
.comparison-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: var(--border-radius-sm) !important;
    overflow: hidden !important;
    transition: all var(--transition-normal) !important;
    border: none !important;
}

.comparison-table:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.comparison-table thead {
    background: var(--primary-blue) !important;
    color: white !important;
}

.comparison-table thead th {
    padding: 1.5rem !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    border: none !important;
    position: relative !important;
    color: white !important;
}

.comparison-table thead th:first-child {
    border-top-left-radius: var(--border-radius-sm);
}

.comparison-table thead th:last-child {
    border-top-right-radius: var(--border-radius-sm);
}

.comparison-table thead th:not(:first-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.comparison-table tbody tr {
    transition: all var(--transition-normal);
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table tbody tr:hover {
    background: var(--primary-blue-20) !important;
    transform: scale(1.01) !important;
}

.comparison-table tbody tr:hover td {
    background: var(--primary-blue-20) !important;
}

.comparison-table tbody tr:hover td:first-child {
    background: var(--primary-blue-20) !important;
}

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

.comparison-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: var(--border-radius-xl);
}

.comparison-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: var(--border-radius-xl);
}

.comparison-table tbody td {
    padding: 0.7rem !important;
    border: none !important;
    vertical-align: middle !important;
    transition: all var(--transition-normal) !important;
}

.comparison-table tbody td:first-child {
    background: var(--primary-blue-10) !important;
    font-weight: 600 !important;
    color: var(--dark-color) !important;
    border-right: 1px solid #e5e7eb !important;
    position: relative !important;
    width: 30% !important;
}

.comparison-table tbody td:first-child::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #e5e7eb, transparent);
}

.comparison-table tbody td:not(:first-child) {
    background: rgba(255, 255, 255, 0.5) !important;
    text-align: center !important;
}

/* Package Header in Table */
.comparison-table .package-header {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.comparison-table .package-title {
    font-size: 1.1rem;
    font-weight: 00;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.comparison-table .package-price {
    font-size: 1.5rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Feature Icons in Table */
.comparison-table .feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.comparison-table .feature-icon.success {
    background-color: rgba(25, 135, 84, 0.1) !important;
    color: #198754 !important;
}

.comparison-table .feature-icon.primary {
    background-color: rgba(13, 110, 253, 0.1) !important;
    color: #0D6EFD !important;
}

.comparison-table .feature-icon.warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
    color: #FFC107 !important;
}

.comparison-table .feature-icon.info {
    background-color: rgba(13, 202, 240, 0.1) !important;
    color: #0DCAF0 !important;
}

.comparison-table .feature-icon.danger {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #DC3545 !important;
}

/* Badges in Table */
.comparison-table .badge {
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.comparison-table .badge:hover {
    transform: scale(1.05);
}

/* Progress Bars in Table */
.comparison-table .progress {
    height: 8px;
    border-radius: var(--border-radius-sm);
    background-color: #f3f4f6;
    overflow: hidden;
}

.comparison-table .progress-bar {
    border-radius: var(--border-radius-sm);
    transition: width var(--transition-slow);
    background: var(--success-gradient);
}

.comparison-table .progress-bar.danger {
    background: var(--danger-gradient);
}

/* Buttons in Table */
.comparison-table .btn {
    border-radius: var(--border-radius-md);
    font-weight: 500;
    transition: all var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
}

.comparison-table .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.comparison-table .btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.comparison-table .btn-outline-danger {
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    background: transparent;
}

.comparison-table .btn-outline-danger:hover {
    background: var(--danger-color);
    color: white;
}

/* Facility List in Table */
.comparison-table .facility-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-table .facility-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #374151;
}

.comparison-table .facility-list li:last-child {
    margin-bottom: 0;
}

.comparison-table .facility-list .check-icon {
    color: #198754 !important;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

/* Table Responsive */
.table-responsive {
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gray);
}

/* Table Container */
.comparison-table-container {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: var(--border-radius-xl) !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-lg) !important;
    transition: all var(--transition-normal) !important;
    border: none !important;
}

.comparison-table-container:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-xl) !important;
}

/* Force override Bootstrap table styles */
.table.comparison-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: none !important;
}

.table.comparison-table thead th {
    border: none !important;
    background: var(--primary-gradient) !important;
    color: white !important;
}

.table.comparison-table tbody td {
    border: none !important;
}

.table.comparison-table tbody tr {
    border-bottom: 1px solid #e5e7eb !important;
}

.table.comparison-table tbody tr:last-child {
    border-bottom: none !important;
}

/* Additional specific overrides */
.table.comparison-table.table-bordered {
    border: none !important;
}

.table.comparison-table.table-bordered th,
.table.comparison-table.table-bordered td {
    border: none !important;
}

.table.comparison-table.table-bordered thead th {
    border: none !important;
    background: var(--primary-gradient) !important;
    color: white !important;
}

/* Force table styling */
div.comparison-table-container .table.comparison-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: none !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1) !important;
}

div.comparison-table-container .table.comparison-table thead {
    background: var(--primary-gradient) !important;
    color: white !important;
}

div.comparison-table-container .table.comparison-table thead th {
    border: none !important;
    background: transparent !important;
    color: white !important;
    padding: 1.5rem !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
}

div.comparison-table-container .table.comparison-table tbody td {
    border: none !important;
    padding: 1.25rem !important;
    vertical-align: middle !important;
}

div.comparison-table-container .table.comparison-table tbody td:first-child {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    font-weight: 600 !important;
    color: #374151 !important;
    border-right: 1px solid #e5e7eb !important;
}

div.comparison-table-container .table.comparison-table tbody td:not(:first-child) {
    background: rgba(255, 255, 255, 0.5) !important;
    text-align: center !important;
}

/* Empty State in Table */
.comparison-table .empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.comparison-table .empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.comparison-table .empty-state h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.comparison-table .empty-state p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Animation for Table Rows */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.comparison-table tbody tr {
    animation: slideInFromLeft 0.5s ease-out;
}

.comparison-table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.comparison-table tbody tr:nth-child(2) { animation-delay: 0.2s; }
.comparison-table tbody tr:nth-child(3) { animation-delay: 0.3s; }
.comparison-table tbody tr:nth-child(4) { animation-delay: 0.4s; }
.comparison-table tbody tr:nth-child(5) { animation-delay: 0.5s; }
.comparison-table tbody tr:nth-child(6) { animation-delay: 0.6s; }
.comparison-table tbody tr:nth-child(7) { animation-delay: 0.7s; }
.comparison-table tbody tr:nth-child(8) { animation-delay: 0.8s; }

/* Responsive Table Styles */
@media (max-width: 768px) {
    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .comparison-table thead th:first-child {
        width: 150px;
    }
    
    .comparison-table thead th:not(:first-child) {
        width: 250px;
    }
    
    .comparison-table .package-title {
        font-size: 1rem;
    }
    
    .comparison-table .package-price {
        font-size: 1.2rem;
    }
    
    .comparison-table .feature-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .comparison-table thead th:first-child {
        width: 120px;
    }
    
    .comparison-table thead th:not(:first-child) {
        width: 200px;
    }
    
    .comparison-table .package-title {
        font-size: 0.9rem;
    }
    
    .comparison-table .package-price {
        font-size: 1rem;
    }
    
    .comparison-table .feature-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .comparison-table .badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}