/* ===== MODERN COMPLIANCE DASHBOARD STYLING ===== */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: #f8f9fa;
    font-size: 14px;
}

/* ===== MAIN LAYOUT STRUCTURE ===== */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR NAVIGATION ===== */
.sidebar {
    width: 240px;
    background: #003d1f;
    color: #e5f5e9;
    padding: 0;
    flex-shrink: 0;
    box-shadow: 2px 0 10px rgba(0,61,31,0.15);
    transition: all 0.3s ease;
    position: relative;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #005a23;
    background: #003d1f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.sidebar.collapsed .logo-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.logo-main {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    line-height: 1;
}

/* Hover-based sidebar expansion */
.sidebar.collapsed:hover {
    width: 240px;
}

.sidebar.collapsed:hover .logo-text {
    opacity: 1;
    width: auto;
    overflow: visible;
}

.sidebar.collapsed:hover .nav-item {
    justify-content: flex-start;
    padding: 0.75rem 1rem;
}

.sidebar.collapsed:hover .nav-item span:not(.nav-icon) {
    opacity: 1;
    width: auto;
    overflow: visible;
}

.sidebar.collapsed:hover .coming-soon {
    display: inline-block;
}

.logo-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #005a23, #003d1f);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.nav-menu {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #d4f1dc;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.75rem 0;
    text-align: center;
}

.sidebar.collapsed .nav-item span:not(.nav-icon) {
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Tooltip for collapsed sidebar */
.sidebar.collapsed .nav-item {
    position: relative;
}

.sidebar.collapsed .nav-item:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #1a1a1a;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    margin-left: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.sidebar.collapsed .nav-item:hover::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: #1a1a1a;
    z-index: 1000;
}

.nav-item:hover {
    background: #005a23;
    color: #ffffff;
    border-left-color: #2d8a4f;
}

.nav-item.active {
    background: #005a23;
    color: #ffffff;
    border-left-color: #4a9e63;
}

.nav-item.disabled {
    color: #8a8a8a;
    cursor: not-allowed;
    opacity: 0.6;
    position: relative;
}

.nav-item.disabled:hover {
    background: transparent;
    color: #8a8a8a;
    border-left-color: transparent;
}

.nav-item.disabled .coming-soon {
    font-size: 0.7rem;
    color: #999;
    font-style: italic;
    margin-left: auto;
    white-space: nowrap;
}

.sidebar.collapsed .nav-item.disabled .coming-soon {
    display: none;
}

.nav-icon {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

/* ===== MAIN CONTENT AREA ===== */
.main-content {
    flex: 1;
    background: #f8f9fa;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.top-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,61,31,0.1);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #003d1f;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #666666;
}

.status-badge {
    background: #d5e8d5;
    color: #003d1f;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #2d8a4f;
}

/* ===== CONTENT WRAPPER ===== */
.content-wrapper {
    padding: 2rem;
    max-width: 1400px;
}

/* ===== VIEW SELECTOR ===== */
.view-selector {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,61,31,0.1);
    border: 1px solid #e5e7eb;
}

.view-selector h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #003d1f;
    margin-bottom: 1rem;
}

.view-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.view-label {
    font-weight: 500;
    color: #666666;
    min-width: 140px;
    text-align: center;
    font-size: 0.9rem;
}

.view-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #005a23;
    border-radius: 32px;
    transition: all 0.3s ease;
}

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

input:checked + .toggle-slider {
    background: #2d8a4f;
}

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

.view-toggle-container .view-label:first-child {
    color: #005a23;
    font-weight: 600;
}

.view-toggle-container .view-label:last-child {
    color: #2d8a4f;
    font-weight: 600;
}

.view-description {
    text-align: center;
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ===== DASHBOARD CARDS ===== */
.exchange-view {
    display: block;
}

.exchange-view.hidden {
    display: none;
}

.layout-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.exchange-view#mapleCEXView .layout-wrapper {
    grid-template-columns: 1fr;
}

/* ===== MAIN CARDS ===== */
.main-column {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,61,31,0.1);
    border: 1px solid #e5e7eb;
    max-width: none;
    width: 100%;
}

.main-column h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #003d1f;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

#coinflexView .main-column h2 {
    color: #003d1f;
}

#mapleCEXView .main-column h2 {
    color: #003d1f;
}

/* ===== INPUT SECTION ===== */
.input-section {
    margin-bottom: 2rem;
}

.input-section h3 {
    margin-bottom: 1rem;
    color: #003d1f;
    font-size: 1rem;
    font-weight: 600;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-field {
    display: flex;
    flex-direction: column;
}

.input-field label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1a1a1a;
    font-size: 0.875rem;
}

.input-field input, 
.input-field select {
    padding: 0.75rem;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: #ffffff;
    width: 100%;
}

.input-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.input-field input:invalid:not(:placeholder-shown),
.input-field select:invalid:not([value=""]) {
    border-color: #dc3545;
}

.input-field input:valid:not(:placeholder-shown),
.input-field select:valid:not([value=""]) {
    border-color: #28a745;
}

.validation-feedback {
    color: #dc3545 !important;
    font-size: 0.8rem !important;
    margin-top: 0.25rem !important;
    font-weight: 500;
}

/* Validation alert animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.validation-alert {
    animation: slideIn 0.3s ease;
}

.input-field input:focus, 
.input-field select:focus {
    outline: none;
    border-color: #005a23;
    box-shadow: 0 0 0 3px rgba(0, 90, 35, 0.1);
}

/* ===== QUERY ACTION ROW ===== */
.query-action-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.input-section button {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #003d1f, #005a23);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,61,31,0.2);
    flex-shrink: 0;
}

.input-section button:hover {
    background: linear-gradient(135deg, #005a23, #2d8a4f);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 90, 35, 0.3);
}

/* ===== QUERY PROGRESS BAR ===== */
.query-progress-container {
    flex: 1;
    min-width: 0;
}

.query-progress-bar {
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.query-progress-bar.processing {
    border-color: #003d1f;
    background: #f0f9f0;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.progress-icon {
    font-size: 1.1rem;
    color: #003d1f;
    flex-shrink: 0;
}

.progress-text {
    font-weight: 600;
    font-size: 0.875rem;
    color: #003d1f;
    flex: 1;
}

.progress-status {
    font-size: 0.75rem;
    color: #6b7280;
    background: rgba(0,61,31,0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    flex-shrink: 0;
    font-weight: 500;
}

/* Actual Progress Bar Track */
.progress-track {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #003d1f, #2d8a4f, #4ade80);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill.processing {
    animation: progressAnimation 2s ease-in-out;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes progressAnimation {
    0% { width: 0%; }
    20% { width: 15%; }
    40% { width: 35%; }
    60% { width: 55%; }
    80% { width: 80%; }
    100% { width: 100%; }
}

@keyframes shimmer {
    0% { left: -50%; }
    100% { left: 100%; }
}

.progress-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #6b7280;
    position: relative;
    z-index: 2;
}

.progress-step {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.progress-step.active {
    opacity: 1;
    color: #003d1f;
    font-weight: 500;
}

/* Processing state enhancements */
.query-progress-bar.processing .progress-icon {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.input-note {
    font-size: 0.8rem;
    color: #666666;
    font-style: italic;
}

/* ===== RESULTS SECTION ===== */
.results-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #003d1f;
    font-weight: 600;
}

.results-panel {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 150px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.875rem;
}

.results-panel .placeholder {
    color: #999999;
    font-style: italic;
    text-align: center;
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.results-panel .api-response {
    background: #d5e8d5;
    border: 1px solid #4a9e63;
    border-radius: 6px;
    padding: 1rem;
    margin: 0.5rem 0;
}

.results-panel .api-response.no-match {
    background: #f8f8f8;
    border: 1px solid #dddddd;
}

/* ===== SUNSCREEN API VISUAL (Legacy styles removed - now using progress bar) ===== */

/* ===== BUTTONS AND ACTIONS ===== */
.decrypt-toggle-btn {
    background: linear-gradient(135deg, #003d1f, #005a23);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,61,31,0.2);
}

.decrypt-toggle-btn:hover {
    background: linear-gradient(135deg, #005a23, #2d8a4f);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 90, 35, 0.3);
}

.audit-log-btn {
    background: linear-gradient(135deg, #003d1f, #005a23);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,61,31,0.2);
}

.audit-log-btn:hover {
    background: linear-gradient(135deg, #005a23, #2d8a4f);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 90, 35, 0.3);
}

/* ===== QUERY DASHBOARD ===== */
.query-dashboard-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,61,31,0.05);
}

.query-dashboard-section h3 {
    color: #003d1f;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #003d1f, #005a23);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 61, 31, 0.2);
    border: 1px solid #005a23;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 500;
}

.query-log-display {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    max-height: 350px;
    overflow-y: auto;
}

.query-entry {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem;
    background: #ffffff;
    margin-bottom: 1px;
}

.query-entry:last-child {
    border-bottom: none;
}

.query-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.query-id {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.875rem;
}

.query-timestamp {
    color: #666666;
    font-size: 0.8rem;
}

/* ===== AUDIT MODAL ===== */
.audit-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 61, 31, 0.6);
    backdrop-filter: blur(4px);
}

.audit-modal-content {
    background-color: #ffffff;
    margin: 2% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,61,31,0.4);
    border: 1px solid #e5e7eb;
}

.audit-modal-header {
    background: linear-gradient(135deg, #003d1f, #005a23);
    color: white;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audit-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.audit-modal-close {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.audit-modal-close:hover {
    opacity: 1;
}

.audit-modal-body {
    padding: 2rem;
}

.audit-entry {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,61,31,0.1);
}

.audit-entry-header {
    background: #f9fafb;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audit-entry-header h4 {
    margin: 0;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.875rem;
}

.audit-decrypt-btn {
    background: linear-gradient(135deg, #2d8a4f, #4a9e63);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.audit-decrypt-btn:hover {
    background: linear-gradient(135deg, #4a9e63, #66b377);
    transform: translateY(-1px);
}

/* ===== DEMO INSTRUCTIONS ===== */
.demo-instructions {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 1px 3px rgba(0,61,31,0.05);
}

.demo-instructions h3 {
    color: #003d1f;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-instructions h4 {
    color: #003d1f;
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
    font-size: 1rem;
}

.demo-instructions ol {
    margin-left: 1.5rem;
    color: #333333;
    line-height: 1.6;
}

.demo-instructions li {
    margin-bottom: 0.5rem;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Medium desktop screens - fix 50% header issue */
@media (max-width: 1400px) {
    .top-header {
        padding: 0.75rem 1.5rem;
        min-height: 60px;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    .main-content {
        min-height: calc(100vh - 60px);
    }
    
    .content-wrapper {
        padding: 1rem;
    }
    
    .main-column {
        padding: 1rem;
    }
}

@media (max-width: 1024px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
    }
    
    .sidebar.collapsed {
        width: 100%;
    }
    
    .sidebar-header {
        padding: 1rem;
    }
    
    .layout-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .input-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 1rem;
    }
    
    .main-column {
        padding: 1.5rem;
    }
    
    .top-header {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* ===== PARTNER INFO SECTION ===== */
.partner-info {
    background: #d5e8d5;
    border-left: 4px solid #005a23;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
}

.partner-info p {
    margin: 0.5rem 0;
    color: #003d1f;
    font-size: 0.9rem;
}

.privacy-notice {
    margin-top: 2rem;
    padding: 1rem;
    background: #ecf5ec;
    border-left: 4px solid #2d8a4f;
    border-radius: 6px;
}

.privacy-notice h4 {
    margin: 0 0 0.5rem 0;
    color: #003d1f;
    font-size: 1rem;
}

.privacy-notice p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #005a23;
}

.privacy-notice ul {
    margin: 0.5rem 0 0 1rem;
    color: #005a23;
}

.privacy-notice li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.database-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #003d1f;
    font-weight: 600;
}

.partner-data-display {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
    font-size: 0.8rem;
}

.no-queries {
    padding: 2rem;
    text-align: center;
    color: #999999;
    font-style: italic;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.audit-section {
    margin-top: 1rem;
    text-align: center;
}

.audit-compliance-info {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.audit-compliance-info p {
    margin: 0.5rem 0;
    color: #1a1a1a;
    font-size: 0.9rem;
}

.audit-log-container {
    max-height: 60vh;
    overflow-y: auto;
}

.no-audit-entries {
    text-align: center;
    color: #999999;
    font-style: italic;
    padding: 2rem;
}

.audit-entry-details {
    padding: 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.audit-detail-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    align-items: center;
}

.audit-label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.875rem;
}

.audit-value {
    color: #666666;
    font-size: 0.875rem;
}

.signature-hash {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    background: #f9fafb;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    font-size: 0.8rem;
}

.audit-query-results {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #d5e8d5;
    border: 1px solid #4a9e63;
    border-radius: 6px;
}

.audit-query-results h5 {
    margin: 0 0 1rem 0;
    color: #003d1f;
    font-size: 0.9rem;
}

.audit-result-content p {
    margin: 0.5rem 0;
    color: #1a1a1a;
    font-size: 0.875rem;
}

.audit-verification-status {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #e1f5fe;
    border: 1px solid #0277bd;
    border-radius: 6px;
}

.audit-verification-status h5 {
    margin: 0 0 1rem 0;
    color: #01579b;
    font-size: 0.9rem;
}

.verification-checks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.verification-check {
    margin: 0;
    color: #1a1a1a;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===== ENCRYPTED FIELDS STYLING ===== */
.encrypted-query-result {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.encrypted-query-result h5 {
    margin-bottom: 0.75rem;
    color: #1a1a1a;
    font-size: 0.9rem;
}

.encrypted-fields {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.encrypted-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.field-label {
    font-weight: 500;
    color: #1a1a1a;
    min-width: 140px;
    font-size: 0.875rem;
}

.encrypted-value {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    color: #666666;
    background: #f9fafb;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    border: 1px solid #d1d5db;
    font-weight: 500;
    font-style: italic;
    font-size: 0.8rem;
}

.query-details {
    margin-bottom: 1rem;
}

.querying-partner {
    color: #005a23;
    font-weight: 500;
}

.query-result {
    margin-bottom: 0.5rem;
}

.match-indicator {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.match-found {
    background: #d5e8d5;
    color: #003d1f;
    border: 1px solid #4a9e63;
}

.no-match {
    background: #f0f0f0;
    color: #333333;
    border: 1px solid #dddddd;
}

.shared-data {
    background: #f9fafb;
    padding: 0.75rem;
    border-radius: 4px;
    border-left: 3px solid #005a23;
}

.shared-data h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: #005a23;
}

.data-point {
    display: inline-block;
    background: #005a23;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    margin: 0.1rem 0.2rem;
}

/* Fix button states */
.decrypt-toggle-btn.decrypted-state,
.audit-decrypt-btn.decrypted-state {
    background: #666666;
    color: #fff;
    cursor: default;
    box-shadow: none;
}

.decrypt-toggle-btn.decrypted-state:hover,
.audit-decrypt-btn.decrypted-state:hover {
    background: #666666;
    transform: none;
    box-shadow: none;
} 