/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #009d9a 0%, #008b8a 100%);
    color: white;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 157, 154, 0.3);
    animation: slideUp 0.5s ease-out;
    border-top: 3px solid #f3e0ab;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-consent-text h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.95;
    color: white;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-consent-buttons .btn {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.cookie-consent-buttons .btn-outline-secondary {
    background: transparent;
    border: 2px solid #f3e0ab;
    color: #f3e0ab;
}

.cookie-consent-buttons .btn-outline-secondary:hover {
    background: #f3e0ab;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 224, 171, 0.4);
}

.cookie-consent-buttons .btn-outline-primary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cookie-consent-buttons .btn-outline-primary:hover {
    background: white;
    color: #009d9a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.cookie-consent-buttons .btn-primary {
    background: #f3e0ab;
    border: 2px solid #f3e0ab;
    color: #000;
}

.cookie-consent-buttons .btn-primary:hover {
    background: #e8d495;
    border-color: #e8d495;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 224, 171, 0.5);
}

/* Cookie Settings Modal Styles */
#cookie-settings-modal {
    z-index: 999999 !important;
}

#cookie-settings-modal .modal-dialog {
    z-index: 999999 !important;
}

#cookie-settings-modal .modal-content {
    z-index: 999999 !important;
}

/* Ensure modal backdrop is above other elements */
.modal-backdrop {
    z-index: 999998 !important;
}

/* Additional modal positioning */
#cookie-settings-modal .modal {
    z-index: 999999 !important;
}

#cookie-settings-modal .modal.show {
    z-index: 999999 !important;
}

/* Override Bootstrap's default modal z-index */
.modal {
    z-index: 999999 !important;
}

.modal-backdrop {
    z-index: 999998 !important;
}

/* Force modal to be on top */
#cookie-settings-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 999999 !important;
}

#cookie-settings-modal .modal-dialog {
    position: relative !important;
    z-index: 999999 !important;
    margin: 1.75rem auto !important;
}

#cookie-settings-modal .modal-content {
    position: relative !important;
    z-index: 999999 !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    border-color: #009d9a;
    box-shadow: 0 2px 8px rgba(0, 157, 154, 0.15);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-header .form-check {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 24px;
}

.cookie-category-header .form-check-input {
    margin: 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    position: relative;
    top: 0;
    transform: none;
    vertical-align: middle;
    margin-top: 0;
    margin-bottom: 0;
}

.cookie-category-header .form-check-label {
    margin: 0;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    line-height: 1.2;
    display: inline-block;
    vertical-align: middle;
    height: auto;
    margin-top: 0;
    margin-bottom: 0;
}

/* Ensure checkbox alignment is perfect */
.cookie-category-header .form-check-input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid #ccc;
    border-radius: 3px;
    background: white;
    cursor: pointer;
}

.cookie-category-header .form-check-input[type="checkbox"]:checked {
    background-color: #009d9a;
    border-color: #009d9a;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
    background-size: 75%;
    background-position: center;
    background-repeat: no-repeat;
}

.cookie-category-header .form-check-input:focus {
    border-color: #009d9a;
    box-shadow: 0 0 0 0.2rem rgba(0, 157, 154, 0.25);
}

.cookie-category-header .badge {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    margin-left: 10px;
    flex-shrink: 0;
}

.cookie-category-header .badge-success {
    background-color: white;
    color: #009d9a;
    border: 2px solid #009d9a;
}

.cookie-category-header .badge-info {
    background-color: white;
    color: #009d9a;
    border: 2px solid #009d9a;
}

.cookie-category-header .badge-warning {
    background-color: white;
    color: #009d9a;
    border: 2px solid #009d9a;
}

.cookie-description {
    margin: 0;
    margin-top: 8px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    padding-left: 26px;
}

/* Modal Header Styling */
#cookie-settings-modal .modal-header {
    background: linear-gradient(135deg, #009d9a 0%, #008b8a 100%);
    color: white;
    border-bottom: 3px solid #f3e0ab;
    padding: 20px 25px;
}

#cookie-settings-modal .modal-header .close {
    color: white;
    opacity: 0.8;
    font-size: 24px;
}

#cookie-settings-modal .modal-header .close:hover {
    opacity: 1;
}

#cookie-settings-modal .modal-title {
    color: white;
    font-weight: 600;
    font-size: 20px;
}

#cookie-settings-modal .modal-title i {
    margin-right: 8px;
    color: white;
}

/* Modal Body Styling */
#cookie-settings-modal .modal-body {
    padding: 25px;
    background: #f8f9fa;
}

/* Modal Footer Styling */
#cookie-settings-modal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 20px 25px;
    background: white;
}

#cookie-settings-modal .modal-footer .btn {
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

#cookie-settings-modal .modal-footer .btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

#cookie-settings-modal .modal-footer .btn-secondary:hover {
    background: #5a6268;
    border-color: #545b62;
    transform: translateY(-1px);
}

#cookie-settings-modal .modal-footer .btn-primary {
    background: #f3e0ab;
    border: 2px solid #000000;
    color: #000000;
    font-weight: 600;
}

#cookie-settings-modal .modal-footer .btn-primary:hover {
    background: #e6d19a;
    border-color: #333333;
    color: #000000;
    transform: translateY(-1px);
}

#cookie-settings-modal .modal-footer .btn i {
    margin-right: 6px;
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-consent-text h4 {
        font-size: 16px;
    }
    
    .cookie-consent-text p {
        font-size: 13px;
    }
    
    .cookie-consent-banner {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-consent-buttons .btn {
        width: 100%;
    }
    
    .cookie-consent-banner {
        padding: 12px;
    }
}
