/* Base styles */
:root {
    /* Modern Blue-Grey Theme */
    --color-white: #E8EDF2;
    --color-black: #1A222B;
    --accent-primary: #C9996B;
    /* Tan accent */
    --accent-secondary: #A67C52;
    /* Lighter Brown secondary accent */
    --glass-dark: rgba(44, 57, 71, 0.85);
    --gray-200: #C5D5E9;
    --gray-300: #A3B3C5;
    --gray-400: #8191A1;
    --gray-600: #5F6E7D;
    --gray-700: #4E5D6B;
    --gray-800: #3D4B59;
    --gray-900: #2C3947;
    /* Base Dark Blue-Grey */

    --bg-dark: #2C3947;
    --bg-darker: #1A222B;
    --text-light: #E8EDF2;
    --text-gray: #C9996B;
}

body.light-theme {
    /* Modern Blue-Grey Light Theme */
    --color-white: #2C3947;
    --color-black: #E8EDF2;
    --accent-primary: #C9996B;
    /* Tan accent */
    --accent-secondary: #A67C52;
    --glass-dark: rgba(232, 237, 242, 0.9);
    --gray-200: #4F6371;
    --gray-300: #71828E;
    --gray-400: #93A1AB;
    --gray-600: #B5C0C8;
    --gray-700: #C6CFD6;
    --gray-800: #D7DEE4;
    --gray-900: #E8EDF2;

    --bg-dark: #E8EDF2;
    --bg-darker: #C9996B;
    --text-light: #2C3947;
    --text-gray: #4F6371;
}

/* Mode transitions */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Animations */
@keyframes glow {
    0% {
        text-shadow: 0 0 5px var(--accent-primary);
    }

    50% {
        text-shadow: 0 0 20px var(--accent-primary);
    }

    100% {
        text-shadow: 0 0 5px var(--accent-primary);
    }
}

.glow-text {
    animation: glow 2s infinite;
}

/* Carousel */
.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel-items {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 100%;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
}

/* Service list */
.service-item {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Form elements */
input[type="checkbox"] {
    accent-color: var(--accent-primary);
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

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

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

/* Error message */
.error-message {
    background-color: rgba(220, 38, 38, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    margin-top: 0.5rem;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Tab styles */
.main-tab-button.active,
.tab-button.active {
    background-color: var(--accent-primary) !important;
    color: white !important;
    transform: scale(1.05);
}

.main-tab-button:not(.active),
.tab-button:not(.active) {
    background-color: #4B5563 !important;
    color: #D1D5DB !important;
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
}

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

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

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

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

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

/* E-Commerce specific styles */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#cart-items::-webkit-scrollbar {
    width: 6px;
}

#cart-items::-webkit-scrollbar-track {
    background: transparent;
}

#cart-items::-webkit-scrollbar-thumb {
    background: #374151;
    /* gray-700 */
    border-radius: 10px;
}

/* Skeleton Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.skeleton {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #1f2937 4%, #374151 25%, #1f2937 36%);
    background-size: 1000px 100%;
}

/* Responsive design */
@media (max-width: 640px) {
    .carousel-item {
        padding: 0.5rem;
    }
}