/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #1a1a2e; background: #f8f9fa; }
a { color: #4361ee; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== NAVBAR ===== */
.navbar { background: #1a1a2e; padding: 0.8rem 0; position: sticky; top: 0; z-index: 100; }
.nav-container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { color: #fff; font-size: 1.3rem; font-weight: 700; }
.nav-logo:hover { text-decoration: none; }
.nav-menu { list-style: none; display: flex; gap: 1.2rem; align-items: center; }
.nav-link { color: #ccc; font-size: 0.9rem; }
.nav-link:hover { color: #fff; text-decoration: none; }
.nav-cta { background: #4361ee; color: #fff !important; padding: 0.4rem 1rem; border-radius: 4px; }
.nav-cta:hover { background: #3a56d4; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #1a1a2e; padding: 1rem; }
  .nav-menu.active { display: flex; }
}

/* ===== FOOTER ===== */
.footer { background: #1a1a2e; color: #aaa; padding: 1.5rem 0; margin-top: 3rem; text-align: center; font-size: 0.85rem; }
.footer-container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.footer-links { margin-bottom: 0.5rem; }
.footer-links a { color: #aaa; margin: 0 0.8rem; }
.footer-links a:hover { color: #fff; }
.footer a { color: #aaa; }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 2rem 1rem; }
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 1.8rem; margin-bottom: 0.3rem; }
.page-header p { color: #666; }

/* ===== BUTTONS ===== */
.btn { display: inline-block; padding: 0.6rem 1.4rem; border: none; border-radius: 4px; cursor: pointer; font-size: 0.95rem; font-weight: 500; text-align: center; }
.btn:hover { text-decoration: none; opacity: 0.9; }
.btn-primary { background: #4361ee; color: #fff; }
.btn-secondary { background: #6c757d; color: #fff; }
.btn-success { background: #2ec4b6; color: #fff; }
.btn-danger { background: #e63946; color: #fff; }
.btn-outline { background: transparent; border: 2px solid #4361ee; color: #4361ee; }
.btn-sm { padding: 0.3rem 0.8rem; font-size: 0.85rem; }
.btn-lg { padding: 0.8rem 2rem; font-size: 1.1rem; }
.cta-button { background: #4361ee; color: #fff; padding: 0.8rem 2rem; border-radius: 4px; font-size: 1.1rem; font-weight: 600; border: none; cursor: pointer; display: inline-block; }
.cta-button:hover { background: #3a56d4; text-decoration: none; color: #fff; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.3rem; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.5rem 0.7rem; border: 1px solid #ccc; border-radius: 4px; font-size: 0.95rem; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #4361ee; }
.form-error { color: #e63946; background: #ffeef0; padding: 0.6rem 1rem; border-radius: 4px; margin-bottom: 1rem; font-size: 0.9rem; }
.form-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 2rem; max-width: 500px; margin: 0 auto; }

/* ===== CARDS ===== */
.card { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 1.2rem; margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.5rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }

/* ===== HERO ===== */
.hero { text-align: center; padding: 4rem 1rem; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: #fff; }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.15rem; color: #ccc; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.pricing-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 2rem; text-align: center; }
.pricing-card.featured { border-color: #4361ee; box-shadow: 0 0 0 2px #4361ee; }
.pricing-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.pricing-card .price { font-size: 2rem; font-weight: 700; color: #4361ee; margin: 1rem 0; }
.pricing-card .price span { font-size: 0.9rem; color: #666; font-weight: 400; }
.pricing-card ul { list-style: none; text-align: left; margin: 1rem 0; }
.pricing-card li { padding: 0.3rem 0; font-size: 0.9rem; }
.pricing-card li::before { content: "✓ "; color: #2ec4b6; font-weight: bold; }

/* ===== PROGRESS BAR ===== */
.progress-bar { background: #e0e0e0; border-radius: 10px; height: 8px; margin-bottom: 1.5rem; overflow: hidden; }
.progress-bar-fill { background: #4361ee; height: 100%; border-radius: 10px; transition: width 0.3s; }

/* ===== KANBAN ===== */
.kanban-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.kanban-column { background: #f0f0f5; border-radius: 6px; padding: 1rem; min-height: 200px; }
.kanban-column h3 { font-size: 1rem; margin-bottom: 0.8rem; color: #555; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }
.kanban-task { background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; padding: 0.7rem; margin-bottom: 0.5rem; }
.kanban-task .task-title { font-weight: 500; margin-bottom: 0.3rem; }
.kanban-task .task-actions { display: flex; gap: 0.3rem; margin-top: 0.5rem; }

/* ===== TABLES ===== */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden; }
.table th, .table td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.table th { background: #f8f9fa; font-weight: 600; }

/* ===== GANTT ===== */
.gantt-row { display: flex; align-items: center; margin-bottom: 0.3rem; }
.gantt-label { width: 150px; font-size: 0.85rem; flex-shrink: 0; }
.gantt-bar-container { flex: 1; background: #f0f0f5; height: 24px; border-radius: 3px; position: relative; }
.gantt-bar { background: #4361ee; height: 100%; border-radius: 3px; position: absolute; }

/* ===== TOGGLE SWITCHES ===== */
.toggle-group { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0; border-bottom: 1px solid #eee; }
.toggle-group label { font-weight: 500; }
.toggle { position: relative; width: 48px; height: 26px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider { position: absolute; inset: 0; background: #ccc; border-radius: 26px; cursor: pointer; transition: 0.3s; }
.toggle .slider::before { content: ''; position: absolute; width: 20px; height: 20px; background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: 0.3s; }
.toggle input:checked + .slider { background: #4361ee; }
.toggle input:checked + .slider::before { transform: translateX(22px); }

/* ===== MISC ===== */
.status-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.8rem; font-weight: 500; }
.status-trial { background: #fff3cd; color: #856404; }
.status-paid { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.alert { padding: 0.8rem 1rem; border-radius: 4px; margin-bottom: 1rem; font-size: 0.9rem; }
.alert-info { background: #e7f1ff; color: #0c5460; border: 1px solid #bee5eb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.flex { display: flex; } .flex-between { justify-content: space-between; } .flex-center { align-items: center; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
