/* Base Styles */
body {
    background-color: #f5f7fa;
    font-family: 'Inter', sans-serif;
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, #4F46E5, #9333EA);
}

/* Page Container */
.page {
    /* width: 375px; */
    /* height: 812px; */
    /* overflow: hidden; */
    position: relative;
    background-color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* App Container */
.app-container {
    display: flex;
    gap: 2rem;
    /* padding: 2rem; */
    overflow-x: auto;
}

/* Custom scrollbar */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Common UI Components */

/* Card Styles */
.card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Filter Sidebar Styles */
.filter-sidebar {
    position: absolute;
    top: 0;
    right: -375px;
    width: 320px;
    height: 100%;
    background-color: white;
    z-index: 50;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 1.5rem;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.filter-sidebar.open {
    transform: translateX(-375px);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 40;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Credit Card Styles */
.credit-card {
    background: linear-gradient(135deg, #4F46E5, #9333EA);
    border-radius: 16px;
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    height: 180px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.credit-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 75px;
    background: rgba(255, 255, 255, 0.1);
}

.credit-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 200px;
    height: 200px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
}

/* Custom Input Styles */
.card-input {
    border: none;
    border-bottom: 1px solid #e5e7eb;
    background: transparent;
    padding: 10px 0;
    width: 100%;
    outline: none;
    transition: border-color 0.3s;
}

.card-input:focus {
    border-color: #4F46E5;
}

/* Animation for Processing */
@keyframes spinner {
    to {transform: rotate(360deg);}
}

.spinner {
    animation: spinner 1.5s linear infinite;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup {
    background: white;
    border-radius: 20px;
    padding: 30px;
    width: 320px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.popup-overlay.active .popup {
    transform: scale(1);
}

/* Slider Track */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 5px;
    background: #e5e7eb;
    outline: none;
}

/* Slider Thumb */
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #9333EA);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #9333EA);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Custom checkbox */
.custom-checkbox {
    position: relative;
    display: block;
    padding-left: 30px;
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f3f4f6;
    border-radius: 6px;
}

.custom-checkbox input:checked ~ .checkmark {
    background: linear-gradient(135deg, #4F46E5, #9333EA);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
} 