/* style.css */
:root {
    --bg-color: #f4f6f9;
    --text-main: #111827;
    --text-muted: #6b7280;
    --primary: #000000;
    --primary-hover: #1f2937;
    --secondary: #e5e7eb;
    --secondary-hover: #d1d5db;
    --accent: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --card-bg: rgba(255, 255, 255, 0.85);
    --border: rgba(255, 255, 255, 0.3);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --radius: 12px;
    --font-fam: 'Inter', system-ui, sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #ffffff;
    --primary-hover: #e2e8f0;
    --secondary: #1e293b;
    --secondary-hover: #334155;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-fam); background: var(--bg-color); color: var(--text-main); line-height: 1.6; min-height: 100vh; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; transition: var(--transition); border-radius: 8px; font-weight: 500; }

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1rem; } .mb-5 { margin-bottom: 3rem; }
.full-width { width: 100%; }
.bg-light { background: #fafafa; }
.text-muted { color: var(--text-muted); }

/* Typography */
h1, h2, h3 { font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
p { color: var(--text-muted); }

/* Buttons */
.btn-primary { background: var(--primary); color: #fff; padding: 12px 24px; font-size: 1rem; }
[data-theme="dark"] .btn-primary { color: #000; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-secondary { background: var(--secondary); color: var(--text-main); padding: 12px 24px; font-size: 1rem; }
.btn-secondary:hover { background: var(--secondary-hover); }
.btn-secondary.small { padding: 6px 12px; font-size: 0.875rem; }

/* Glassmorphism */
.glass-card { background: var(--card-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.glass-nav { background: var(--card-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 1rem 5%; }
.glass-panel { background: var(--card-bg); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }

/* Layouts */
.container { max-width: 800px; margin: 0 auto; padding: 0 1rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.input-row { display: flex; gap: 1rem; } .input-row > * { flex: 1; }
@media(max-width: 600px) { .input-row { flex-direction: column; gap: 0; } }

/* Inputs */
.input-group { margin-bottom: 1.25rem; text-align: left; }
.input-group label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--text-main); }
.input-group input, .input-group select { width: 100%; padding: 12px; border: 1px solid var(--secondary-hover); border-radius: 8px; background: transparent; color: var(--text-main); font-size: 1rem; transition: var(--transition); }
.input-group input:focus, .input-group select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }

/* Animations */
.fade-in { animation: fadeIn 0.6s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.animated-gradient { background: linear-gradient(-45deg, #f3f4f6, #e5e7eb, #ffffff, #f9fafb); background-size: 400% 400%; animation: gradientBG 15s ease infinite; }
@keyframes gradientBG { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* Loaders & Modals */
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-color); z-index: 9999; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.overlay.active { opacity: 1; pointer-events: all; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--secondary-hover); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 1000; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(4px); }
.modal-content { max-width: 400px; width: 90%; text-align: left; animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes scaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-actions { display: flex; gap: 1rem; justify-content: flex-end; }

/* Specific Pages */
/* Landing */
.hero { text-align: center; padding: 6rem 1rem; min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.25rem; max-width: 600px; margin: 0 auto 2rem; }
.services-section { padding: 4rem 5%; text-align: center; }
.services-section .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.founder-section { padding: 4rem 5%; display: flex; justify-content: center; }
.founder-card { display: flex; align-items: center; gap: 2rem; max-width: 800px; }
.founder-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.badge { display: inline-block; padding: 4px 8px; background: var(--secondary); border-radius: 12px; font-size: 0.75rem; font-weight: 600; margin-bottom: 1rem; }
.contact-list { list-style: none; text-align: left; margin-top: 1rem; }
.contact-list li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.floating-wa { position: fixed; bottom: 30px; right: 30px; background: #25d366; width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center; z-index: 100; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: transform 0.3s; }
.floating-wa:hover { transform: scale(1.1); }
footer { background: #111; color: #fff; padding: 3rem 5% 1rem; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; }
.footer-links a { display: block; color: #aaa; margin-bottom: 0.5rem; transition: color 0.3s; }
.footer-links a:hover { color: #fff; }
.copyright { text-align: center; color: #666; font-size: 0.875rem; border-top: 1px solid #333; padding-top: 1rem; }

/* Auth & Profile */
.auth-page { display: flex; justify-content: center; align-items: center; padding: 1rem; }
.auth-container { width: 100%; max-width: 400px; }
.auth-tabs { display: flex; border-bottom: 2px solid var(--secondary); margin-bottom: 1.5rem; }
.tab-btn { flex: 1; background: none; padding: 10px; color: var(--text-muted); border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.error-msg { background: #fee2e2; color: #b91c1c; padding: 10px; border-radius: 6px; margin-bottom: 1rem; font-size: 0.875rem; border: 1px solid #f87171; }
.forgot-pwd-wrapper { text-align: right; margin-bottom: 1rem; font-size: 0.875rem; }
.forgot-pwd-wrapper a { color: var(--accent); }
.divider { text-align: center; margin: 1.5rem 0; position: relative; }
.divider::before { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--secondary-hover); z-index: 1; }
.divider span { background: var(--card-bg); padding: 0 10px; position: relative; z-index: 2; color: var(--text-muted); font-size: 0.875rem; }
.btn-secondary svg { vertical-align: middle; margin-right: 8px; }

.role-buttons { display: flex; gap: 1rem; margin-top: 0.5rem; }
.role-btn { flex: 1; padding: 12px; border: 1px solid var(--secondary-hover); background: transparent; color: var(--text-main); }
.role-btn.selected { border-color: var(--primary); background: rgba(0,0,0,0.05); font-weight: 600; box-shadow: inset 0 0 0 1px var(--primary); }
.role-btn.disabled { opacity: 0.5; cursor: not-allowed; }

/* Dashboard Common */
.dashboard-content { padding: 2rem 5% 6rem; max-width: 1200px; margin: 0 auto; }
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; display: flex; justify-content: space-around; padding: 0.5rem 0; border-top: 1px solid var(--border); border-bottom: none; border-radius: 16px 16px 0 0; }
.nav-item { background: transparent; color: var(--text-muted); padding: 10px; flex: 1; text-align: center; font-size: 0.875rem; position: relative; }
.nav-item.active { color: var(--primary); font-weight: 600; }
.list-container { display: flex; flex-direction: column; gap: 1rem; }
.list-item { padding: 1.5rem; background: var(--card-bg); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; border: 1px solid var(--border); }
.list-item-content h4 { margin-bottom: 0.25rem; }
.status-badge { padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.status-badge.pending { background: #fef3c7; color: #92400e; }
.status-badge.working { background: #e0e7ff; color: #3730a3; }
.status-badge.completed { background: #d1fae5; color: #065f46; }

/* Admin Panel Layout */
.admin-layout { display: flex; height: 100vh; overflow: hidden; }
.admin-sidebar { width: 250px; flex-shrink: 0; display: flex; flex-direction: column; border-right: 1px solid var(--border); }
.sidebar-brand { padding: 1.5rem; font-size: 1.25rem; font-weight: bold; border-bottom: 1px solid var(--border); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 1rem 0; }
.side-btn { display: block; width: 100%; text-align: left; padding: 12px 1.5rem; background: transparent; color: var(--text-muted); border-radius: 0; border-left: 3px solid transparent; }
.side-btn:hover, .side-btn.active { background: rgba(255,255,255,0.05); color: var(--primary); border-left-color: var(--primary); }
.sidebar-footer { padding: 1rem; border-top: 1px solid var(--border); }
.admin-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.admin-topbar { padding: 1rem 2rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.admin-content { flex: 1; overflow-y: auto; padding: 2rem; }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.metric-card h3 { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.metric-card h2 { font-size: 2rem; color: var(--primary); }
.table-container { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.admin-table th, .admin-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.admin-table th { color: var(--text-muted); font-weight: 500; }
.admin-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.chart-container { height: 300px; width: 100%; max-width: 600px; }
@media(max-width: 768px) { .admin-layout { flex-direction: column; } .admin-sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--border); } .sidebar-nav { display: flex; overflow-x: auto; padding: 0; } .side-btn { padding: 12px; white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; } .side-btn.active { border-bottom-color: var(--primary); } }