/* Festival Site Styles */

/* Fix for Bootstrap modal backdrop issues */
.modal-backdrop {
    z-index: 1040;
}

.modal {
    z-index: 1050;
}

/* Ensure proper modal cleanup */
body.modal-open {
    overflow: hidden;
}

/* Fix for passive event listener warnings */
* {
    touch-action: manipulation;
}

/* Icon centering utility - reusable for any button with centered icon */
.icon-centered {
    padding: 0;
    position: relative;
}

.icon-centered i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Specific button sizes */
.basket-button {
    width: 3rem;
    height: 3rem;
    border: none;
}

.basket-button i {
    font-size: 1.25rem;
}

.trash-button {
    width: 32px;
    height: 32px;
}

.trash-button i {
    font-size: 0.875rem;
}

/* Basket count badge styling */
.basket-count-badge {
    font-size: 0.65rem;
    min-width: 1.1rem;
    height: 1.1rem;
    line-height: 1.1rem;
    padding: 0.1rem 0.3rem;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Card and Button Transitions - exclude card headers to prevent layout interference */
.card:not(.card-header), .btn {
    transition: all 0.2s ease-in-out;
}

.rounded-circle {
    flex-shrink: 0;
}

/* Card Icon Styles */
.card-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

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

.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Text Effects */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Hero Icon Animation - Note: .hero-icon class is unused and removed */

/* Search and CTA Styles */
.search-hero {
    max-width: 100%;
}

@media (min-width: 768px) {
    .search-hero {
        max-width: 500px;
    }
}

@media (min-width: 1200px) {
    .search-hero {
        max-width: 600px;
    }
}

/* Mobile search layout - stack input and button vertically for better mobile UX */
@media (max-width: 767.98px) {
    .input-group.search-hero {
        flex-direction: column;
        width: 100%;
    }

    .input-group.search-hero .form-control {
        border-radius: 0.375rem 0.375rem 0 0;
        margin-bottom: 0.5rem;
        border-bottom: 0;
        width: 100%;
    }

    .input-group.search-hero .btn {
        border-radius: 0 0 0.375rem 0.375rem;
        width: 100%;
        border-top: 0;
    }
}

.search-hero .form-control {
    font-size: 1.1rem;
}

.cta-primary {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Form field focus improvements */
.entry-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    transform: translateY(-1px);
}

.entry-form .form-check-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Decorative Elements - Note: Specific numbered classes (decorative-note-1 through 4) are unused and removed */

/* Festival Logo Styles */
.festival-logo {
    transition: transform 0.3s ease-in-out;
    border: 3px solid rgba(255, 255, 255, 0.2);
    object-fit: contain;
}

.festival-logo:hover {
    transform: scale(1.05);
}

.festival-logo-container {
    position: relative;
    display: inline-block;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .festival-logo {
        max-width: 150px !important;
        max-height: 150px !important;
    }
}

@media (max-width: 576px) {
    .festival-logo {
        max-width: 120px !important;
        max-height: 120px !important;
    }
}

/* Administrator Cards */
.admin-card {
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.admin-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12);
    border-color: rgba(13, 110, 253, 0.2);
}

.admin-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease-in-out;
}

.admin-card:hover .admin-avatar {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Enhanced contact buttons */
.admin-card .btn {
    border-radius: 25px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact details coming soon styling */
.admin-card .btn-outline-secondary {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffc107;
    color: #856404;
    cursor: default;
}

.admin-card .btn-outline-secondary:hover {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffc107;
    color: #856404;
    transform: none;
    box-shadow: none;
}

.admin-card .btn::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;
}

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

.admin-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

/* Enhanced category badges */
.admin-card .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.admin-card .badge:hover {
    transform: scale(1.05);
}

/* Contact availability indicator */
.admin-card .position-relative .badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(25, 135, 84, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}

/* Enhanced tip alert */
.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left: 4px solid #0dcaf0;
}

/* Enhanced hover effects for better engagement */
.admin-card:hover .badge {
    background: linear-gradient(135deg, #e7f3ff 0%, #cce7ff 100%);
    color: #0d6efd;
}

/* Quick Contact Section */
.btn-outline-primary, .btn-outline-success {
    transition: all 0.3s ease-in-out;
    border-width: 2px;
}

.btn-outline-primary:hover, .btn-outline-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border-color: #0d6efd;
    color: white;
}

.btn-outline-success:hover {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    border-color: #198754;
    color: white;
}

/* Responsive admin cards */
@media (max-width: 768px) {
    .admin-avatar {
        width: 60px;
        height: 60px;
    }

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

    .admin-card .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

/* Add to Cart UX Improvements */


/* Toast notifications */
.toast-container {
    z-index: 1060;
    top: 20px !important;
    right: 80px !important;
}

.toast {
    min-width: 320px;
    max-width: 360px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    animation: slideInRight 0.4s ease-out;
}


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

.toast-header {
    border-bottom: none;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
}

.toast-body {
    padding: 0.75rem 1rem;
    background: #ffffff;
}

.toast .bg-success {
    background-color: #198754 !important;
}

.toast .text-success {
    color: #198754 !important;
}

.toast .bg-success.bg-opacity-10 {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.toast .bg-white.bg-opacity-20 {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.toast .bi-basket-fill {
    transition: transform 0.2s ease;
}

.toast .bi-basket-fill:hover {
    transform: scale(1.1);
}

.toast-body {
    transition: background-color 0.2s ease;
}

.toast-body:hover {
    background-color: #f8f9fa !important;
}

/* Basket count animation */
.basket-count-badge {
    transition: all 0.3s ease-in-out;
}

/* Enhanced alert styling */
.alert {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.alert .alert-heading {
    font-weight: 600;
}

/* Form submission states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success state animations */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.success-pulse {
    animation: successPulse 0.6s ease-in-out;
}

/* Class description in modal */
.class-description {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 0.375rem;
    padding: 0.75rem;
    border-left: 3px solid #0d6efd;
}

.class-description h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.class-description p {
    line-height: 1.5;
    color: #6c757d;
}

/* Enhanced modal styling */
.modal-lg {
    max-width: 800px;
}

.modal-header.bg-primary {
    border-bottom: none;
}

.modal-footer.bg-light {
    border-top: 1px solid #dee2e6;
}

/* Form field improvements - consolidated with entry-form styles */
.form-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.form-label i {
    color: #6c757d;
}

/* Enhanced button styling - consolidated with other button styles */
.btn-lg {
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Consolidated button hover effects */
.btn:not(:disabled):hover {
    transform: translateY(-1px);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Class info enhancements */
.text-primary {
    color: #0d6efd !important;
}

.h4 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Enhanced form styling for entry forms */
.entry-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.entry-form .form-label i {
    color: #6c757d;
    margin-right: 0.5rem;
    font-size: 1rem;
}

.entry-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    min-height: 48px;
}

.entry-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    transform: translateY(-1px);
}

.entry-form .form-control.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.94-.94 1.88 1.88 3.77-3.77.94.94L4.12 9.55z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.entry-form .form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4 1.4-1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.entry-form .form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.entry-form .vocal-fields {
    background-color: #f8f9fa;
    border-radius: 0.75rem;
    padding: 2rem;
    margin-top: 1.5rem;
    border-left: 4px solid #0d6efd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.entry-form .vocal-fields h6 {
    color: #0d6efd;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.entry-form .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
}

.entry-form .form-check-label {
    font-weight: 500;
    color: #495057;
    margin-left: 0.5rem;
}

/* Enhanced submit button with hover/active feedback */
.entry-form .btn-primary {
    font-weight: 600;
}

.entry-form .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.entry-form .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

/* Accompanist radio button styling */
.accompanist-service {
    margin-top: 1rem;
}

.accompanist-service .form-label {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #495057;
}

.accompanist-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.accompanist-service .form-check {
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    cursor: pointer;
    position: relative;
}

.accompanist-service .form-check:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
    transform: translateY(-1px);
}

.accompanist-service .form-check-input {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
}

.accompanist-service .form-check-input:checked + .form-check-label {
    color: #0d6efd;
    font-weight: 600;
}

.accompanist-service .form-check-input:checked ~ .form-check {
    border-color: #0d6efd;
    background-color: #f8f9ff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.accompanist-service .form-check-label {
    width: 100%;
    cursor: pointer;
    margin: 0;
    padding-left: 2rem;
    display: block;
}

.accompanist-service .form-check-label .d-flex {
    align-items: center;
    justify-content: space-between;
}

.accompanist-service .form-check-label span:first-child {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.accompanist-service .form-check-label i {
    color: #6c757d;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.accompanist-service .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

/* HTMX Loading and Error States */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: block;
}

.htmx-request.htmx-indicator {
    display: block;
}

/* Form validation improvements */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* Theme toggle container positioning */
.theme-toggle-container {
    z-index: 1050;
}

/* Basket indicator positioning */
.basket-indicator {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1050;
}

/* Toast notifications - min-width already defined above */

/* Modal form improvements */
.modal-body .card {
    margin-bottom: 0;
}

/* Success icon utility classes */
.success-icon-container {
    width: 60px;
    height: 60px;
}

/* Simple, clean header styling - no complex flexbox */
.card-header.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
