@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1e3a8a; /* Deep blue logo */
  --primary-hover: #172554;
  --secondary: #dc2626; /* Vibrant red logo */
  --secondary-hover: #b91c1c;
  --accent: #f59e0b; /* Amber gold */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #f1f5f9;
  --border-color: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

input, select, textarea, button {
  font-family: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.025em;
}

.navbar-brand span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-item a {
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-item a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.35);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-main);
  border-color: var(--primary);
}

.btn-accent {
  background-color: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.btn-accent:hover {
  background-color: #d97706;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 6rem 0 8rem 0;
  background: radial-gradient(circle at top right, rgba(220, 38, 38, 0.08), transparent 50%),
              radial-gradient(circle at bottom left, rgba(30, 58, 138, 0.08), transparent 50%);
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background-color: rgba(30, 58, 138, 0.1);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

@keyframes floatLogo {
  0% { transform: translateY(0px); filter: drop-shadow(0 15px 25px rgba(239, 68, 68, 0.2)); }
  50% { transform: translateY(-12px); filter: drop-shadow(0 25px 35px rgba(30, 58, 138, 0.3)); }
  100% { transform: translateY(0px); filter: drop-shadow(0 15px 25px rgba(239, 68, 68, 0.2)); }
}

.hero-logo-glow {
  max-width: 340px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  animation: floatLogo 6s ease-in-out infinite;
  display: block;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-buttons {
    justify-content: center;
  }
}

/* Services Section */
.section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.card-service {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card-service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.card-service:hover::before {
  transform: scaleX(1);
}

.card-service:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 58, 138, 0.08);
  color: var(--primary);
  font-size: 1.75rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
}

.card-service h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-service p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Portfolio Section */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portfolio-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-content {
  padding: 1.75rem;
}

.portfolio-category {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.portfolio-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA / Contact Section */
.cta-section {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: white;
  padding: 5rem 0;
  border-radius: var(--radius-lg);
  margin: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.cta-section p {
  font-size: 1.15rem;
  color: var(--text-light);
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

/* Footer */
footer {
  background-color: #0b0f19;
  color: var(--text-light);
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-contact i {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* =========================================
   MOBILE RESPONSIVE UTILITIES
   ========================================= */
@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .hero {
    padding: 3rem 0 4rem 0;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero p {
    font-size: 1.05rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .hero-logo-glow {
    max-width: 220px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Navbar Mobile */
  .desktop-only {
    display: none !important;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 45;
  }
  .nav-links.active {
    transform: translateY(0);
  }
  .mobile-toggle {
    display: block !important;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    background: none;
    border: none;
  }

  /* Grid Layouts */
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  /* Footer Mobile Simple */
  .footer {
    padding: 2.5rem 0 1.5rem 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-mobile-hidden {
    display: none !important;
  }
  .footer-contact li {
    justify-content: center;
    font-size: 0.9rem;
  }
  .social-links {
    justify-content: center;
    margin-top: 1rem;
  }


  /* Admin Mobile Layout */
  .admin-sidebar {
    transform: translateX(-100%);
    width: 280px;
  }
  .admin-sidebar.active {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0 !important;
  }
  .admin-topbar {
    padding: 0 1.25rem;
  }
  .admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .admin-mobile-toggle {
    display: inline-block !important;
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary);
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    cursor: pointer;
  }
  .admin-content {
    padding: 1.25rem;
  }
  .topbar-right .btn-secondary {
    display: none; /* Sembunyikan tombol lihat web di layar kecil admin */
  }
}

.mobile-toggle, .admin-mobile-toggle {
  display: none;
}


/* =========================================
   DESKTOP ADMIN LAYOUT (ERP & CMS)
   ========================================= */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-main);
  font-size: 0.875rem; /* 14px base font untuk ERP */
}

/* Override Tombol Khusus Admin (Solid 1 Warna & Ringkas) */
.admin-wrapper .btn {
  font-size: 0.85rem;
  padding: 0.45rem 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: none !important;
}

.admin-wrapper .btn-primary {
  background: #1e3a8a !important; /* Biru tua solid */
  color: white !important;
}

.admin-wrapper .btn-primary:hover {
  background: #172554 !important;
}

.admin-wrapper .btn-secondary {
  background: #334155 !important; /* Slate abu netral */
  color: white !important;
}

.admin-wrapper .btn-secondary:hover {
  background: #1e293b !important;
}

.admin-sidebar {
  width: 250px;
  background-color: #0f172a;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.sidebar-brand {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-box-white {
  background-color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sidebar-brand img {
  height: 28px;
  width: auto;
  display: block;
}

.sidebar-menu {
  padding: 1.25rem 0.85rem;
  overflow-y: auto;
  flex: 1;
}

.menu-category {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.5rem 0 0.4rem 0.75rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.2rem;
  transition: var(--transition);
}

.menu-item:hover, .menu-item.active {
  background-color: rgba(255, 255, 255, 0.08);
  color: white;
  border-left: 3px solid #60a5fa;
}

.menu-item i {
  font-size: 1rem;
  width: 1.25rem;
}

.admin-main {
  flex: 1;
  margin-left: 250px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-topbar {
  height: 64px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: var(--shadow-sm);
}

.topbar-left h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-main);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #1e3a8a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.admin-content {
  padding: 2.25rem 2.5rem;
  flex: 1;
  width: 100%;
  max-width: 1536px;
  margin: 0 auto;
}

/* Card Metrics / ERP Dash */
.grid-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.card-metric {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.metric-info h3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.metric-info .val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.metric-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(30, 58, 138, 0.08);
  color: #1e3a8a;
}

/* Data Table Styling */
.table-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 2rem;
}

.table-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-header h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.table-responsive {
  width: 100%;
  overflow-y: auto;
  overflow-x: auto;
  max-height: 65vh;
  position: relative;
}

.data-table th {
  padding: 0.75rem 1.25rem;
  background-color: #f1f5f9;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 0 0 var(--border-color);
}

.data-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: #334155;
}

.data-table tr:hover {
  background-color: var(--bg-main);
}

.badge-status {
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.status-active { background-color: rgba(16, 185, 129, 0.1); color: var(--success); }
.status-inactive { background-color: rgba(239, 68, 68, 0.1); color: var(--danger); }
.status-pending { background-color: rgba(245, 158, 11, 0.1); color: var(--warning); }

/* Tab Navigation Styling */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  color: #1e3a8a;
}

.tab-btn.active {
  color: #1e3a8a;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #1e3a8a;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}



