:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --secondary: #64748b;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    
    --c-blue: #3B82F6;
    --c-green: #10b981;
    --c-orange: #f59e0b;
    --c-purple: #8b5cf6;
    --c-teal: #14b8a6;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', sans-serif; color: var(--text-main); line-height: 1.6; background-color: var(--bg-light); }
h1, h2, h3, h4 { margin: 0 0 1rem; font-weight: 700; color: #0f172a; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; padding: 0; }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--white); }
.w-full { width: 100%; }
.mt-4 { margin-top: 1rem; }
.hidden { display: none; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; transition: 0.2s; }
.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-dark); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.1rem; }

/* Navigation */
.navbar { position: fixed; top: 0; left: 0; right: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); z-index: 1000; padding: 15px 0; border-bottom: 1px solid transparent; transition: 0.3s; }
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 30px; }
.nav-items a { font-weight: 500; color: var(--secondary); }
.nav-items a:hover, .nav-items a.active { color: var(--primary); }
.nav-auth { display: flex; align-items: center; gap: 15px; }
.user-btn { background: none; border: none; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.2rem; cursor: pointer; }

/* Mobile Menu */
.mobile-menu { position: fixed; top: 70px; left: 0; right: 0; background: white; padding: 20px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); z-index: 999; }
.mobile-menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }

/* Hero */
.hero { padding-top: 140px; padding-bottom: 80px; background: white; }
.hero-content { display: flex; align-items: center; gap: 50px; }
.hero-text { flex: 1; }
.hero-text h1 { font-size: 3.5rem; line-height: 1.1; letter-spacing: -1px; margin-bottom: 20px; }
.hero-text p { font-size: 1.2rem; color: var(--secondary); margin-bottom: 30px; max-width: 500px; }
.hero-image { flex: 1; }
.hero-image img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); }

/* Sections */
.row { display: flex; align-items: center; gap: 60px; }
.row.reverse { flex-direction: row-reverse; }
.col-img, .col-text { flex: 1; }
.rounded-img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); }
.feature-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.feature-list i { color: var(--primary); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.card { background: white; padding: 30px; border-radius: 16px; border: 1px solid var(--border); transition: 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary); }
.service-card { text-align: center; }
.icon-box { width: 60px; height: 60px; background: #eff6ff; color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 20px; }

/* Dashboard */
.dashboard-main { padding-top: 100px; padding-bottom: 50px; min-height: 100vh; }
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { background: white; padding: 20px; border-radius: 12px; display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow); }
.stat-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: white; }
.stat-card.blue .stat-icon { background: var(--c-blue); }
.stat-card.orange .stat-icon { background: var(--c-orange); }
.stat-card.green .stat-icon { background: var(--c-green); }
.stat-card.purple .stat-icon { background: var(--c-purple); }
.stat-info h3 { font-size: 0.9rem; color: var(--secondary); margin: 0; font-weight: 500; }
.stat-info p { font-size: 1.5rem; font-weight: 700; margin: 0; color: #0f172a; }
.stat-info small { font-size: 0.8rem; font-weight: 400; color: var(--secondary); }

.content-panel { background: white; border-radius: 16px; padding: 25px; box-shadow: var(--shadow); }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.filters button { background: none; border: none; padding: 6px 12px; cursor: pointer; color: var(--secondary); font-weight: 500; border-radius: 6px; }
.filters button.active { background: #eff6ff; color: var(--primary); }

.activity-item { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; }
.bg-green { background: var(--c-green); }
.bg-orange { background: var(--c-orange); }
.bg-blue { background: var(--c-blue); }
.bg-purple { background: var(--c-purple); }
.bg-teal { background: var(--c-teal); }
.bg-gray { background: var(--secondary); }
.activity-details { flex: 1; }
.activity-details h4 { font-size: 1rem; margin: 0; }
.activity-time { font-size: 0.85rem; color: var(--secondary); }
.activity-value { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.delete-btn { background: none; border: none; color: #ef4444; cursor: pointer; opacity: 0; transition: 0.2s; }
.activity-item:hover .delete-btn { opacity: 1; }

.empty-state { text-align: center; padding: 40px 0; color: var(--secondary); }
.empty-state i { font-size: 3rem; margin-bottom: 15px; opacity: 0.3; }

/* Modals */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.modal-card { background: white; padding: 30px; border-radius: 16px; width: 100%; max-width: 400px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header button { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--secondary); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group select { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; }
.col-half { flex: 1; }
.error-msg { color: #ef4444; font-size: 0.9rem; margin-bottom: 15px; }
.modal-footer-text { text-align: center; font-size: 0.9rem; margin-top: 15px; color: var(--secondary); }
.modal-footer-text a { color: var(--primary); font-weight: 600; }

/* Footer */
.footer { background: white; padding: 60px 0 30px; border-top: 1px solid var(--border); margin-top: auto; }
.footer-content { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 30px; }
.social-links { display: flex; gap: 20px; font-size: 1.5rem; color: var(--secondary); }
.social-links a:hover { color: var(--primary); transform: translateY(-3px); }
.footer-copy { color: var(--secondary); font-size: 0.9rem; }

/* Responsive */
@media (max-width: 768px) {
    .hidden-mobile { display: none; }
    .mobile-toggle { display: block; }
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text p { margin: 0 auto 30px; }
    .row, .row.reverse { flex-direction: column; gap: 30px; }
    .grid-3 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}