/* Cookie Consent Panel Styles */
.cookie-consent-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-family: 'Open Sans', Arial, sans-serif;
}

.cookie-consent-panel.show {
    opacity: 1;
    visibility: visible;
}

.cookie-consent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.cookie-consent-container {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cookie-consent-panel.show .cookie-consent-container {
    transform: scale(1) translateY(0);
}

.cookie-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e1e8ed;
    position: relative;
}

.cookie-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.5));
}

.cookie-content {
    flex: 1;
    min-width: 0;
}

.cookie-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #2c3e50;
    line-height: 1.3;
}

.cookie-description {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: #5a6c7d;
}

.cookie-description a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cookie-description a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.cookie-btn-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.cookie-btn-close:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    padding: 20px 24px 24px 24px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.cookie-btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.cookie-btn-secondary {
    background: #f8f9fa;
    color: #5a6c7d;
    border: 2px solid #e1e8ed;
}

.cookie-btn-secondary:hover {
    background: #e9ecef;
    color: #2c3e50;
    border-color: #adb5bd;
    transform: translateY(-2px);
}

/* Settings Panel Styles */
.cookie-settings {
    padding: 20px 24px;
    border-bottom: 1px solid #e1e8ed;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-category {
    padding: 16px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.cookie-category:hover {
    border-color: #3498db;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.cookie-checkbox-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    width: 100%;
}

.cookie-checkbox-container input[type="checkbox"] {
    display: none;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    background: #ffffff;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cookie-checkbox-container input[type="checkbox"]:checked + .cookie-checkmark {
    background: #3498db;
    border-color: #3498db;
}

.cookie-checkbox-container input[type="checkbox"]:checked + .cookie-checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cookie-checkbox-container input[type="checkbox"]:disabled + .cookie-checkmark {
    background: #e9ecef;
    border-color: #adb5bd;
    cursor: not-allowed;
}

.cookie-category-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.cookie-required {
    font-size: 12px;
    color: #95a5a6;
    font-weight: normal;
    margin-left: 8px;
}

.cookie-category-description {
    font-size: 14px;
    line-height: 1.5;
    color: #5a6c7d;
    margin: 0;
    padding-left: 32px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-panel {
        padding: 16px;
    }
    
    .cookie-consent-container {
        max-width: 100%;
        max-height: 95vh;
    }
    
    .cookie-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 20px 20px 16px 20px;
    }
    
    .cookie-icon {
        align-self: center;
    }
    
    .cookie-actions {
        flex-direction: column;
        padding: 16px 20px 20px 20px;
    }
    
    .cookie-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-settings {
        padding: 16px 20px;
    }
    
    .cookie-category {
        padding: 12px;
    }
    
    .cookie-category-description {
        padding-left: 0;
        margin-top: 8px;
    }
    
    .cookie-checkbox-container {
        gap: 6px;
    }
    
    .cookie-category-header {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-panel {
        padding: 12px;
    }
    
    .cookie-header {
        padding: 16px 16px 12px 16px;
    }
    
    .cookie-title {
        font-size: 18px;
    }
    
    .cookie-description {
        font-size: 13px;
    }
    
    .cookie-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .cookie-settings {
        padding: 12px 16px;
    }
}

/* Accessibility */
.cookie-btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.cookie-checkbox-container:focus-within .cookie-checkmark {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.cookie-checkbox-container:hover .cookie-checkmark {
    border-color: #3498db;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-consent-container {
        border: 2px solid #000000;
    }
    
    .cookie-btn-primary {
        background: #000000;
        color: #ffffff;
    }
    
    .cookie-btn-secondary {
        border-color: #000000;
        color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent-panel,
    .cookie-consent-container,
    .cookie-btn,
    .cookie-checkmark {
        transition: none;
    }
}

/* Scrollbar styling for settings */
.cookie-consent-container::-webkit-scrollbar {
    width: 6px;
}

.cookie-consent-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cookie-consent-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.cookie-consent-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
} 