/* DSM Cookie Preferences Frontend Styles - Dark Theme Aware */

.dsm-cookie-preferences {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background: linear-gradient(145deg, #1a1a1a, #252525);
    color: #fff;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    max-width: 800px;
    margin: 20px auto;
    backdrop-filter: blur(5px);
}



.dsm-cookie-preferences h1,
.dsm-cookie-preferences h2,
.dsm-cookie-preferences h3,
.dsm-cookie-preferences h4 {
    color: #fff;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}



.dsm-cookie-preferences h1 {
    font-size: 2.2em;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}



.dsm-cookie-preferences h2 {
    font-size: 1.8em;
    color: #fff;
}

.dsm-cookie-preferences h3 {
    font-size: 1.4em;
    color: #fff;
}

.dsm-cookie-preferences p {
    margin-bottom: 1em;
    color: #ccc;
}

.dsm-cookie-preferences ul {
    margin: 1em 0;
    padding-left: 2em;
}

.dsm-cookie-preferences li {
    margin-bottom: 0.5em;
    color: #ccc;
}

.dsm-cookie-preferences strong {
    color: #fff;
}

/* Cookie Preferences Form */
#dsm-cookie-preferences-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}



.cookie-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

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

.cookie-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: #fff;
}

.cookie-category p {
    margin: 0;
    color: #ccc;
    font-size: 0.95em;
}

/* Toggle Switch Styles */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    cursor: pointer;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cookie-toggle input:checked + .toggle-slider {
    background-color: #4CAF50;
    border-color: #4CAF50;
}



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

.cookie-toggle input:disabled + .toggle-slider {
    background-color: #2196F3;
    border-color: #2196F3;
    opacity: 0.8;
    cursor: not-allowed;
}



/* Cookie Actions */
.cookie-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

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

.cookie-btn.primary {
    background: linear-gradient(145deg, #4CAF50, #45a049);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.cookie-btn.primary:hover {
    background: linear-gradient(145deg, #45a049, #388E3C);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}



.cookie-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}



.cookie-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Cookie Message */
.cookie-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.cookie-message.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.cookie-message.error {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.cookie-message.info {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

/* Current Settings Display */
#current-cookie-settings {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

#current-cookie-settings h3 {
    margin: 0 0 15px 0;
    color: #fff;
    font-size: 18px;
}

.current-setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.current-setting:last-child {
    border-bottom: none;
}

.setting-name {
    font-weight: 600;
    color: #fff;
}

.setting-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.setting-status.enabled {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.setting-status.disabled {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dsm-cookie-preferences {
        padding: 20px;
        margin: 10px;
    }
    
    #dsm-cookie-preferences-form {
        padding: 20px;
    }
    
    .cookie-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cookie-toggle {
        align-self: flex-end;
    }
    
    .cookie-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .dsm-cookie-preferences {
        border: 2px solid #fff;
    }
    
    .cookie-category {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .toggle-slider {
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .cookie-category,
    .cookie-btn,
    .toggle-slider,
    .toggle-slider:before {
        transition: none;
    }
} 