/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Dark Theme (Default) */
:root {
    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* Dark theme colors - proper dark */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-tertiary: #1e293b;
    --bg-card: #1a2332;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-color: #2d3748;
    --shadow: rgba(0, 0, 0, 0.7);

    --gray-50: #1e293b;
    --gray-100: #334155;
    --gray-200: #475569;
    --gray-300: #64748b;
    --gray-700: #cbd5e1;
    --gray-800: #e2e8f0;
    --gray-900: #f8fafc;
}

/* Global dark mode text fix - ensure all text is readable by default */
body, html {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Ensure all tables have readable text in dark mode */
table, td, th, tr {
    color: var(--text-primary);
}

/* Fix links in dark mode */
a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

/* Navigation links must be visible */
.navbar a, nav a {
    color: var(--text-secondary) !important;
}

.navbar a:hover, nav a:hover {
    color: var(--text-primary) !important;
}

/* Light Theme */
[data-theme="light"] {
    --primary: #0066ff;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-tertiary: #6b7280;
    --border-color: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.1);

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px var(--shadow);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.btn-login, .btn-logout {
    background: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    color: #fff;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    color: var(--text-primary);
    text-align: center;
    transition: background 0.3s ease;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: #94a3b8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: #0052cc;
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--gray-300);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Features */
.features-preview, .feature-grid {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--gray-50);
    border-radius: 12px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Login Page */
.login-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.login-container {
    color: var(--text-primary);
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.sso-options {
    margin-bottom: 2rem;
}

.sso-options h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.sso-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    margin-bottom: 0.75rem;
}

.sso-button:hover {
    background: var(--gray-100);
    border-color: var(--primary);
}

.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.divider span {
    background: var(--bg-card);
    padding: 0 1rem;
    color: var(--gray-700);
    position: relative;
    z-index: 1;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-200);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 1rem;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Dashboard */
.dashboard {
    padding: 2rem 0;
}

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

.plan-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-free { background: var(--gray-200); color: var(--gray-700); }
.plan-pro { background: #dbeafe; color: #1e40af; }
.plan-enterprise { background: #fef3c7; color: #92400e; }

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

.stat-card {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    color: var(--gray-700);
    font-size: 0.875rem;
}

.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 2rem;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-700);
}

.tab-button.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.data-table th {
    background: var(--gray-50);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.data-table td {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
}

/* Footer */
footer {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
    color: var(--gray-700);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: var(--bg-card);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Migration Grid */
.migration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.migration-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.migration-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px var(--shadow);
}

.migration-item strong {
    color: var(--primary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.migration-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* ===================================
   Features Page Styles
   =================================== */
.features-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.features-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.features-detailed {
    padding: 4rem 0;
}

.feature-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

.feature-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-block h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-block h3, .feature-block h4 {
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-block ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.feature-block ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feature-block ul li:before {
    content: ✓;
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

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

.compliance-item {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.compliance-item h4 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--primary);
}

.compliance-item ul {
    font-size: 0.9rem;
}

/* ===================================
   API Documentation Styles
   =================================== */
.api-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.api-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.api-info {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.api-info span {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
}

.api-docs {
    padding: 3rem 0;
}

.api-docs .container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

.api-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.api-sidebar nav {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 0;
}

.api-sidebar nav a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.api-sidebar nav a:hover {
    background: var(--gray-50);
    color: var(--primary);
    border-left-color: var(--primary);
}

.api-content {
    max-width: 100%;
}

.api-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.api-section:last-child {
    border-bottom: none;
}

.api-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.api-section h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.endpoint {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid var(--primary);
}

.method {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    color: white;
}

.method.get {
    background: #10b981;
}

.method.post {
    background: #3b82f6;
}

.method.put {
    background: #f59e0b;
}

.method.delete {
    background: #ef4444;
}

.path {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--text-primary);
}

.api-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    border-left: 4px solid var(--primary);
}

.api-content code {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.error-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}

.error-table thead {
    background: var(--gray-100);
}

.error-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
}

.error-table td {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.error-table td:first-child {
    font-weight: 600;
    color: var(--primary);
    font-family: monospace;
}

.api-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
}

.api-cta h2 {
    margin-bottom: 1rem;
}

.api-cta p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Responsive for API docs */
@media (max-width: 968px) {
    .api-docs .container {
        grid-template-columns: 1fr;
    }
    
    .api-sidebar {
        position: static;
    }
    
    .api-sidebar nav {
        display: flex;
        overflow-x: auto;
    }
    
    .api-sidebar nav a {
        white-space: nowrap;
    }
}


/* ===================================
   Dark Mode Fixes - Proper Contrast
   =================================== */

/* Dashboard cards in dark mode */
[data-theme="dark"] .stat-card {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .stat-value {
    color: var(--text-primary);
}

[data-theme="dark"] .stat-label {
    color: var(--text-secondary);
}

/* Footer fix for dark mode */
[data-theme="dark"] footer {
    background: #1f2937;
    color: #e5e7eb;
}

[data-theme="dark"] .footer-section a {
    color: #9ca3af;
}

[data-theme="dark"] .footer-section a:hover {
    color: #e5e7eb;
}

[data-theme="dark"] .footer-bottom {
    color: #6b7280;
    border-top-color: #374151;
}

/* Fix all table elements in footer for dark mode */
[data-theme="dark"] footer table,
[data-theme="dark"] footer td,
[data-theme="dark"] footer th,
[data-theme="dark"] footer tr {
    color: #e5e7eb !important;
    background: transparent !important;
}

/* Ensure all footer content is readable */
[data-theme="dark"] footer *:not(a) {
    color: #e5e7eb !important;
}

/* Hero sections in dark mode */
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: #ffffff;
}

[data-theme="dark"] .features-hero {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

[data-theme="dark"] .api-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Tables in dark mode */
[data-theme="dark"] .data-table {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .data-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-theme="dark"] .data-table td {
    border-top-color: var(--border-color);
    color: var(--text-primary);
}

/* Feature blocks in dark mode */
[data-theme="dark"] .feature-block {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .feature-block h2,
[data-theme="dark"] .feature-block h3,
[data-theme="dark"] .feature-block h4 {
    color: var(--text-primary);
}

/* Compliance grid in dark mode */
[data-theme="dark"] .compliance-item {
    background: var(--bg-tertiary);
    border-left-color: var(--primary);
}

/* Settings page in dark mode */
[data-theme="dark"] .settings-page {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .settings-nav-item {
    color: var(--text-secondary);
    border-left-color: transparent;
}

[data-theme="dark"] .settings-nav-item:hover,
[data-theme="dark"] .settings-nav-item.active {
    background: var(--bg-tertiary);
    color: var(--primary);
    border-left-color: var(--primary);
}

[data-theme="dark"] .setting-group label {
    color: var(--text-primary);
}

[data-theme="dark"] .setting-group input,
[data-theme="dark"] .setting-group select,
[data-theme="dark"] .setting-group textarea {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .help-text {
    color: var(--text-tertiary);
}

/* API Docs in dark mode */
[data-theme="dark"] .api-sidebar nav {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .api-sidebar nav a {
    color: var(--text-secondary);
}

[data-theme="dark"] .api-sidebar nav a:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

[data-theme="dark"] .endpoint {
    background: var(--bg-secondary);
    border-left-color: var(--primary);
}

[data-theme="dark"] .path {
    color: var(--text-primary);
}

/* Plan badges in dark mode */
[data-theme="dark"] .plan-badge {
    background: var(--primary);
    color: #ffffff;
}

/* Dashboard header in dark mode */
[data-theme="dark"] .dashboard-header {
    color: var(--text-primary);
}

[data-theme="dark"] .user-info {
    color: var(--text-secondary);
}

/* Buttons should stay visible */
[data-theme="dark"] .btn-primary {
    background: var(--primary);
    color: #ffffff;
}

[data-theme="dark"] .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Make sure all text is visible */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-primary);
}

[data-theme="dark"] p {
    color: var(--text-secondary);
}

[data-theme="dark"] a {
    color: var(--primary);
}

/* Dashboard tabs */
[data-theme="dark"] .tab-button {
    color: var(--text-secondary);
    border-bottom-color: transparent;
}

[data-theme="dark"] .tab-button.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

[data-theme="dark"] .tab-button:hover {
    color: var(--text-primary);
}


/* CRITICAL FIX: Force all footer content to be readable in dark mode */
[data-theme="dark"] footer,
[data-theme="dark"] footer *,
[data-theme="dark"] footer table,
[data-theme="dark"] footer td,
[data-theme="dark"] footer th,
[data-theme="dark"] footer tr,
[data-theme="dark"] footer p,
[data-theme="dark"] footer h1,
[data-theme="dark"] footer h2,
[data-theme="dark"] footer h3,
[data-theme="dark"] footer h4,
[data-theme="dark"] footer h5,
[data-theme="dark"] footer h6,
[data-theme="dark"] footer span,
[data-theme="dark"] footer div {
    color: #e5e7eb !important;
    background: transparent !important;
}

[data-theme="dark"] footer a {
    color: #60a5fa !important;
}

[data-theme="dark"] footer a:hover {
    color: #93c5fd !important;
}

/* Domain Verification Box */
.verification-box {
    background: #f8f9fa;
    border: 2px solid #0066cc;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .verification-box {
    background: #1e293b;
    border-color: #3b82f6;
}

.verification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

[data-theme="dark"] .verification-header {
    border-bottom-color: #374151;
}

.verification-header h3 {
    margin: 0;
    color: #0066cc;
}

[data-theme="dark"] .verification-header h3 {
    color: #60a5fa;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
}

.close-btn:hover {
    color: #dc3545;
}

.verification-content p {
    margin: 10px 0;
}

.dns-record-box {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

[data-theme="dark"] .dns-record-box {
    background: #0f172a;
    border-color: #374151;
}

.record-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
    gap: 15px;
}

.record-row label {
    font-weight: 600;
    min-width: 120px;
    color: #495057;
}

[data-theme="dark"] .record-row label {
    color: #9ca3af;
}

.record-value {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.record-value code {
    flex: 1;
    background: #e9ecef;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    word-break: break-all;
}

[data-theme="dark"] .record-value code {
    background: #374151;
    color: #e5e7eb;
}

.copy-btn {
    background: #0066cc;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #0052a3;
}

.copy-btn.copied {
    background: #28a745;
}

.verification-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0 10px 0;
}

.verification-actions .btn {
    flex: 1;
}

.help-text {
    font-size: 14px;
    color: #6c757d;
    margin-top: 15px;
    padding: 10px;
    background: #fff3cd;
    border-radius: 4px;
    border-left: 4px solid #ffc107;
}

[data-theme="dark"] .help-text {
    background: #422006;
    color: #fbbf24;
    border-left-color: #f59e0b;
}

.help-text strong {
    color: #856404;
}

[data-theme="dark"] .help-text strong {
    color: #fbbf24;
}

/* Button sizes */
.btn-sm {
    padding: 4px 8px;
    font-size: 13px;
    margin: 0 2px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

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

.btn-danger:hover {
    background: #c82333;
}
