:root {
  --bg: #ffffff;
  --bg-soft: #f6f8ff;
  --text: #111827;
  --muted: #667085;
  --primary: #0064ff; /* Bubble-inspired blue */
  --primary-700: #004ce6;
  --accent: #6c5ce7; /* complementary accent */
  --card: #ffffff;
  --success: #12b76a;
  --error: #ef4444;
  --nav-bg-start: #0b2a5b; /* deep navy for strong contrast */
  --nav-bg-end: #081e45;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.container {
  max-width: 1100px;
  padding: 0 20px;
  margin: 0 auto;
}

/* Add top padding equal to header height so content doesn't hide under the fixed nav */
main { padding-top: 70px; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(15,23,42,0.05);
  z-index: 1000;
}

.nav { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 14px 0; 
}

.logo { 
  font-weight: 800; 
  letter-spacing: 0.5px; 
  z-index: 1001;
}

.logo img { 
  height: 80px; 
  width: auto; 
  display: block; 
}

/* Mobile menu toggle button - Single implementation */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-menu a { 
  color: var(--text); 
  text-decoration: none; 
  opacity: 0.9; 
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 100, 255, 0.1) 0%, transparent 100%);
  transition: width 0.3s ease;
  z-index: -1;
}

.nav-menu a:hover::before {
  width: 100%;
}

.nav-menu a:hover, 
.nav-menu a.active { 
  color: var(--primary); 
  opacity: 1; 
  text-decoration: none; 
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 100, 255, 0.15);
}

.nav-menu .btn.btn-sm { 
  padding: 8px 16px; 
  border-radius: 8px; 
  border: 1px solid #cbd5e1; 
  color: var(--text); 
  background: #ffffff; 
  transition: all 0.2s ease;
}

.nav-menu .btn.btn-sm:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn { display: inline-block; color: white; background: var(--primary); border: none; padding: 12px 18px; border-radius: 10px; text-decoration: none; cursor: pointer; transition: transform 0.1s ease, background 0.2s ease; }
.btn:hover { background: var(--primary-700); transform: translateY(-1px); }
.btn-secondary { background: transparent; border: 1px solid #cbd5e1; color: var(--text); }

.hero { position: relative; overflow: hidden; padding: 96px 0; }
.hero .lead { color: var(--muted); max-width: 700px; }
.hero .cta-group { margin-top: 24px; display: flex; gap: 12px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); margin: 0 0 10px 0; }
.hero .kicker { display: inline-block; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: 12px; color: var(--primary); background: rgba(0,100,255,0.08); border: 1px solid #dbe4ff; padding: 6px 10px; border-radius: 999px; margin-bottom: 12px; }
.about-hero { padding: 84px 0 56px; }
.about-hero .stats { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.about-hero .stat { background: var(--card); border: 1px solid #e2e8f0; padding: 10px 14px; border-radius: 12px; color: var(--muted); }
.about-hero .stat span { color: var(--primary); font-weight: 800; margin-right: 6px; }
.with-watermark { position: relative; }
.with-watermark > .container { position: relative; z-index: 1; }
.hero-bg {
  position: absolute; inset: -25% -10% auto -10%; height: 60%;
  background: radial-gradient(600px 300px at 20% 30%, rgba(0, 100, 255, 0.18), transparent),
              radial-gradient(600px 300px at 80% 20%, rgba(108, 92, 231, 0.14), transparent);
  filter: blur(40px);
  pointer-events: none;
}

/* Watermark background using Kodara logo */
.with-watermark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(600px, 55vw, 1000px);
  aspect-ratio: 1 / 1;
  background: url('/image/Kodara%20logo.png') no-repeat center/contain;
  opacity: 0.08;
  filter: grayscale(100%);
  pointer-events: none;
  z-index: 0;
}

/* Home hero watermark uses the same style but can be swapped to a different image if preferred */
/* Removed home background watermark styles */

.hero h1 { text-shadow: 0 1px 0 rgba(255,255,255,0.6); }
.btn { box-shadow: 0 6px 16px rgba(0,100,255,0.18); }
.btn.btn-secondary { box-shadow: none; }

@media (max-width: 1024px) {
  .with-watermark::after {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: clamp(480px, 60vw, 800px);
  }
}

@media (max-width: 640px) {
  .with-watermark::after {
    display: none;
  }
}

.section { padding: 56px 0; }
.section .section-panel { background: #f8fbff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 24px; box-shadow: 0 12px 36px rgba(15,23,42,0.08); }
.section .section-panel h2 { margin-top: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.narrow { max-width: 800px; }

.card { background: var(--card); border: 1px solid #e2e8f0; padding: 18px; border-radius: 14px; box-shadow: 0 6px 20px rgba(15,23,42,0.06); }
.card h3, .card h4 { margin-top: 0; }
.card:hover { transform: translateY(-2px); transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 12px 28px rgba(15,23,42,0.12); }
.card.list ul { margin: 10px 0 0 16px; padding: 0; }
.card.list .checklist { list-style: none; margin-left: 0; }
.card.list .checklist li { position: relative; padding-left: 22px; margin: 6px 0; }
.card.list .checklist li::before { content: "✔"; position: absolute; left: 0; color: var(--primary); font-size: 14px; line-height: 1; top: 2px; }

.project { display: block; color: inherit; text-decoration: none; overflow: hidden; padding: 0; border-radius: 16px; border: 1px solid #e2e8f0; background: #ffffff; box-shadow: 0 8px 24px rgba(15,23,42,0.06); transition: transform .15s ease, box-shadow .15s ease; }
.project:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15,23,42,0.12); }
.project .thumb { height: 220px; background-size: cover; background-position: center; border-bottom: 1px solid #e2e8f0; }
.project .thumb.icon { display: grid; place-items: center; background: #f8fafc; }
.project .thumb.icon img { width: 96px; height: 96px; object-fit: contain; border-radius: 16px; box-shadow: 0 2px 6px rgba(15,23,42,0.1); border: 1px solid #e2e8f0; background: #ffffff; }
.project .content { padding: 18px; background: #fff; }
.project .content h3 { margin-bottom: 8px; }
.project .thumb.placeholder { display: flex; align-items: center; justify-content: center; font-size: 40px; color: #94a3b8; background: radial-gradient(600px 300px at 30% 30%, rgba(0,100,255,0.08), transparent), #eef2ff; }
.project .content { padding: 18px; }
.project h3 { margin: 0 0 6px 0; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Portfolio hero */
.portfolio-hero { padding: 64px 0 24px; }

/* Skeletons */
.skeleton { position: relative; overflow: hidden; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.06) 50%, rgba(0,0,0,0) 100%); animation: shimmer 1.2s infinite; }
.skeleton-thumb { height: 200px; background: #eef2ff; }
.skeleton-line { height: 14px; background: #eef2ff; border-radius: 8px; margin-top: 12px; }
.skeleton-line.short { width: 60%; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.testimonial .rating { color: #fbbf24; margin-bottom: 8px; }
.status { color: var(--muted); margin-top: 12px; }

form.stack label { display: grid; gap: 6px; margin-bottom: 14px; }
input, textarea { width: 100%; background: #ffffff; color: var(--text); border: 1px solid #cbd5e1; padding: 12px; border-radius: 10px; }
.inline-form { display: flex; gap: 10px; }

/* Contact form grid */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.form-grid .full { grid-column: 1 / -1; }
select { width: 100%; background: #ffffff; color: var(--text); border: 1px solid #cbd5e1; padding: 12px; border-radius: 10px; }
.hint { color: var(--muted); display: block; margin-top: 6px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Contact page polishing */
textarea { min-height: 180px; }
.consent-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.consent-row input[type="checkbox"] { width: 18px; height: 18px; }
.form-actions { display: flex; justify-content: flex-start; }
@media (max-width: 640px) { .form-actions { justify-content: stretch; } }

/* Sectioned form */
.form-sections { display: grid; gap: 24px; }
.panel { border: 1px solid #e2e8f0; background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 10px 24px rgba(15,23,42,0.06); overflow: hidden; }
.panel .form-grid { gap: 16px 20px; }

/* Contact page two-column layout with sidebar */
.contact-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.sidebar .card { border: 1px solid #e2e8f0; background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 10px 24px rgba(15,23,42,0.06); }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.panel > legend { font-weight: 700; padding: 0 8px; }

.site-footer { background: var(--primary); color: #ffffff; padding: 26px 0; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.site-footer a { color: #ffffff; text-decoration: none; opacity: 0.9; }
.site-footer a:hover { opacity: 1; }
.socials a { color: #ffffff; text-decoration: none; margin-left: 12px; opacity: 0.9; }
.socials a:hover { color: #ffffff; opacity: 1; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; }
  .logo img { height: 64px; }
}

/* Stepper */
.stepper { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding: 0; margin: 0; }
.stepper li { background: var(--bg-soft); border: 1px solid #e2e8f0; padding: 12px; border-radius: 10px; text-align: center; }

/* Pills */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-block; padding: 8px 12px; border-radius: 999px; background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.35); }

/* Accordion */
.accordion details { background: var(--card); border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
.accordion summary { cursor: pointer; font-weight: 600; }

/* Branded CTA */
.gradient-cta { padding-top: 0; }
.card.branded { background: linear-gradient(135deg, rgba(0,100,255,0.08), rgba(108,92,231,0.08)); border: 1px solid #dbe4ff; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.5); display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal { background: var(--card); color: var(--text); border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; width: min(92vw, 420px); box-shadow: 0 20px 60px rgba(15,23,42,0.25); text-align: center; }
.modal h3 { margin: 0 0 6px 0; }
.modal .actions { margin-top: 14px; display: flex; justify-content: center; }
.modal .btn { min-width: 120px; }

/* Home: features, chips, trusted-by */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.chip { font-size: 12px; color: var(--text); background: #eef2ff; border: 1px solid #dbe4ff; padding: 6px 10px; border-radius: 999px; }
.features .icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(0,100,255,0.1); border: 1px solid #dbe4ff; display: grid; place-items: center; color: var(--primary); margin-bottom: 10px; }
.trusted { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; color: #64748b; }
.trusted .pill { background: #f8fafc; border: 1px solid #e2e8f0; padding: 8px 12px; border-radius: 999px; font-size: 13px; }

/* Process stepper (home) */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process .step { background: var(--card); border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; position: relative; }
.process .step .num { width: 28px; height: 28px; border-radius: 999px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 10px; }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .process { grid-template-columns: 1fr; } }

/* Divider */
.divider { height: 1px; background: #e2e8f0; margin: 28px 0; opacity: .8; }

/* CTA wide */
.cta-wide .card { text-align: center; background: linear-gradient(135deg, rgba(0,100,255,0.08), rgba(108,92,231,0.08)); border: 1px solid #dbe4ff; }


/* Admin/Auth pages */
.auth { padding-top: 90px; }
.auth .card { max-width: 720px; margin: 0 auto; }
.admin-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e2e8f0; }
.table tr:hover { background: #f8fbff; }
.status.success { color: var(--success); }
.status.error { color: var(--error); }

/* Enhanced Admin Dashboard Styling */
.admin-grid {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: calc(100vh - 120px);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(15,23,42,0.08);
}

#sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(15,23,42,0.06);
  height: fit-content;
  position: sticky;
  top: 100px;
}

#sidebar h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#sidebar .btn {
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  color: var(--text);
  text-align: left;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

#sidebar .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,100,255,0.15);
  border-color: var(--primary);
}

#sidebar .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

#sidebar .btn:hover::before {
  left: 100%;
}

/* Active tab styling */
.btn[data-tab].active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0,100,255,0.25);
  transform: translateY(-2px);
}

/* Content Area Styling */
#content {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 32px rgba(15,23,42,0.06);
  overflow: hidden;
}

#content .card.panel {
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 32px;
}

#content h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 24px 0;
  position: relative;
}

#content h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* Form Styling */
#newProject {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

#newProject label {
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

#newProject input,
#newProject textarea {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: #ffffff;
}

#newProject input:focus,
#newProject textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,100,255,0.1);
}

#newProject .btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
  border: none;
  padding: 14px 24px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s ease;
}

#newProject .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,100,255,0.25);
}

/* Table Styling */
.table {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15,23,42,0.04);
}

.table th {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  font-weight: 600;
  color: var(--text);
  padding: 16px 12px;
  border-bottom: 2px solid #e2e8f0;
}

.table td {
  padding: 16px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text);
}

.table tr:hover {
  background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Delete Button Styling */
.btn.del {
  background: #ef4444;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn.del:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239,68,68,0.25);
}

/* Status Messages */
.status {
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  margin-top: 16px;
}

.status.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.status.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Responsive Design */
@media (max-width: 768px) {
  .admin-grid {
    padding: 16px;
    gap: 16px;
  }
  
  #sidebar {
    position: static;
    margin-bottom: 16px;
  }
  
  #content .card.panel {
    padding: 20px;
  }
  
  #newProject {
    padding: 16px;
  }
}

/* Page Header Styling */
.page-header {
  text-align: center;
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header .subtitle {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

/* Section Header Styling */
.section-header {
  margin-bottom: 24px;
}

.section-header h3 {
  margin: 0 0 16px 0;
  font-size: 24px;
  font-weight: 700;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,23,42,0.12);
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* Form Row Layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

@media (max-width: 640px) {
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Table Controls */
.table-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.search-input {
  min-width: 200px;
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
}

.filter-select {
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  min-width: 150px;
}

.date-input {
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
}

/* Filter Controls */
.filter-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Newsletter Controls */
.newsletter-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Chart Controls */
.chart-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

/* Chart Container */
.chart-container {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  min-height: 200px;
}

.chart-placeholder {
  text-align: center;
  color: var(--muted);
}

.chart-data {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chart-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.summary-item {
  text-align: center;
  padding: 12px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 120px;
  padding: 20px 0;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-700) 100%);
  border-radius: 4px 4px 0 0;
  position: relative;
  min-width: 20px;
}

.chart-bar:hover .bar-tooltip {
  opacity: 1;
  visibility: visible;
}

.bar-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 10;
}

.bar-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--text);
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.status-badge.active,
.status-badge.succeeded {
  background: #dcfce7;
  color: #166534;
}

.status-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.failed,
.status-badge.canceled {
  background: #fee2e2;
  color: #dc2626;
}

/* Category Badges */
.category-badge {
  display: inline-block;
  padding: 4px 8px;
  background: #eef2ff;
  color: var(--primary);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

/* Service Badges */
.service-badge {
  display: inline-block;
  padding: 4px 8px;
  background: #f0f9ff;
  color: #0369a1;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

/* Budget Badges */
.budget-badge {
  display: inline-block;
  padding: 4px 8px;
  background: #f0fdf4;
  color: #166534;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

/* Timeline Badges */
.timeline-badge {
  display: inline-block;
  padding: 4px 8px;
  background: #fef7ff;
  color: #7c3aed;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

/* Customer Info */
.customer-info {
  line-height: 1.4;
}

.customer-info small {
  color: var(--muted);
}

/* Amount Info */
.amount-info {
  line-height: 1.4;
}

.amount-info small {
  color: var(--muted);
}

/* Email Links */
.email-link {
  color: var(--primary);
  text-decoration: none;
}

.email-link:hover {
  text-decoration: underline;
}

/* Link Preview */
.link-preview {
  color: var(--primary);
  text-decoration: none;
  word-break: break-all;
}

.link-preview:hover {
  text-decoration: underline;
}

/* Thumbnail Images */
.thumbnail {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* Contact Details */
.contact-details {
  text-align: left;
}

.detail-row {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.detail-row:last-child {
  border-bottom: none;
}

.message-content {
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-top: 8px;
  white-space: pre-wrap;
}

/* Payment Details */
.payment-details {
  text-align: left;
}

/* Bulk Actions */
.bulk-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

/* Small Buttons */
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Text Center */
.text-center {
  text-align: center;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Tablet and smaller desktop */
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }
  
  .hero {
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: clamp(28px, 4vw, 48px);
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .section {
    padding: 48px 0;
  }
  
  .card {
    padding: 16px;
  }
}

/* Mobile devices - Clean, working implementation */
@media (max-width: 768px) {
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
    border-radius: 8px !important;
    padding: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 100, 255, 0.3) !important;
    transition: all 0.3s ease !important;
  }
  
  .mobile-menu-toggle:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 100, 255, 0.4) !important;
  }
  
  .mobile-menu-toggle span {
    background: white !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  }
  
  /* Hide desktop navigation */
  .nav-menu {
    display: none !important;
  }
  
  /* Show mobile navigation */
  .nav-menu.mobile-active {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: 280px !important;
    height: 100vh !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%) !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    padding: 80px 32px 32px 32px !important;
    box-shadow: -5px 0 25px rgba(0, 100, 255, 0.15) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    gap: 24px !important;
    z-index: 1000 !important;
    border-left: 4px solid var(--primary) !important;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  
  .nav-menu.mobile-active a {
    font-size: 18px !important;
    padding: 16px 20px !important;
    border-bottom: 1px solid rgba(0, 100, 255, 0.1) !important;
    width: 100% !important;
    text-align: left !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    color: var(--text) !important;
    text-decoration: none !important;
  }
  
  .nav-menu.mobile-active a::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 0 !important;
    height: 100% !important;
    background: linear-gradient(90deg, rgba(0, 100, 255, 0.1) 0%, transparent 100%) !important;
    transition: width 0.3s ease !important;
    z-index: -1 !important;
  }
  
  .nav-menu.mobile-active a:hover::before {
    width: 100% !important;
  }
  
  .nav-menu.mobile-active a:hover {
    color: var(--primary) !important;
    transform: translateX(8px) !important;
    box-shadow: 0 4px 12px rgba(0, 100, 255, 0.15) !important;
  }
  
  .nav-menu.mobile-active a:last-child {
    border-bottom: none !important;
  }
  
  .nav-menu.mobile-active .btn.btn-sm {
    width: 100% !important;
    text-align: center !important;
    margin-top: 16px !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
    color: white !important;
    border: none !important;
    padding: 16px 24px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(0, 100, 255, 0.3) !important;
    transition: all 0.3s ease !important;
  }
  
  .nav-menu.mobile-active .btn.btn-sm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 100, 255, 0.4) !important;
  }
  
  /* Logo size adjustment for mobile */
  .logo img {
    height: 60px;
  }
  
  /* Hero section mobile adjustments */
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: clamp(24px, 6vw, 36px);
    line-height: 1.2;
  }
  
  .hero .lead {
    font-size: 16px;
    line-height: 1.5;
  }
  
  .hero .cta-group {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .hero .cta-group .btn {
    text-align: center;
    padding: 16px 24px;
    font-size: 16px;
  }
  
  /* Grid adjustments for mobile */
  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Section spacing */
  .section {
    padding: 40px 0;
  }
  
  .section-panel {
    padding: 20px;
    border-radius: 16px;
  }
  
  /* Card adjustments */
  .card {
    padding: 20px;
  }
  
  /* Form adjustments */
  .inline-form {
    flex-direction: column;
    gap: 16px;
  }
  
  .inline-form input,
  .inline-form button {
    width: 100%;
  }
  
  /* Button adjustments */
  .btn {
    padding: 14px 20px;
    font-size: 16px;
    width: 100%;
    text-align: center;
  }
  
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
  
  /* Container padding */
  .container {
    padding: 0 20px;
  }
  
  /* Main padding adjustment */
  main {
    padding-top: 60px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero {
    padding: 50px 0;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .section {
    padding: 32px 0;
  }
  
  .card {
    padding: 16px;
  }
  
  .logo img {
    height: 50px;
  }
  
  .mobile-menu-toggle {
    width: 24px;
    height: 24px;
  }
  
  .mobile-menu-toggle span {
    height: 2px;
  }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 40px 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Mobile menu animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== SIMPLE MOBILE MENU ===== */

/* Mobile button */
.mobile-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: #007bff;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 4px;
}

.mobile-btn span {
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile navigation */
.mobile-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--primary);
  background: rgba(0, 123, 255, 0.1);
}

.contact-btn {
  background: var(--primary);
  color: white !important;
  padding: 8px 16px;
  border-radius: 4px;
}

.contact-btn:hover {
  background: var(--primary-700);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .mobile-btn {
    display: flex !important;
  }
  
  .mobile-nav {
    display: none !important;
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 20px 20px 20px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    gap: 20px;
    z-index: 1000;
  }
  
  .mobile-nav.mobile-active {
    display: flex !important;
  }
  
  .mobile-nav a {
    width: 100%;
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
  }
  
  .mobile-nav a:last-child {
    border-bottom: none;
  }
}

