/* GDPR Data & Privacy Components */

/* Data Action Cards */
.data-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    margin-bottom: 16px;
    background: var(--bg-tertiary, #f9fafb);
    transition: all 0.2s;
}

.data-action:hover {
    border-color: var(--border-hover, #d1d5db);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.data-action.danger {
    border-color: var(--danger-border, #fecaca);
    background: var(--danger-bg-light, #fef2f2);
}

.data-action.danger:hover {
    border-color: var(--danger, #ef4444);
}

.data-action-content {
    flex: 1;
    margin-right: 20px;
}

.data-action-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text-primary, #111);
}

.data-action-content p {
    font-size: 0.9rem;
    color: var(--text-secondary, #6b7280);
    margin: 0;
    line-height: 1.4;
}

/* Export Options */
.export-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.export-options .radio-label,
.export-options .checkbox-label {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 6px;
    background: var(--bg-primary, #fff);
    cursor: pointer;
    transition: all 0.2s;
}

.export-options .radio-label:hover,
.export-options .checkbox-label:hover {
    border-color: var(--primary, #0969da);
    background: var(--bg-secondary, #f6f8fa);
}

.export-options input[type="radio"],
.export-options input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.export-options span {
    flex: 1;
}

.export-options small {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted, #9ca3af);
    margin-top: 4px;
}

/* Form Labels */
.form-label-bold {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-primary, #111);
}

.help-text {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted, #9ca3af);
    margin-top: 6px;
}

/* Danger Button */
.btn-danger {
    background: var(--danger-bg, #ef4444);
    color: #fff;
    border: 2px solid var(--danger-bg, #ef4444);
}

.btn-danger:hover:not(:disabled) {
    background: var(--danger-hover, #dc2626);
    border-color: var(--danger-hover, #dc2626);
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Alert Boxes */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert strong {
    font-weight: 600;
}

.alert-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    border: 1px solid #3b82f6;
    color: #1e40af;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.alert-success {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

/* Modal Container */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
}

.modal-container .modal {
    background: var(--bg-primary, #fff);
    max-width: 600px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted, #9ca3af);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-secondary, #f3f4f6);
    color: var(--text-primary, #111);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary, #111);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color, #e5e7eb);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .data-action {
        background: var(--bg-tertiary, #161b22);
        border-color: var(--border-color, #30363d);
    }

    .data-action.danger {
        background: rgba(239, 68, 68, 0.1);
        border-color: rgba(239, 68, 68, 0.3);
    }

    .data-action-content h3 {
        color: var(--text-primary, #e6edf3);
    }

    .data-action-content p {
        color: var(--text-secondary, #8d96a0);
    }

    .export-options .radio-label,
    .export-options .checkbox-label {
        background: var(--bg-primary, #0d1117);
        border-color: var(--border-color, #30363d);
    }

    .export-options .radio-label:hover,
    .export-options .checkbox-label:hover {
        background: var(--bg-secondary, #161b22);
    }

    .form-label-bold {
        color: var(--text-primary, #e6edf3);
    }

    .alert-warning {
        background: rgba(245, 158, 11, 0.2);
        color: #fbbf24;
    }

    .alert-info {
        background: rgba(59, 130, 246, 0.2);
        color: #60a5fa;
    }

    .alert-error {
        background: rgba(239, 68, 68, 0.2);
        color: #f87171;
    }

    .alert-success {
        background: rgba(16, 185, 129, 0.2);
        color: #34d399;
    }

    .modal-container .modal {
        background: var(--bg-primary, #0d1117);
    }

    .modal-header {
        border-bottom-color: var(--border-color, #30363d);
    }

    .modal-header h2 {
        color: var(--text-primary, #e6edf3);
    }

    .modal-footer {
        border-top-color: var(--border-color, #30363d);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .data-action {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .data-action-content {
        margin-right: 0;
    }

    .modal-container {
        padding: 0;
        align-items: flex-end;
    }

    .modal-container .modal {
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 95vh;
    }

    .modal-footer {
        flex-direction: column-reverse;
    }

    .modal-footer .btn {
        width: 100%;
    }
}
