/* ===================================
   Cookie Consent Banner & Modal Styles
   =================================== */

/* Banner Container */
.cookie-consent-banner {
    position: fixed;
 bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid var(--bs-primary, #0a4f9c);
}

.cookie-consent-banner.show {
    bottom: 0;
}

/* Dark Theme Support */
[data-theme="dark"] .cookie-consent-banner {
    background: rgba(27, 38, 49, 0.98);
  border-top-color: var(--bs-primary, #1870d5);
}

/* Banner Content Layout */
.cookie-banner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 0;
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 0;
    }
}

/* Banner Icon */
.cookie-banner-icon {
    font-size: 2rem;
    color: var(--bs-primary, #0a4f9c);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-banner-icon {
   display: none;
    }
}

/* Banner Text */
.cookie-banner-text {
    flex: 1;
    min-width: 0;
}

.cookie-banner-text p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-banner-text strong {
    color: var(--bs-primary, #0a4f9c);
    font-weight: 600;
}

[data-theme="dark"] .cookie-banner-text strong {
    color: #5dbdec;
}

/* Banner Actions */
.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cookie-banner-actions {
      flex-direction: column;
        width: 100%;
    }

    .cookie-banner-actions .btn {
        width: 100%;
   justify-content: center;
    }
}

/* Button Styles */
.cookie-banner-actions .btn {
  white-space: nowrap;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cookie-banner-actions .btn-primary {
    background: linear-gradient(90deg, #0a4f9c, #1870d5);
    border: none;
}

.cookie-banner-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 79, 156, 0.3);
}

/* Modal Customization */
#cookieSettingsModal .modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] #cookieSettingsModal .modal-content {
    background: var(--surface, #1b2631);
    color: #d5dce3;
}

#cookieSettingsModal .modal-header {
    background: linear-gradient(135deg, rgba(10, 79, 156, 0.05), rgba(24, 112, 213, 0.1));
    border-radius: 1rem 1rem 0 0;
    padding: 1.5rem;
}

[data-theme="dark"] #cookieSettingsModal .modal-header {
    background: linear-gradient(135deg, rgba(10, 79, 156, 0.15), rgba(24, 112, 213, 0.25));
}

#cookieSettingsModal .modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

#cookieSettingsModal .modal-footer {
  padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] #cookieSettingsModal .modal-footer {
    background: rgba(255, 255, 255, 0.03);
}

/* Cookie Category Styles */
.cookie-category {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0.5rem;
    transition: background 0.2s ease;
}

.cookie-category:hover {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .cookie-category {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .cookie-category:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cookie-category h6 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.cookie-category .fas {
    width: 1.25rem;
}

.cookie-details {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    border-left: 3px solid var(--bs-primary, #0a4f9c);
    border-radius: 0.25rem;
    margin-top: 0.5rem;
}

[data-theme="dark"] .cookie-details {
    background: rgba(255, 255, 255, 0.04);
}

/* Toggle Switch Customization */
.form-check-input {
    width: 3rem;
    height: 1.5rem;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--bs-success, #198754);
    border-color: var(--bs-success, #198754);
}

.form-check-input:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Alert Styling */
#cookieSettingsModal .alert-info {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.2);
    color: inherit;
}

[data-theme="dark"] #cookieSettingsModal .alert-info {
    background: rgba(23, 162, 184, 0.15);
    border-color: rgba(23, 162, 184, 0.3);
}

/* Scrollbar Styling for Modal */
#cookieSettingsModal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#cookieSettingsModal .modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

#cookieSettingsModal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

#cookieSettingsModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] #cookieSettingsModal .modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] #cookieSettingsModal .modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

/* Accessibility */
.cookie-consent-banner:focus-within {
    outline: 3px solid var(--bs-primary, #0a4f9c);
    outline-offset: 2px;
}

/* Animation for Banner */
@keyframes slideUp {
    from {
        transform: translateY(100%);
     opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Print Styles */
@media print {
    .cookie-consent-banner {
        display: none !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .cookie-consent-banner {
        transition: none;
    }

    .cookie-banner-actions .btn {
        transition: none;
    }
}
