/* Cookie Consent Bar Styles */
.cookie-consent-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    display: none;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent-modal.show {
    display: block;
    transform: translateY(0);
}

.cookie-consent-overlay {
    display: none;
}

.cookie-consent-content {
    background: white;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-height: 50vh;
    overflow-y: auto;
    position: relative;
}

.cookie-consent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}

.cookie-consent-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.cookie-consent-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: #666;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.cookie-consent-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.cookie-consent-body {
    padding: 0 24px;
}

.cookie-consent-body > p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.4;
    color: #555;
}

.cookie-categories {
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.cookie-category {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.cookie-category-header {
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.cookie-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.cookie-slider {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.3s;
    margin-right: 12px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.cookie-toggle input:checked + .cookie-slider {
    background-color: #007bff;
}

.cookie-toggle input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-slider.essential {
    background-color: #28a745;
}

.cookie-toggle input:disabled + .cookie-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    flex-grow: 1;
}

.cookie-required {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.cookie-category-description {
    padding: 12px 16px;
    background-color: white;
}

.cookie-category-description p {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.3;
    color: #666;
}

.cookie-category-description p:last-child {
    margin-bottom: 0;
}

.cookie-consent-links {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: center;
}

.cookie-consent-links a {
    color: #007bff;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.cookie-consent-links a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.cookie-consent-footer {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 100px;
}

.cookie-btn-primary {
    background-color: #007bff;
    color: white;
}

.cookie-btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.cookie-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.cookie-btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-2px);
}

/* Settings Trigger Button */
.cookie-settings-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
}

.cookie-settings-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.cookie-settings-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Consent Confirmation Notification */
.cookie-consent-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.cookie-consent-notification.show {
    transform: translateX(0);
}

.cookie-consent-notification i {
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-content {
        max-height: 60vh;
    }
    
    .cookie-categories {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .cookie-consent-header {
        padding: 12px 16px 0;
    }
    
    .cookie-consent-header h3 {
        font-size: 16px;
    }
    
    .cookie-consent-body {
        padding: 0 16px;
    }
    
    .cookie-consent-footer {
        padding: 12px 16px;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        margin-bottom: 4px;
    }
    
    .cookie-settings-trigger {
        bottom: 15px;
        right: 15px;
    }
    
    .cookie-settings-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .cookie-consent-notification {
        top: 15px;
        right: 15px;
        left: 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-header h3 {
        font-size: 14px;
    }
    
    .cookie-consent-body > p {
        font-size: 12px;
    }
    
    .cookie-label {
        font-size: 12px;
    }
    
    .cookie-category-description p {
        font-size: 11px;
    }
    
    .cookie-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .cookie-consent-content {
        max-height: 70vh;
    }
}

/* Accessibility Improvements */
.cookie-consent-modal:focus {
    outline: none;
}

.cookie-consent-close:focus,
.cookie-btn:focus,
.cookie-settings-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.cookie-toggle:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Animation for better UX */
@keyframes slideUpFromBottom {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent-modal.show {
    animation: slideUpFromBottom 0.3s ease-out;
}

/* Print styles */
@media print {
    .cookie-consent-modal,
    .cookie-consent-overlay,
    .cookie-settings-trigger,
    .cookie-consent-notification {
        display: none !important;
    }
} 