/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #26472B 0%, #45A735 100%);
    color: white;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-icon {
    font-size: 40px;
    color: #78EB54;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: bold;
    color:#fff;
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
    color:#fff;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-accept {
    background: linear-gradient(45deg, #78EB54 0%, #45A735 100%);
    color: #26472B;
}

.btn-accept:hover {
    background: linear-gradient(45deg, #45A735 0%, #78EB54 100%);
    transform: translateY(-2px);
}

.btn-settings {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-settings:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

.btn-reject {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
}

.btn-reject:hover {
    background: rgba(255,0,0,0.2);
    border-color: rgba(255,0,0,0.4);
}

/* Cookie Modal Styles */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10001;
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    padding: 20px;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 1px solid #eee;
}

.cookie-modal-header h3 {
    margin: 0;
    color: #26472B;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: #f5f5f5;
    color: #333;
}

.cookie-modal-body {
    padding: 20px 30px;
}

.cookie-description {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    border-color: #78EB54;
    box-shadow: 0 2px 10px rgba(120, 235, 84, 0.1);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.cookie-category-info h4 {
    margin: 0;
    color: #26472B;
    font-size: 16px;
}

.cookie-status {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

.cookie-category-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #78EB54;
}

input:checked + .cookie-slider:before {
    transform: translateX(22px);
}

input:disabled + .cookie-slider {
    background-color: #78EB54;
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 20px 30px 25px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-save {
    background: linear-gradient(45deg, #26472B 0%, #45A735 100%);
    color: white;
}

.btn-save:hover {
    background: linear-gradient(45deg, #45A735 0%, #26472B 100%);
    transform: translateY(-2px);
}

/* Cookie Settings Button (Sidebar) */
.cookie-settings-btn {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%) translateY(-50%); }
    to { transform: translateX(0) translateY(-50%); }
}

.cookie-settings-btn button {
    background: linear-gradient(135deg, #26472B 0%, #45A735 100%);
    color: white;
    border: none;
    padding: 15px 8px 15px 15px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: bold;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.cookie-settings-btn button:hover {
    background: linear-gradient(135deg, #45A735 0%, #78EB54 100%);
    transform: translateX(5px);
    box-shadow: 5px 0 15px rgba(0,0,0,0.3);
}

.cookie-settings-btn i {
    font-size: 16px;
    writing-mode: initial;
    text-orientation: initial;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-cookie {
        justify-content: center;
        padding: 15px 20px;
    }
    
    .cookie-modal-content {
        margin: 10px;
        max-height: 90vh;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 15px 20px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cookie-settings-btn button {
        writing-mode: initial;
        text-orientation: initial;
        padding: 12px 15px;
        border-radius: 0 15px 15px 0;
    }
    
    .cookie-settings-btn button span {
        display: none;
    }
}