/* Cookie Settings Dashboard - Modern Design */

/* Dashboard Container */
.consent-dashboard {
    min-height: 100vh;
    background: var(--gradient-hero);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    padding: 2rem 0;
}

.consent-dashboard .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Section */
.dashboard-header {
    margin-bottom: 2rem;
}

.header-navigation {
    margin-bottom: 1.5rem;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.back-icon {
    width: 1rem;
    height: 1rem;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.header-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1.5rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.3);
}

.shield-icon {
    width: 2rem;
    height: 2rem;
    color: white;
}

.header-text h1 {
    font-size: 1.875rem;
    font-weight: 300;
    color: white;
    margin-bottom: 0.5rem;
}

.header-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.badge:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.badge-icon {
    width: 0.75rem;
    height: 0.75rem;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Cards */
.content-card, .sidebar-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 1rem;
    backdrop-filter: blur(8px);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    transition: all 0.2s ease;
}

/* Cookie sub-headings styling */
.content-card .text-xs {
    font-size: 0.625rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.content-card:hover, .sidebar-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 300;
    color: white;
}

.title-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

.title-icon.warning {
    color: #f59e0b;
}

.update-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.update-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.update-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.update-icon {
    width: 1rem;
    height: 1rem;
}

.card-content {
    padding: 1.5rem;
}

/* Preferences List */
.preferences-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preference-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.preference-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border-color: rgba(255, 255, 255, 0.2);
}

.preference-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.preference-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.preference-icon.enabled {
    color: #10b981;
}

.preference-icon.disabled {
    color: #ef4444;
}

.preference-text h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    text-transform: capitalize;
    margin-bottom: 0.25rem;
}

.preference-text p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.preference-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.preference-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.preference-badge.enabled {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.preference-badge.disabled {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 3rem;
    height: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-switch.enabled {
    background: var(--primary);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    width: 1.25rem;
    height: 1.25rem;
    background: white;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.toggle-switch.enabled::after {
    transform: translateX(1.5rem);
}

.toggle-switch:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Data Processing Info */
.data-processing-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    position: relative !important;
}

.data-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
    position: relative !important;
}

.data-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1rem !important;
    padding: 1rem !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 0.75rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    position: relative !important;
    margin-bottom: 0 !important;
    color: #ffffff !important;
}

.data-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.data-label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: white !important;
    min-width: 120px !important;
    flex-shrink: 0 !important;
}

.data-value {
    font-size: 0.875rem !important;
    color: white !important;
    line-height: 1.5 !important;
    flex: 1 !important;
}

/* Processing Purposes */
.processing-purposes {
    margin-top: 0 !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 100% !important;
    position: relative !important;
}

.processing-purposes h4 {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: white !important;
    margin-bottom: 0.75rem !important;
}

.purposes-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    width: 100% !important;
}

.purpose-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s ease !important;
}

.purpose-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.purpose-icon {
    width: 2rem !important;
    height: 2rem !important;
    border-radius: 50% !important;
    background: var(--gradient-secondary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    flex-shrink: 0 !important;
}

.purpose-icon svg {
    width: 1rem !important;
    height: 1rem !important;
    color: white !important;
}

.purpose-text {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: white !important;
}

/* Data Processors Table */
.processors-section {
    margin-top: 0 !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    width: 100% !important;
    position: relative !important;
}

.processors-section h4 {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
}

.processors-section h4 svg {
    width: 0.625rem !important;
    height: 0.625rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

.processors-table {
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.processors-table table {
    width: 100%;
    min-width: 600px;
    font-size: 0.75rem;
}

.processors-table th {
    padding: 0.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.processors-table td {
    padding: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.processors-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.processor-info {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.processor-icon {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 0.125rem;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.processor-icon svg {
    width: 0.375rem;
    height: 0.375rem;
    color: rgba(255, 255, 255, 0.6);
}

.processor-badge {
    padding: 0.125rem 0.25rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
    font-size: 0.625rem;
}

.processor-note {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.processor-note svg {
    width: 0.5rem;
    height: 0.5rem;
}

/* Consent History */
.consent-history {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-latest {
    margin-bottom: 1rem;
}

.history-latest h4 {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
}

.history-entry {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
}

.history-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.history-icon svg {
    width: 1rem;
    height: 1rem;
    color: white;
}

.history-content {
    flex: 1;
}

.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.history-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}

/* Make Zero Knowledge text smaller */
.zero-knowledge-title {
    font-size: 0.625rem !important;
}

.history-timestamp {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.history-changes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.history-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    font-weight: 500;
}

.history-badge.enabled {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.history-badge.disabled {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.history-badge.neutral {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.history-badge svg {
    width: 0.75rem;
    height: 0.75rem;
}

/* Collapsible History */
.history-collapsible {
    margin-top: 0.75rem;
}

.collapsible-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.collapsible-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.collapsible-trigger svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.collapsible-trigger.expanded svg {
    transform: rotate(180deg);
}

.collapsible-content {
    display: none;
    margin-top: 0.75rem;
}

.collapsible-content.expanded {
    display: block;
}

.history-entry-secondary {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.history-entry-secondary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border-color: rgba(255, 255, 255, 0.1);
}

.history-icon-secondary {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-icon-secondary svg {
    width: 0.75rem;
    height: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.history-header-secondary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.history-title-secondary {
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}

.history-version {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

/* Session Info */
.session-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.session-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.session-icon {
    width: 1rem;
    height: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.session-text h5 {
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    margin-bottom: 0.125rem;
}

.session-text p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.session-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.session-id-section {
    margin-top: 0.5rem;
}

.session-id-section p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.session-id {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.625rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: white;
    word-break: break-all;
    line-height: 1.4;
}

.session-id-note {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    line-height: 1.4;
    margin-top: 0.25rem;
    margin-left: 0.5rem;
}

/* Download Buttons */
.download-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.download-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.download-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.download-btn:hover .download-icon {
    transform: scale(1.05);
}

.download-icon.json {
    background: rgba(59, 130, 246, 0.2);
}

.download-icon.json svg {
    color: #3b82f6;
}

.download-icon.csv {
    background: rgba(34, 197, 94, 0.2);
}

.download-icon.csv svg {
    color: #22c55e;
}

.download-text {
    text-align: center;
}

.download-title {
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
}

.download-subtitle {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.link-icon {
    width: 1rem;
    height: 1rem;
}

/* Contact Button */
.contact-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
    transition: all 0.2s ease;
}

.contact-btn:hover {
    background: var(--gradient-primary);
    filter: brightness(1.1);
    box-shadow: 0 6px 24px rgba(var(--primary-rgb), 0.4);
    transform: translateY(-1px);
}

.contact-icon {
    width: 1rem;
    height: 1rem;
}

/* Feedback Toast */
.feedback-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 0.75rem;
    backdrop-filter: blur(8px);
    box-shadow: var(--glass-shadow);
    z-index: 1000;
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s ease;
}

.feedback-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #10b981;
}

.toast-message {
    color: white;
    font-size: 0.875rem;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-badges {
        justify-content: center;
    }
    
    .data-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        grid-template-columns: 1fr;
    }
    
    .feedback-toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

/* Powered by amana section */
.powered-by-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.powered-by-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.amana-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.amana-text {
    background: linear-gradient(135deg, #6D4AFF 0%, #9B6DFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    font-size: 0.875rem;
}

.amana-logo svg {
    margin-top: 1px;
} 