:root {
    /* Light mode colors */
    --bg-primary: #f5f7fa;
    --bg-card: #ffffff;
    --bg-header: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: rgba(0, 0, 0, 0.05);
    --border-light: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
    
    /* UI Elements */
    --btn-bg: #f7fafc;
    --btn-border: #e2e8f0;
    --btn-hover: #edf2f7;
    --btn-primary-bg: #2d3748;
    --btn-primary-hover: #1a202c;
    
    /* Sections */
    --section-bg-light: #f7fafc;
    --warning-bg: #fef3c7;
    --warning-border: #f59e0b;
    --warning-text: #78350f;
    --success-bg: #d1fae5;
    --success-text: #065f46;
    --protected-badge-bg: #fef3c7;
    --protected-badge-text: #92400e;
}

[data-theme="dark"] {
    /* Dark mode colors */
    --bg-primary: #0f172a;
    --bg-card: #1e293b;
    --bg-header: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: #334155;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
    
    /* UI Elements */
    --btn-bg: #334155;
    --btn-border: #475569;
    --btn-hover: #475569;
    --btn-primary-bg: #3b82f6;
    --btn-primary-hover: #2563eb;
    
    /* Sections */
    --section-bg-light: #334155;
    --warning-bg: #422006;
    --warning-border: #f59e0b;
    --warning-text: #fde68a;
    --success-bg: #064e3b;
    --success-text: #6ee7b7;
    --protected-badge-bg: #422006;
    --protected-badge-text: #fbbf24;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px;
}

/* Business Card Styles */
.card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeIn 0.4s ease-out;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    background: var(--bg-header);
    color: white;
    padding: 48px 32px;
    text-align: center;
    position: relative;
}

.card-header h1 {
    font-size: 2.25em;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.title {
    font-size: 1.125em;
    opacity: 0.85;
    margin-bottom: 4px;
    font-weight: 400;
}

.company {
    font-size: 0.95em;
    opacity: 0.75;
    font-weight: 300;
}

.tagline {
    font-size: 0.875em;
    opacity: 0.65;
    margin-top: 16px;
    font-weight: 300;
}

.card-body {
    padding: 32px;
}

/* Theme Toggle & Language Selector */
.top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-btn {
    padding: 6px 12px;
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: 6px;
    font-size: 1.25em;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--text-primary);
    line-height: 1;
}

.theme-btn:hover {
    background: var(--btn-hover);
}

.language-selector {
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 6px 12px;
    background: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: 6px;
    font-size: 0.8125em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--text-muted);
}

.lang-btn:hover {
    background: var(--btn-hover);
    color: var(--text-secondary);
}

.lang-btn.active {
    background: var(--btn-primary-bg);
    color: white;
    border-color: var(--btn-primary-bg);
}

/* Sections */
.info-section {
    margin-bottom: 32px;
}

.info-section h2 {
    font-size: 1.25em;
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* Badges */
.lock-badge,
.approved-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lock-badge {
    background: var(--protected-badge-bg);
    color: var(--protected-badge-text);
}

.approved-badge {
    background: var(--success-bg);
    color: var(--success-text);
}

.info-text {
    color: var(--text-muted);
    font-size: 0.9375em;
    margin-bottom: 16px;
}

/* Fields */
.field-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.field-item:last-child {
    border-bottom: none;
}

.field-icon {
    font-size: 1.25em;
    line-height: 1.5;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Font Awesome icon styling */
.field-icon i.fa {
    font-size: 1.2em;
    width: 24px;
    text-align: center;
}

.field-label {
    font-size: 0.8125em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 4px;
}

.field-value {
    font-size: 0.9375em;
    color: var(--text-primary);
    font-weight: 500;
}

.field-value a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.field-value a:hover {
    color: #2563eb;
    text-decoration: underline;
}

[data-theme="dark"] .field-value a {
    color: #60a5fa;
}

[data-theme="dark"] .field-value a:hover {
    color: #93c5fd;
}

/* Checkboxes */
.protected-checkboxes {
    margin-bottom: 20px;
}

.checkbox-field {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: var(--section-bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.checkbox-field:hover {
    background: var(--btn-hover);
    border-color: var(--btn-border);
}

.checkbox-field input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-right: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.checkbox-label .field-icon {
    font-size: 1.2em;
}

.checkbox-label i.fa {
    font-size: 1.2em;
    width: 20px;
    text-align: center;
}

.field-name {
    font-size: 0.9375em;
    color: var(--text-primary);
    font-weight: 500;
}

/* Buttons */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.9375em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
    text-align: center;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: white;
    margin-bottom: 16px;
}

.btn-primary:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--btn-bg);
    color: var(--text-primary);
    border: 1px solid var(--btn-border);
}

.btn-secondary:hover {
    background: var(--btn-hover);
}

/* Divider */
.divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-light);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    font-size: 0.8125em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 12px;
    background: var(--bg-card);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

/* Status Messages */
.status-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 0.875em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status-message.show {
    opacity: 1;
}

.status-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

[data-theme="dark"] .status-message.error {
    background: #7f1d1d;
    color: #fecaca;
    border-color: #991b1b;
}

.status-message.waiting {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

[data-theme="dark"] .status-message.waiting {
    background: #1e3a8a;
    color: #bfdbfe;
    border-color: #1e40af;
}

.status-message.success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-text);
}

/* Session Warning */
.session-warning {
    background: var(--warning-bg);
    border-left: 3px solid var(--warning-border);
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.875em;
    color: var(--warning-text);
    line-height: 1.5;
}

.approved-list-label {
    font-size: 0.875em;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.approved-fields-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.approved-field-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--success-bg);
    color: var(--success-text);
    border-radius: 16px;
    font-size: 0.8125em;
    font-weight: 500;
}

.approved-field-tag i.fa {
    font-size: 1.1em;
}

/* Footer */
.card-footer {
    background: var(--section-bg-light);
    padding: 16px 32px;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.footer-text {
    font-size: 0.8125em;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 600px) {
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        padding: 32px 24px;
    }
    
    .card-body {
        padding: 24px;
    }
    
    .card-header h1 {
        font-size: 1.75em;
    }
    
    .top-controls {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .theme-toggle {
        justify-content: center;
    }
    
    .language-selector {
        justify-content: center;
    }
}
