/* Custom styles for Car Wash Loyalty Rewards Program */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* General styles */
:root {
    --theme-gradient: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    --card-border-radius: 0.85rem;
    --transition-speed: 0.25s;
    --bs-border-width: 2px;
}

body {
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    letter-spacing: -0.01em;
    background-color: #121212;
}

/* Updated navbar styles */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.03em;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Button styles */
.btn {
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.btn:not(.btn-link):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--theme-gradient);
    border: none;
}

/* Card enhancements */
.card {
    border-radius: var(--card-border-radius);
    border: var(--bs-border-width) solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed);
    overflow: hidden;
    background-color: #1c1c1c;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.03);
    font-weight: 600;
}

/* Form styling */
.form-control, .form-select {
    background-color: #2d2d2d;
    border: 2px solid #3d3d3d;
    border-radius: 0.5rem;
    color: #fff;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    background-color: #333;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-text {
    color: rgba(255, 255, 255, 0.6);
}

/* Table enhancements */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table-dark {
    --bs-table-bg: #1f1f1f;
    --bs-table-hover-bg: #2a2a2a;
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0.75rem;
}

/* Hero section styles */
.hero-section {
    padding: 6rem 0;
    background: var(--theme-gradient);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: 3rem;
}

/* Feature icon styles */
.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    margin-bottom: 1.5rem;
}

/* QR Code Scanner styles */
#qr-reader {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    background-color: #2d2d2d;
    border: 3px solid rgba(13, 110, 253, 0.6);
}

.scanner-animation {
    background-color: rgba(13, 110, 253, 0.15);
}

.scanner-borders {
    border: 2px solid rgba(13, 110, 253, 0.6);
    border-radius: 0.85rem;
    z-index: 1;
}

.scanner-corner {
    position: absolute;
    width: 25px;
    height: 25px;
    border-color: #0d6efd;
    border-style: solid;
    border-width: 0;
}

.top-left {
    top: 5px;
    left: 5px;
    border-top-width: 4px;
    border-left-width: 4px;
}

.top-right {
    top: 5px;
    right: 5px;
    border-top-width: 4px;
    border-right-width: 4px;
}

.bottom-left {
    bottom: 5px;
    left: 5px;
    border-bottom-width: 4px;
    border-left-width: 4px;
}

.bottom-right {
    bottom: 5px;
    right: 5px;
    border-bottom-width: 4px;
    border-right-width: 4px;
}

.scanner-line {
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #0d6efd, transparent);
    opacity: 0.8;
    animation: scan-animation 2s infinite;
    z-index: 2;
    box-shadow: 0 0 8px rgba(13, 110, 253, 0.8);
}

@keyframes scan-animation {
    0% {
        top: 5%;
    }
    50% {
        top: 95%;
    }
    100% {
        top: 5%;
    }
}

/* Testimonial card styles */
.card.testimonial {
    border-radius: var(--card-border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    border-top: 4px solid #0d6efd;
}

.card.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Accordion custom styles */
.accordion {
    border-radius: var(--card-border-radius);
    overflow: hidden;
}

.accordion-item {
    background-color: #1c1c1c;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-button {
    font-weight: 600;
    padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(13, 110, 253, 0.25);
}

.accordion-body {
    padding: 1.5rem;
    background-color: #1c1c1c;
}

/* Reward tier cards */
.card .tier-points {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 2rem;
    color: #0d6efd;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.card .tier-points::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: #0d6efd;
    border-radius: 3px;
}

/* Gold tier special styling */
.card.gold-tier {
    background: linear-gradient(135deg, #976b29 0%, #ffd700 100%);
    color: #000;
}

/* Alert styling */
.alert {
    border-radius: var(--card-border-radius);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: #198754;
    color: white;
}

.alert-warning {
    background-color: #ffc107;
    color: #212529;
}

.alert-danger {
    background-color: #dc3545;
    color: white;
}

.alert-info {
    background-color: #0dcaf0;
    color: #212529;
}

/* Footer styling */
footer {
    background-color: #151515;
    padding: 3rem 0;
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer h5 {
    color: white;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

/* Badges */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
    border-radius: 0.5rem;
}

/* Circle icons in how it works section */
.circle-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    color: white;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .navbar {
        padding: 0.75rem 0;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
    
    #qr-reader {
        width: 280px;
        height: 280px;
    }
    
    .circle-icon {
        width: 60px;
        height: 60px;
    }
    
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
