/* Estilos para o Sistema de Cookies - ADCB */

/* Banner de Cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid #22c55e;
}

.cookie-banner.cookie-banner-show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.cookie-header i {
    font-size: 24px;
    color: #fbbf24;
}

.cookie-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
}

.cookie-content p {
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
    opacity: 0.95;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-cookie {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-accept {
    background: #22c55e;
    color: white;
}

.btn-accept:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.btn-settings {
    background: #6b7280;
    color: white;
}

.btn-settings:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.btn-essential {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-essential:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-policy-link {
    color: #93c5fd;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.cookie-policy-link:hover {
    color: #dbeafe;
    text-decoration: underline;
}

/* Modal de Configurações */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal.cookie-modal-show {
    opacity: 1;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-modal.cookie-modal-show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-header {
    padding: 25px 25px 15px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
}

.cookie-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.cookie-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cookie-modal-body {
    padding: 25px;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

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

.cookie-category h4 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #1f2937;
}

.cookie-category p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

/* Switch Toggle */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.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: 24px;
}

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

input:checked + .cookie-slider {
    background-color: #22c55e;
}

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

input:disabled + .cookie-slider {
    background-color: #22c55e;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 12px 12px;
}

.btn-save {
    background: #22c55e;
    color: white;
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
}

.btn-save:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

/* Link de gerenciar cookies no rodapé */
.manage-cookies-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.manage-cookies-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-content {
        gap: 12px;
    }
    
    .cookie-header h3 {
        font-size: 1.2em;
    }
    
    .cookie-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-cookie {
        justify-content: center;
        padding: 12px 20px;
    }
    
    .cookie-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 20px;
    }
    
    .cookie-category {
        padding: 15px;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .cookie-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .cookie-header i {
        font-size: 20px;
    }
    
    .cookie-content p {
        font-size: 13px;
    }
    
    .btn-cookie {
        font-size: 13px;
        padding: 10px 16px;
    }
}

/* Animações adicionais */
@keyframes cookieSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes cookieSlideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-banner-enter {
    animation: cookieSlideUp 0.3s ease-out;
}

.cookie-banner-exit {
    animation: cookieSlideDown 0.3s ease-in;
}

/* Indicador de status dos cookies */
.cookie-status-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1e40af;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-status-indicator:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cookie-status-indicator i {
    font-size: 14px;
}

/* Estados especiais */
.cookie-banner-urgent {
    border-top-color: #ef4444;
}

.cookie-banner-urgent .cookie-header i {
    color: #ef4444;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}
