/*--------------------------------------------------------------
# KedereAI Platform - Custom Styles (Restored from index.html)
--------------------------------------------------------------*/

/* Font & Color Variables - KedereAI Brand */
:root {
  --KedereAI-blue: #2563eb;
  --KedereAI-green: #10b981;
  --KedereAI-orange: #f59e0b;
  --KedereAI-red: #ef4444;
  --KedereAI-cyan: #06b6d4;
  --KedereAI-purple: #8b5cf6;
  --KedereAI-gray-50: #f9fafb;
  --KedereAI-gray-100: #f3f4f6;
  --KedereAI-gray-200: #e5e7eb;
  --KedereAI-gray-800: #1f2937;
  --KedereAI-gray-900: #111827;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

body {
  background-color: #f8f9fa; /* Softer background */
  color: var(--KedereAI-gray-800);
  font-family: "Inter", sans-serif;
}

/* Minimal Dashboard Styles */
.dashboard-minimal-header {
  background: transparent;
  padding: 40px 0 20px;
  margin-top: 60px;
  text-align: center;
}

.dashboard-minimal-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--KedereAI-gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.dashboard-minimal-header p {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
}

/* Minimal Filters */
.minimal-filters {
  background: white;
  border-radius: 100px; /* Pill shape */
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto 40px;
  border: 1px solid var(--KedereAI-gray-100);
}

.minimal-filters .form-select,
.minimal-filters .form-control {
  border: none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--KedereAI-gray-800);
  padding: 10px 16px;
  box-shadow: none !important;
}

.minimal-filters .form-select:focus,
.minimal-filters .form-control:focus {
  background: var(--KedereAI-gray-50);
  border-radius: 8px;
}

.minimal-filters .btn-search {
  background: var(--KedereAI-blue);
  color: white;
  border-radius: 50px;
  padding: 10px 24px;
  font-weight: 600;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.minimal-filters .btn-search:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* ============ KPI Cards ============ */
.kpi-card {
  background: #fff;
  border-radius: 16px;
  border: none;
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.kpi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.kpi-card-body {
  padding: 32px 32px 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.kpi-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.kpi-info {
  flex: 1;
  min-width: 0;
}

.kpi-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 6px;
}

.kpi-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}

.kpi-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-card-footer {
  padding: 12px 32px;
  background: rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* KPI Color Variants - Solid Colors */
.kpi-blue {
  background: linear-gradient(135deg, var(--KedereAI-blue), #1d4ed8);
}
.kpi-blue .kpi-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.kpi-green {
  background: linear-gradient(135deg, var(--KedereAI-green), #059669);
}
.kpi-green .kpi-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.kpi-orange {
  background: linear-gradient(135deg, var(--KedereAI-orange), #d97706);
}
.kpi-orange .kpi-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.kpi-purple {
  background: linear-gradient(135deg, var(--KedereAI-purple), #7c3aed);
}
.kpi-purple .kpi-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Override text-danger in purple card */
.kpi-purple .text-danger {
  color: #fca5a5 !important;
}

/* ============ Chart Cards ============ */
.chart-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--KedereAI-gray-200);
  overflow: hidden;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chart-card-header {
  padding: 20px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.chart-card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--KedereAI-gray-900);
  margin-bottom: 2px;
}

.chart-card-header p {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-bottom: 0;
}

.chart-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.chart-badge-line {
  background: rgba(37, 99, 235, 0.08);
  color: var(--KedereAI-blue);
}

.chart-badge-pie {
  background: rgba(139, 92, 246, 0.08);
  color: var(--KedereAI-purple);
}

.chart-badge-bar {
  background: rgba(16, 185, 129, 0.08);
  color: var(--KedereAI-green);
}

.chart-card-body {
  padding: 16px 24px 24px;
}

/* ============ Table Card ============ */
.table-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--KedereAI-gray-200);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.table-card-header {
  padding: 24px 24px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--KedereAI-gray-100);
}

.table-card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--KedereAI-gray-900);
  margin-bottom: 2px;
}

.table-card-header p {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 0;
}

/* Dashboard Tabs */
.dash-tabs {
  padding: 0 24px;
  border-bottom: 1px solid var(--KedereAI-gray-200);
  display: flex;
  gap: 0;
}

.dash-tabs .nav-link {
  background: transparent;
  color: #6b7280;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  margin-bottom: -1px;
}

.dash-tabs .nav-link:hover {
  color: var(--KedereAI-blue);
  background: rgba(37, 99, 235, 0.03);
}

.dash-tabs .nav-link.active {
  color: var(--KedereAI-blue);
  border-bottom-color: var(--KedereAI-blue);
  background: transparent;
}

/* Dashboard Table */
.table-card > .tab-content {
  padding: 0 24px 24px;
}

.dash-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--KedereAI-gray-200);
  border-radius: 10px;
  overflow: hidden;
}

.dash-table thead {
  background: var(--KedereAI-gray-50);
}

.dash-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #6b7280;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--KedereAI-gray-200);
  white-space: nowrap;
}

.dash-table td {
  padding: 12px 16px;
  color: var(--KedereAI-gray-800);
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--KedereAI-gray-100);
  vertical-align: middle;
}

.dash-table tbody tr:last-child td {
  border-bottom: none;
}

.dash-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.02);
}

.dash-table tbody tr:nth-child(even) {
  background: var(--KedereAI-gray-50);
}

.dash-table tbody tr:nth-child(even):hover {
  background: rgba(37, 99, 235, 0.04);
}

/* Rest of the existing styles... */

.btn-get-started,
.cta-btn {
  background: var(--KedereAI-blue);
  color: #fff;
}

.btn-get-started:hover,
.cta-btn:hover {
  background: #35539a; /* darker blue */
}

.hero .btn-get-started.btn-secondary {
  background: #ffffff;
  color: var(--KedereAI-blue);
  border: 2px solid var(--KedereAI-blue);
}

/* KedereAI Logo Styling */
.header .logo svg {
  margin-right: 10px;
}

.header .logo .sitename {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--KedereAI-blue);
  background: linear-gradient(135deg, var(--KedereAI-blue) 0%, var(--KedereAI-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Section - KedereAI Style */
.hero {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  min-height: 80vh;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--KedereAI-blue) 0%, var(--KedereAI-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 20px;
  line-height: 1.6;
  margin: 20px 0 40px 0;
}

.hero .btn-get-started {
  background: var(--KedereAI-blue);
  color: white;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.hero .btn-get-started:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Featured Services - Stats Cards */
.featured-services .service-item {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  border: 1px solid var(--KedereAI-gray-200);
}

.featured-services .service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.featured-services .service-item .icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--KedereAI-blue) 0%, var(--KedereAI-green) 100%);
  border-radius: 16px;
}

.featured-services .service-item .icon i {
  color: white;
  font-size: 28px;
}

.featured-services .service-item .title {
  font-size: 20px;
  font-weight: 700;
  margin-top: 15px;
}

/* Features Tabs - KedereAI Style */
.features .nav-link {
  background: white;
  border: 2px solid var(--KedereAI-gray-200);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s;
}

.features .nav-link:hover {
  border-color: var(--KedereAI-blue);
  transform: translateX(5px);
}

.features .nav-link.active {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border-color: var(--KedereAI-blue);
}

.features .nav-link i {
  background: var(--KedereAI-blue);
  color: white;
  width: 56px;
  height: 56px;
  font-size: 24px;
  border-radius: 12px;
}

.features .nav-link.active i {
  background: linear-gradient(135deg, var(--KedereAI-blue) 0%, var(--KedereAI-green) 100%);
}

/* Services Section - How It Works */
.services .service-item {
  background: white;
  border: 2px solid var(--KedereAI-gray-200);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s;
}

.services .service-item:hover {
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.services .service-item .icon {
  width: 72px;
  height: 72px;
  font-size: 32px;
  border-radius: 16px;
}

/* KedereAI-specific service colors */
.services .service-item.item-cyan .icon {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: white;
  border: none;
}

.services .service-item.item-orange .icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
}

.services .service-item.item-teal .icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
}

.services .service-item.item-red .icon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
}

.services .service-item.item-indigo .icon {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  border: none;
}

.services .service-item.item-pink .icon {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); /* WhatsApp colors */
  color: white;
  border: none;
}

/* Call to Action */
.call-to-action {
  background: linear-gradient(135deg, var(--KedereAI-blue) 0%, var(--KedereAI-green) 100%);
  padding: 80px 0;
}

.call-to-action h3 {
  color: white;
  font-size: 32px;
  font-weight: 700;
}

.call-to-action p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.call-to-action .cta-btn {
  background: white;
  color: var(--KedereAI-blue);
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s;
}

.call-to-action .cta-btn:hover {
  background: var(--KedereAI-gray-100);
  transform: scale(1.05);
}

/* Testimonials */
.testimonials .testimonial-item {
  background: white;
  border: 2px solid var(--KedereAI-gray-200);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.testimonials .testimonial-item .stars i {
  color: #fbbf24;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading-color);
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: var(--KedereAI-gray-800);
  font-weight: 500;
}

/* FAQ Section */
.faq .faq-item {
  background: white;
  border: 2px solid var(--KedereAI-gray-200);
  border-radius: 12px;
  transition: all 0.3s;
}

.faq .faq-item:hover {
  border-color: var(--KedereAI-blue);
}

.faq .faq-active {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border-color: var(--KedereAI-blue);
}

.faq .faq-item h3 .num {
  color: var(--KedereAI-green);
  font-weight: 700;
}

.hero .d-flex {
  gap: 14px; /* spacing between buttons */
  justify-content: center;
  flex-wrap: wrap; /* keeps it nice on mobile */
}

.hero .btn-get-started {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.hero .btn-get-started.btn-secondary {
  background: #ffffff;
  color: var(--KedereAI-blue);
  border: 2px solid rgba(37, 99, 235, 0.25);
  box-shadow: none;
}

.hero .btn-get-started.btn-secondary:hover {
  background: var(--KedereAI-gray-50);
}

/* About Section Enhancements */
.about .about-heading {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.about .about-heading span {
  background: linear-gradient(135deg, var(--KedereAI-blue), var(--KedereAI-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about .about-intro {
  max-width: 820px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
  color: var(--KedereAI-gray-800);
}

.about .about-single-img {
  border-radius: 20px;
  border: 1px solid var(--KedereAI-gray-200);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.about .about-list {
  list-style: none;
  padding: 0;
}

.about .about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 16px;
}

.about .about-list i {
  color: var(--KedereAI-green);
  font-size: 20px;
  margin-top: 2px;
}

/* Mobile */
@media (max-width: 768px) {
  .about .about-heading {
    font-size: 32px;
  }
}

/* Footer - KedereAI Branding */
.footer {
  background: var(--KedereAI-gray-800);
  color: #e5e7eb;
}

.footer .sitename {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--KedereAI-blue) 0%, var(--KedereAI-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer a {
  color: #d1d5db;
}

.footer a:hover {
  color: var(--KedereAI-green);
}

.footer .social-links a {
  border-color: #4b5563;
  color: #9ca3af;
}

.footer .social-links a:hover {
  background: var(--KedereAI-blue);
  border-color: var(--KedereAI-blue);
  color: white;
}

.footer-newsletter {
  background: var(--KedereAI-blue);
  padding: 50px 0;
}

.footer-newsletter h4 {
  color: white;
  font-size: 24px;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.9);
}

.footer-newsletter input[type="email"] {
  background: white;
  border: none;
  padding: 12px 20px;
  border-radius: 50px 0 0 50px;
}

.footer-newsletter input[type="submit"] {
  background: var(--KedereAI-green);
  color: white;
  padding: 12px 30px;
  border-radius: 0 50px 50px 0;
  font-weight: 600;
}

.footer-newsletter input[type="submit"]:hover {
  background: #059669;
}

/* Custom KedereAI Components */
/* Stats Badge */
.stat-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--KedereAI-blue) 0%, var(--KedereAI-green) 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
}

/* Success Badge */
.badge-success {
  background: var(--KedereAI-green);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

/* Warning Badge */
.badge-warning {
  background: var(--KedereAI-orange);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

/* Danger Badge */
.badge-danger {
  background: var(--KedereAI-red);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

/* Blue Badge */
.badge-blue {
  background: var(--KedereAI-blue);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

/* Alert Badge (used in tables and modals) */
.alert-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Table Amount Cells */
.dash-table td.amount,
.dash-table td.text-end {
  font-family: "Inter", monospace;
  font-variant-numeric: tabular-nums;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  backdrop-filter: blur(4px);
}

.loading-overlay p {
  font-weight: 600;
  color: var(--KedereAI-gray-800);
}

/* Contract Modal */
.contract-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}

.contract-modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.contract-modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--KedereAI-gray-200);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.contract-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--KedereAI-gray-900);
  margin: 0 0 4px;
}

.contract-close-btn {
  background: none;
  border: 1px solid var(--KedereAI-gray-200);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s;
}

.contract-close-btn:hover {
  background: var(--KedereAI-gray-50);
  color: var(--KedereAI-gray-900);
}

.contract-modal-body {
  padding: 24px;
}

.alert-item {
  padding: 14px;
  border-radius: 10px;
  background: var(--KedereAI-gray-50);
  border: 1px solid var(--KedereAI-gray-100);
}

.alert-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--KedereAI-gray-900);
  margin-bottom: 6px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .header .logo .sitename {
    font-size: 24px;
  }

  .kpi-card-body {
    padding: 16px;
  }

  .kpi-value {
    font-size: 1.4rem;
  }

  .chart-card-header {
    flex-direction: column;
  }

  .dash-tabs {
    padding: 0 16px;
    overflow-x: auto;
  }

  .dash-tabs .nav-link {
    padding: 12px 14px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .tab-content {
    padding: 0 16px 16px;
  }

  .table-card-header {
    padding: 16px;
  }

  .minimal-filters {
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 12px;
    gap: 8px;
  }

  .minimal-filters .form-select,
  .minimal-filters .form-control {
    flex: 1;
    min-width: 120px;
  }

  .minimal-filters > div[style*="width: 1px"] {
    display: none;
  }
}
