/* Cookie Consent - Badass Helicopter Style */
body {
    font-family: 'apple-system-ui', 'Segoe UI', sans-serif;
}

#cookieBanner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 380px;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  color: white;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 107, 53, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 107, 53, 0.1);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1.5rem;
  border-radius: 20px;
  text-align: left;
  opacity: 0;
  transform: translateY(100px) scale(0.9);
  pointer-events: none;
}

#cookieBanner.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#powered-by img {
    height: 16px; margin-right: 4px;
}

.modal-body label {
    display: block; margin-bottom: 0.75rem; color: white; font-weight: 500;
}

.modal-header .modal-title {
    font-size: 1.25rem; font-weight: 600;
}

/* Cookie Banner Title */
#cookieBanner h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: white;
}

/* Cookie Banner Text */
#cookieBanner p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

/* Powered by text */
#cookieBanner small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

/* Button Styles */
.btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    min-width: 90px;
}

.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.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-outline-dark {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.btn-dark {
    background: linear-gradient(135deg, #ff6b35, #ff9500);
    color: white;
    border-color: transparent;
}

.btn-dark:hover {
    background: linear-gradient(135deg, #ff9500, #ffb347);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* Modal Styles */
.modal {
    z-index: 9999 !important; /* Ensure modal is topmost */
}

.modal-backdrop {
    z-index: 9998 !important; /* Backdrop below modal but above everything else */
}

.modal-dialog {
    max-width: 500px;
    z-index: 10000 !important; /* Dialog even higher */
}

.modal-content {
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 25px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10001 !important; /* Content at the very top */
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem 1rem;
}

.modal-title {
    color: white;
    font-weight: 700;
}

.modal-body {
    padding: 1.5rem 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.modal-body p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem 1.5rem;
    gap: 1rem;
}

.modal-footer .btn {
    flex: 1;
    min-width: auto;
}

.btn-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    opacity: 1;
}

.btn-close:hover {
    color: white;
    opacity: 1;
}

/* Form Controls */
.form-check {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: #ff6b35;
    border-color: #ff6b35;
}

.form-check-input:focus {
    border-color: #ff9500;
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.form-check-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.5;
    margin-left: 0.5rem;
}

/* Button Variants */
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35, #ff9500);
    border-color: transparent;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff9500, #ffb347);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    #cookieBanner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 1rem;
        border-radius: 15px;
        width: auto;
        max-width: 350px;
        margin: 0 auto;
    }

    #cookieBanner h5 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    #cookieBanner p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        min-width: 80px;
    }

    .d-flex.flex-wrap.gap-3 {
        gap: 0.5rem !important;
    }

    .modal-dialog {
        max-width: 95%;
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }

    .modal-content {
        max-height: calc(100vh - 1rem);
        overflow-y: auto;
    }

    .modal-header {
        padding: 1rem 1.5rem 0.75rem;
    }

    .modal-body {
        padding: 1rem 1.5rem;
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }

    .modal-footer {
        padding: 0.75rem 1.5rem 1rem;
    }

    .modal-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    #cookieBanner {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 0.8rem;
        max-width: 320px;
        border-radius: 12px;
    }

    #cookieBanner h5 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    #cookieBanner p {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 0.6rem;
    }

    .d-flex.flex-wrap.gap-3 {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem !important;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.3rem;
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .ms-auto.text-end {
        margin-top: 0.5rem !important;
        text-align: left !important;
    }

    #cookieBanner small {
        font-size: 0.65rem;
    }

    /* Modal adjustments for small screens */
    .modal-dialog {
        max-width: 98%;
        margin: 0.25rem;
        max-height: calc(100vh - 0.5rem);
    }

    .modal-content {
        max-height: calc(100vh - 0.5rem);
        border-radius: 15px;
    }

    .modal-header {
        padding: 0.75rem 1rem 0.5rem;
    }

    .modal-body {
        padding: 0.75rem 1rem;
        max-height: calc(100vh - 150px);
        overflow-y: auto;
    }

    .modal-footer {
        padding: 0.5rem 1rem 0.75rem;
    }

    .modal-title {
        font-size: 1rem;
        line-height: 1.2;
    }

    .form-check {
        margin-bottom: 1rem;
    }

    .form-check-label {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* Animation Enhancements */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#cookieBanner.show {
    animation: slideUpFade 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Focus States */
.btn:focus,
.btn:focus-visible {
    outline: 2px solid rgba(255, 107, 53, 0.5);
    outline-offset: 2px;
}

.form-check-input:focus-visible {
    outline: 2px solid rgba(255, 107, 53, 0.5);
    outline-offset: 2px;
}

/* Customize Modal - Highest Priority */
#customizeModal {
    z-index: 10002 !important; /* Highest z-index for customize modal */
}

#customizeModal .modal-backdrop {
    z-index: 10001 !important;
}

#customizeModal .modal-dialog {
    z-index: 10003 !important;
}

#customizeModal .modal-content {
    z-index: 10004 !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff6b35, #ff9500);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ff9500, #ffb347);
}