/* DataPartner365.nl - Pure CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@600;700;800&display=swap');

:root {
  --primary: #0F172A;
  --primary-light: rgba(15, 23, 42, 0.1);
  --accent: #F97316;
  --background: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --text: #1E293B;
  --text-muted: #64748B;
  --success: #10B981;
  --error: #EF4444;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--background); color: var(--text); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: 'Manrope', sans-serif; font-weight: 700; }

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

/* Header */
.header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 1rem 0; position: sticky; top: 0; z-index: 100; }
.header-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-family: 'Manrope', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.logo svg { stroke: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; }
.header-right { display: flex; align-items: center; gap: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.25rem; font-size: 0.9rem; font-weight: 500; border-radius: var(--radius); border: none; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #1e293b; transform: translateY(-1px); }
.btn-secondary { background: #F1F5F9; color: var(--text); }
.btn-secondary:hover { background: #e2e8f0; }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: #ea580c; }
.btn-danger { background: var(--error); color: white; }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Banners */
.promo-banner, .demo-banner { background: linear-gradient(135deg, var(--primary), #1E293B); color: white; padding: 0.75rem 0; text-align: center; font-size: 0.875rem; }
.promo-banner a, .demo-banner a { color: var(--accent); font-weight: 600; margin-left: 0.5rem; }
.demo-badge { background: var(--accent); color: white; font-size: 0.65rem; padding: 0.2rem 0.5rem; border-radius: 4px; margin-left: 0.5rem; font-weight: 600; }

/* Hero */
.hero { text-align: center; padding: 5rem 0; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero h1 span { background: linear-gradient(135deg, var(--accent), #EA580C); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1rem; flex-wrap: wrap; }
.hero-note { font-size: 0.85rem; color: var(--text-muted); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; margin-bottom: 1.5rem; }
.card h2 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem; padding-bottom: 0.875rem; border-bottom: 1px solid var(--border); }
.card h2 svg { stroke: var(--accent); }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; padding-bottom: 0.875rem; border-bottom: 1px solid var(--border); }
.section-header h2 { margin: 0; padding: 0; border: none; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.5rem; font-size: 0.875rem; }
.form-group input, .form-group select { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; align-items: end; }

/* File Upload */
.file-upload { border: 2px dashed var(--border); border-radius: 12px; padding: 2rem; text-align: center; cursor: pointer; transition: all 0.2s; position: relative; }
.file-upload:hover, .file-upload.dragover { border-color: var(--accent); background: var(--primary-light); }
.file-upload svg { margin-bottom: 1rem; stroke: var(--accent); }
.file-upload p { margin-bottom: 0.5rem; }
.file-upload span { font-size: 0.75rem; color: var(--text-muted); }
.file-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.selected-file { color: var(--success); font-size: 0.875rem; margin-top: 0.75rem; font-weight: 500; }

/* Status Messages */
.status { padding: 1rem; border-radius: var(--radius); margin-top: 1rem; font-size: 0.9rem; }
.status.success { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid var(--success); }
.status.error { background: rgba(239, 68, 68, 0.1); color: var(--error); border: 1px solid var(--error); }
.status.loading { background: rgba(245, 158, 11, 0.1); color: #F59E0B; border: 1px solid #F59E0B; }

/* Datasets Grid */
.datasets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.dataset-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; cursor: pointer; transition: all 0.2s; }
.dataset-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-2px); border-color: var(--accent); }
.dataset-card h3 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; font-size: 1rem; }
.dataset-card h3 svg { stroke: var(--accent); flex-shrink: 0; }
.dataset-card .meta { display: flex; flex-wrap: wrap; gap: 0.75rem; font-size: 0.75rem; color: var(--text-muted); }

/* Empty State */
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }
.empty-state svg { margin-bottom: 1rem; opacity: 0.3; }

/* Loading */
.loading { display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 2rem; color: var(--text-muted); }
.spinner { width: 24px; height: 24px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 1.25rem; padding: 0.375rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.tab-btn { padding: 0.625rem 1rem; font-size: 0.8rem; font-weight: 500; color: var(--text-muted); background: transparent; border: none; border-radius: var(--radius); cursor: pointer; }
.tab-btn:hover { color: var(--text); background: #F1F5F9; }
.tab-btn.active { color: white; background: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Tables */
.table-wrapper { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
thead { background: #F1F5F9; }
th { text-align: left; padding: 0.75rem 1rem; font-weight: 600; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 0.625rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-muted); }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #F8FAFC; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.stat-card { background: #F1F5F9; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.125rem; }
.stat-card h4 { font-size: 0.875rem; margin-bottom: 0.875rem; display: flex; justify-content: space-between; }
.stat-card .dtype { font-size: 0.65rem; font-weight: 400; color: var(--accent); background: white; padding: 0.125rem 0.4rem; border-radius: 4px; }
.stat-item { display: flex; justify-content: space-between; padding: 0.3rem 0; font-size: 0.75rem; border-bottom: 1px dashed var(--border); }
.stat-item:last-child { border-bottom: none; }
.stat-item .label { color: var(--text-muted); }
.stat-item .value { font-weight: 500; }

/* Results */
.result-info { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; padding: 0.75rem 1rem; background: rgba(16, 185, 129, 0.1); border: 1px solid var(--success); border-radius: var(--radius); color: var(--success); font-size: 0.85rem; font-weight: 500; }

/* Correlation */
.correlation-table th, .correlation-table td { text-align: center; min-width: 70px; padding: 0.5rem; font-size: 0.75rem; }
.corr-positive { background: rgba(16, 185, 129, 0.2); }
.corr-negative { background: rgba(239, 68, 68, 0.2); }

/* Charts */
.chart-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.chart-controls .form-group { margin-bottom: 0; min-width: 140px; }
.chart-container { height: 350px; background: #F1F5F9; border-radius: var(--radius); padding: 1rem; }

/* Features Grid */
.features-section { padding: 5rem 0; background: var(--surface); }
.features-section h2 { font-size: 2.5rem; text-align: center; margin-bottom: 0.75rem; }
.section-subtitle { text-align: center; font-size: 1.125rem; color: var(--text-muted); margin-bottom: 3rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.feature-card { background: var(--background); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; transition: all 0.2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.feature-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--accent), #EA580C); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.feature-icon svg { stroke: white; }
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Pricing */
.pricing-section { padding: 5rem 0; }
.pricing-section h2 { font-size: 2.5rem; text-align: center; margin-bottom: 0.75rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 950px; margin: 0 auto; }
.pricing-card { background: var(--surface); border: 2px solid var(--border); border-radius: 16px; padding: 2rem; position: relative; transition: all 0.2s; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.pricing-card.popular { border-color: var(--accent); }
.popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: white; padding: 0.25rem 1rem; border-radius: var(--radius); font-size: 0.75rem; font-weight: 600; }
.pricing-header { text-align: center; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.pricing-header h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.price { font-size: 3rem; font-weight: 800; }
.price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-features { list-style: none; margin-bottom: 2rem; }
.pricing-features li { padding: 0.5rem 0; color: var(--text-muted); font-size: 0.9rem; }

/* CTA */
.cta-section { padding: 5rem 0; background: var(--primary); text-align: center; }
.cta-section h2 { color: white; font-size: 2.5rem; margin-bottom: 0.75rem; }
.cta-section p { color: rgba(255,255,255,0.7); font-size: 1.125rem; margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-outline-light { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.3); }
.btn-outline-light:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* Auth Page */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), #1E293B); padding: 2rem; }
.auth-container { width: 100%; max-width: 420px; }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header .logo { color: white; justify-content: center; }
.auth-card { background: var(--surface); border-radius: 16px; padding: 2.5rem; }
.auth-card h1 { font-size: 1.75rem; text-align: center; margin-bottom: 0.5rem; }
.auth-subtitle { text-align: center; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2rem; }
.btn-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 0.875rem; background: white; border: 1px solid var(--border); border-radius: var(--radius); font-weight: 500; color: var(--text); cursor: pointer; }
.btn-google:hover { background: #F8FAFC; }
.divider { display: flex; align-items: center; margin: 1.5rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { padding: 0 1rem; color: var(--text-muted); font-size: 0.8rem; }
.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-muted); }
.auth-switch button { background: none; border: none; color: var(--accent); font-weight: 500; cursor: pointer; }
.back-home { display: block; text-align: center; margin-top: 2rem; color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* Dashboard */
.welcome-section { margin-bottom: 2rem; }
.welcome-section h1 { font-size: 1.75rem; margin-bottom: 1rem; }
.usage-stats { display: flex; gap: 2rem; margin-bottom: 1rem; flex-wrap: wrap; }
.usage-stat .stat-value { font-size: 1.5rem; font-weight: 700; color: var(--primary); display: block; }
.usage-stat .stat-label { font-size: 0.8rem; color: var(--text-muted); }
.upgrade-banner { background: linear-gradient(135deg, var(--accent), #EA580C); color: white; padding: 1rem 1.5rem; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.upgrade-banner p { color: white; font-weight: 500; margin: 0; }
.upgrade-banner .btn { background: white; color: var(--accent); }
.user-info { display: flex; align-items: center; gap: 0.75rem; }
.user-name { font-weight: 500; }
.plan-badge { font-size: 0.7rem; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: 4px; background: #F1F5F9; color: var(--text-muted); text-transform: uppercase; }
.plan-badge.pro { background: var(--accent); color: white; }
.plan-badge.enterprise { background: var(--primary); color: white; }

/* Dataset Header */
.dataset-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; }
.dataset-header h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.dataset-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.8rem; color: var(--text-muted); }
.dataset-actions { display: flex; gap: 0.5rem; }

/* Footer */
.footer { background: var(--primary); padding: 1.25rem 0; margin-top: auto; }
.footer p { color: rgba(255,255,255,0.7); font-size: 0.8rem; text-align: center; margin: 0; }
.footer a { color: var(--accent); }

/* Landing Footer */
.landing-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2rem 0; }
.footer-content { text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.5rem; font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--primary); margin-bottom: 0.5rem; }
.footer-brand svg { stroke: var(--accent); }
.footer-domain { color: var(--accent); font-weight: 500; margin-top: 0.5rem; }

/* Main container */
.page-container { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; padding: 2rem 0; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .nav-links { display: none; }
  .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; }
  .tab-btn { white-space: nowrap; }
  .dataset-header { flex-direction: column; }
  .usage-stats { flex-direction: column; gap: 1rem; }
  .upgrade-banner { flex-direction: column; text-align: center; }
}
