/**
 * Data Rights Pages Styles
 * For Data Export, Data Deletion, Consent Preferences
 */

.data-rights-container .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary, #666);
    margin-top: 10px;
}

.data-export-form,
.data-deletion-form,
.consent-form {
    margin: 40px 0;
}

.data-export-form h2,
.data-deletion-form h2,
.consent-form h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary, #1a1a1a);
}

.export-info-box,
.deletion-info-box,
.deletion-process {
    background: var(--light-bg, #f8f9fa);
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
}

.export-info-box h3,
.deletion-info-box h3,
.deletion-process h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary, #2a2a2a);
}

.export-info-box ol,
.deletion-process ol {
    margin-left: 20px;
}

.export-info-box li,
.deletion-process li {
    margin-bottom: 10px;
}

.deletion-info-box ul {
    list-style: none;
    padding-left: 0;
}

.deletion-info-box li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.deletion-info-box li i {
    position: absolute;
    left: 0;
    top: 3px;
}

.deletion-info-box li i.fa-check {
    color: #28a745;
}

.deletion-info-box li i.fa-info-circle {
    color: #17a2b8;
}

.confirmation-checkbox {
    margin: 25px 0;
    padding: 20px;
    background: var(--warning-bg, #fff3cd);
    border: 2px solid #ffc107;
    border-radius: 8px;
}

.confirmation-checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.confirmation-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: var(--primary-color, #007bff);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover, #0056b3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220,53,69,0.3);
}

.btn-lg {
    padding: 15px 32px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.recent-requests {
    margin: 50px 0;
}

.recent-requests h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-primary, #1a1a1a);
}

.requests-table {
    overflow-x: auto;
}

.requests-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg, white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.requests-table thead {
    background: var(--primary-color, #007bff);
    color: white;
}

.requests-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.requests-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.requests-table tbody tr:last-child td {
    border-bottom: none;
}

.requests-table tbody tr:hover {
    background: var(--hover-bg, #f8f9fa);
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-pending {
    background: #ffc107;
    color: #000;
}

.status-processing {
    background: #17a2b8;
    color: white;
}

.status-ready {
    background: #007bff;
    color: white;
}

.status-downloaded,
.status-completed {
    background: #28a745;
    color: white;
}

.status-expired,
.status-rejected {
    background: #dc3545;
    color: white;
}

.status-verified {
    background: #6f42c1;
    color: white;
}

.status-cancelled {
    background: #6c757d;
    color: white;
}

.text-muted {
    color: var(--text-muted, #6c757d);
    font-style: italic;
}

/* Consent Preferences Specific */
.consent-options {
    margin: 30px 0;
}

.consent-option {
    background: var(--card-bg, white);
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.consent-option:hover {
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

.consent-option label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    margin: 0;
}

.consent-option input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.consent-option-content h4 {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    color: var(--text-primary, #1a1a1a);
}

.consent-option-content p {
    margin: 0;
    color: var(--text-secondary, #666);
    line-height: 1.6;
}

/* Dark Mode */
[data-theme="dark"] .subtitle {
    color: #b0b0b0;
}

[data-theme="dark"] .data-export-form h2,
[data-theme="dark"] .data-deletion-form h2,
[data-theme="dark"] .consent-form h2,
[data-theme="dark"] .recent-requests h2 {
    color: #ffffff;
}

[data-theme="dark"] .export-info-box,
[data-theme="dark"] .deletion-info-box,
[data-theme="dark"] .deletion-process {
    background: #3a3a3a;
    color: #e0e0e0;
}

[data-theme="dark"] .confirmation-checkbox {
    background: #4a3a2a;
    border-color: #8a6a1a;
}

[data-theme="dark"] .requests-table table {
    background: #2a2a2a;
}

[data-theme="dark"] .requests-table thead {
    background: #1a4a7a;
}

[data-theme="dark"] .requests-table td {
    border-bottom-color: #4a4a4a;
}

[data-theme="dark"] .requests-table tbody tr:hover {
    background: #3a3a3a;
}

[data-theme="dark"] .consent-option {
    background: #2a2a2a;
    border-color: #4a4a4a;
}

[data-theme="dark"] .consent-option:hover {
    border-color: #64b5f6;
}

[data-theme="dark"] .consent-option-content h4 {
    color: #ffffff;
}

[data-theme="dark"] .consent-option-content p {
    color: #b0b0b0;
}

/* Responsive */
@media (max-width: 768px) {
    .requests-table {
        font-size: 0.875rem;
    }

    .requests-table th,
    .requests-table td {
        padding: 10px 8px;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 1rem;
        width: 100%;
    }

    .consent-option label {
        flex-direction: row;
    }
}
