/**
 * Cookie Management Page Styles
 * Extracted from page-cookies.php inline <style>
 *
 * @package DLM_EFormation
 */

.cookie-management {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

.cookie-intro {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid #102a43;
}

.cookie-intro p {
    color: #334e68;
}

.current-status {
    margin-top: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #102a43;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.cookie-categories {
    margin-bottom: 2rem;
}

.cookie-category {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-header {
    background: #f8f9fa;
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-header h3 {
    margin: 0;
    color: #102a43;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.category-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-switch .slider,
input:checked + .slider {
    background-color: #102a43;
}

input:checked + .toggle-switch .slider:before,
input:checked + .slider:before {
    transform: translateX(26px);
}

input:disabled + .toggle-switch .slider,
input:disabled + .slider {
    background-color: #d4a012;
    cursor: not-allowed;
}

.toggle-status {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 100px;
    color: #334e68;
}

.category-description {
    padding: 1.5rem;
}

.category-description p {
    color: #486581;
}

.cookie-details {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #d4a012;
}

.cookie-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #102a43;
    margin-bottom: 0.5rem;
}

.cookie-details ul {
    margin: 1rem 0 0 0;
    padding-left: 1rem;
}

.cookie-details li {
    margin-bottom: 0.5rem;
    color: #486581;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.cookie-actions .btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.cookie-actions .btn-primary {
    background: #102a43;
    color: white;
}

.cookie-actions .btn-primary:hover {
    background: #1a3a5c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 42, 67, 0.3);
}

.cookie-actions .btn-success {
    background: #d4a012;
    color: #102a43;
    font-weight: 700;
}

.cookie-actions .btn-success:hover {
    background: #e0b32d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 160, 18, 0.3);
}

.cookie-actions .btn-outline {
    background: transparent;
    color: #6c757d;
    border: 2px solid #6c757d !important;
}

.cookie-actions .btn-outline:hover {
    background: #6c757d;
    color: white;
}

.cookie-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #102a43;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.info-section h4 {
    color: #102a43;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.info-section ul {
    padding-left: 1.5rem;
}

.info-section li {
    margin-bottom: 0.5rem;
    color: #486581;
}

.info-section a {
    color: #102a43;
    text-decoration: none;
    font-weight: 600;
}

.info-section a:hover {
    color: #d4a012;
    text-decoration: underline;
}

.status-accepted {
    background: #d4a012 !important;
    color: #102a43 !important;
}

.status-minimal {
    background: #102a43 !important;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@media (max-width: 768px) {
    .category-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cookie-actions {
        flex-direction: column;
        align-items: center;
    }

    .cookie-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-info {
        grid-template-columns: 1fr;
    }
}
