/* Notification Consent Bar Styles for Kora24 Theme */

.notification-consent-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: white;
    z-index: 1000;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Cairo', sans-serif;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.notification-consent-bar.show {
    transform: translateY(0);
}

.notification-consent-bar.hide {
    transform: translateY(100%);
}

.consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.consent-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.consent-text {
    flex: 1;
    text-align: right;
}

.consent-text h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.consent-text p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.consent-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.consent-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    outline: none;
    font-family: 'Cairo', sans-serif;
    min-width: 120px;
    justify-content: center;
}

.consent-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.accept-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-green);
    border-color: rgba(255, 255, 255, 0.9);
}

.accept-btn:hover {
    background: white;
    color: var(--dark-green);
    border-color: white;
}

.decline-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.consent-btn i {
    font-size: 0.9rem;
}

/* Consent Messages */
.consent-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1001;
    animation: slideInRight 0.3s ease;
    max-width: 350px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.consent-message.success {
    background: #4CAF50;
}

.consent-message.info {
    background: #2196F3;
}

.consent-message.fade-out {
    animation: slideOutRight 0.3s ease forwards;
}

.consent-message i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Notification Toast (reused from control panel) */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    max-width: 350px;
    z-index: 1002;
    animation: slideInRight 0.3s ease;
    border-right: 4px solid var(--primary-green);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.notification-toast.fade-out {
    animation: slideOutRight 0.3s ease forwards;
}

.toast-icon {
    background: var(--primary-green);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.toast-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .consent-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .consent-text {
        text-align: center;
    }
    
    .consent-text h4 {
        font-size: 1.1rem;
    }
    
    .consent-text p {
        font-size: 0.9rem;
    }
    
    .consent-actions {
        width: 100%;
        justify-content: center;
    }
    
    .consent-btn {
        flex: 1;
        max-width: 150px;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .notification-toast,
    .consent-message {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .consent-content {
        padding: 1rem;
    }
    
    .consent-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .consent-text h4 {
        font-size: 1rem;
    }
    
    .consent-text p {
        font-size: 0.85rem;
    }
    
    .consent-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .consent-btn {
        width: 100%;
        max-width: none;
    }
}

/* Dark Mode Support */
[data-theme="dark"] .notification-consent-bar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .notification-toast {
    background: var(--white);
    color: var(--text-dark);
}

[data-theme="dark"] .toast-content h4 {
    color: var(--text-dark);
}

[data-theme="dark"] .toast-content p {
    color: var(--text-light);
}

/* Print Styles */
@media print {
    .notification-consent-bar,
    .notification-toast,
    .consent-message {
        display: none !important;
    }
}

/* Body padding to prevent content overlap when consent bar is shown */
body.consent-bar-active {
    padding-bottom: 120px;
}

@media (max-width: 768px) {
    body.consent-bar-active {
        padding-bottom: 160px;
    }
}

@media (max-width: 480px) {
    body.consent-bar-active {
        padding-bottom: 180px;
    }
}

/* Accessibility */
.consent-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.toast-close:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .notification-consent-bar {
        border-top: 3px solid white;
    }
    
    .consent-btn {
        border-width: 3px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .notification-consent-bar,
    .notification-toast,
    .consent-message {
        transition: none;
        animation: none;
    }
    
    .consent-icon {
        animation: none;
    }
    
    .consent-btn:hover {
        transform: none;
    }
}
