/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

a {
  color: #ff5e00;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #ff6b14;
  text-decoration: underline;
}

/* Header */
.header {
  background: #f5f5f5;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-top {
  background: #2f3e48;
  border-bottom: 1px solid #3b4e5b;
}

.header-top-container {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 1rem;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-contact {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
}

.header-contact a {
  color: #d1d5db;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.header-contact a:hover {
  color: #fff;
}

.header-tagline {
  color: #d1d5db;
  font-size: 0.75rem;
}

.header-main {
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.header-main-container {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 1rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.8;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff5e00 0%, #ff6b14 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.logo-text h1 {
  color: #2f3e48;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
}

.logo-text p {
  color: #666;
  font-size: 0.75rem;
}

.nav {
  display: flex;
  gap: 0.25rem;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border: none;
  background: transparent;
  color: #2f3e48;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-btn:hover {
  color: #ff5e00;
  background: #fff;
}

.nav-btn.active {
  color: #ff5e00;
  background: #fff;
}

.cta-btn {
  background: #ff5e00;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-btn:hover {
  background: #ff6b14;
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

/* Hero Section */
.hero {
  background: #f5f5f5;
  padding: 3rem 0;
}

.hero-container {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero h1 {
  color: #2f3e48;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-align: center;
}

.hero-desc {
  color: #666;
  font-size: 1rem;
  line-height: 1.8;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 2rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  color: #fff;
  transition: transform 0.3s;
}

.stat:hover {
  transform: scale(1.05);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat-num {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Main Layout */
.main-layout {
  max-width: 90%;
  margin: 0 auto 2rem;
  display: flex;
  gap: 1.5rem;
  padding: 0 1rem;
}

/* Sidebar */
.sidebar {
  width: 384px;
  flex-shrink: 0;
  background: #f5f5f5;
  padding-top: 2rem;
  padding-right: 0.75rem;
}

.sidebar-header {
  background: linear-gradient(135deg, #252939 0%, #2e3243 100%);
  border-radius: 8px 8px 0 0;
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  position: relative;
  overflow: hidden;
}

.sidebar-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff5e00 0%, #ffa12e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.sidebar-header-text h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.sidebar-header-text p {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
}

.sidebar-search {
  padding: 1rem;
  background: linear-gradient(to bottom, #f8f9fa, #fff);
}

.sidebar-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s;
}

.sidebar-search input:focus {
  outline: none;
  border-color: #ff5e00;
  box-shadow: 0 0 0 3px rgba(255,94,0,0.1);
}

.sidebar-list {
  padding: 0.75rem;
  background: #fafafa;
}

.sidebar-list-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-item {
  width: 100%;
  text-align: left;
  padding: 0.875rem 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.sidebar-item:hover {
  background: #fff9f5;
  border-color: rgba(255,94,0,0.3);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.sidebar-item.active {
  background: linear-gradient(to right, #ff5e00, #ffa12e);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 10px rgba(255,94,0,0.3);
  transform: scale(1.02);
}

.sidebar-item-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ff5e00, #ffa12e);
  color: #fff;
}

.sidebar-item.active .sidebar-item-badge {
  background: rgba(255,255,255,0.2);
}

.sidebar-item-name {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Content */
.content {
  flex: 1;
  min-width: 0;
  padding-left: 0.75rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
}

.firma-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
}

.firma-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}

.firma-card-border {
  height: 6px;
  background: #ff5e00;
}

.firma-card-content {
  padding: 1.25rem;
}

.firma-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.firma-card-icon {
  width: 56px;
  height: 56px;
  background: #fff5f0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.firma-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.firma-card-id {
  background: #ff5e00;
  color: #f1f1f1;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.firma-card-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.firma-card h3 {
  color: #252939;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.firma-card:hover h3 {
  color: #ff5e00;
}

.firma-card p {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  min-height: 60px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.firma-card-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #f1f1f1;
}

.firma-card-actions {
  display: flex;
  gap: 0.625rem;
}

.firma-card-btn {
  flex: 1;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #2f3e48;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.firma-card-btn:hover {
  background: #252939;
  transform: scale(1.05);
}

/* Detail Page */
.detail-hero {
  background: #fff;
  margin-bottom: 1.5rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
}

.detail-hero-header {
  background: #ff5e00;
  height: 50px;
  display: flex;
  align-items: center;
  position: relative;
}

.detail-hero-icon {
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.detail-hero-title {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.detail-hero-arrow {
  position: absolute;
  bottom: -8px;
  left: 35px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 7px 0 7px;
  border-color: #ff5e00 transparent transparent transparent;
}

.detail-hero-content {
  padding: 1.5rem;
}

.detail-hero h1 {
  color: #2f3e48;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.detail-hero a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ff5e00;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s;
}

.detail-hero a:hover {
  color: #ff6b14;
}

.detail-section {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.detail-section-header {
  background: #2f3e48;
  height: 50px;
  display: flex;
  align-items: center;
  position: relative;
}

.detail-section-icon {
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff5e00;
}

.detail-section-title {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.detail-section-arrow {
  position: absolute;
  bottom: -8px;
  left: 35px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 7px 0 7px;
  border-color: #2f3e48 transparent transparent transparent;
}

.detail-section-content {
  padding: 1.5rem;
}

.detail-section-content h3 {
  color: #2f3e48;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.detail-section-content p {
  color: #666;
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.detail-cta {
  color: #ff5e00;
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(34,197,94,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-text h4 {
  color: #2f3e48;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.feature-text p {
  color: #666;
  font-size: 0.75rem;
  margin: 0;
}

/* Footer */
.footer {
  background: #2f3e48;
  color: #fff;
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-container {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 48px;
  height: 48px;
  background: #ff5e00;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo h3 {
  color: #fff;
  font-size: 1rem;
}

.footer-logo p {
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-desc {
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-desc a {
  color: #ff5e00;
  text-decoration: none;
}

.footer-desc a:hover {
  color: #ff6b14;
}

.footer-section h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links button {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 0.875rem;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: color 0.3s;
}

.footer-links button:hover {
  color: #ff5e00;
}

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-contact a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: #ff5e00;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #4b5563;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-bottom a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #ff5e00;
}

/* Responsive */
@media (max-width: 1024px) {
  .main-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding-right: 0;
  }

  .content {
    padding-left: 0;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .header-contact {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Utility */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}
.perfTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}

.perfScore{
  min-width:72px;
  text-align:center;
  font-size:34px;
  font-weight:800;
  line-height:1;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  background:#fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  color:#2f3e48;
}

.bars{
  display:grid;
  gap:12px;
  margin-top:12px;
}

/* metric card */
.mbar{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:12px 12px 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.mbar-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.mbar-top > span:first-child{
  font-weight:800;
  color:#2f3e48;
  font-size:0.9rem;
}

/* value pill */
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:0.8rem;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  color:#2f3e48;
  white-space:nowrap;
}

/* track */
.track{
  position:relative;
  height:10px;
  border-radius:999px;
  background:#f3f4f6;
  border:1px solid #e5e7eb;
  overflow:hidden;
}

/* fill default = theme orange */
.fill{
  height:100%;
  width:0%;
  border-radius:999px;
  background: linear-gradient(90deg, #ff5e00, #ffa12e);
  transition: width .5s ease;
}

/* 상태 renkleri (good/ok/bad) */
.fill.good{
  background: linear-gradient(90deg, #22c55e, #16a34a);
}
.fill.ok{
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.fill.bad{
  background: linear-gradient(90deg, #ef4444, #fb7185);
}

/* pill status */
.pill.good{
  background: rgba(34,197,94,0.10);
  border-color: rgba(34,197,94,0.35);
  color:#166534;
}
.pill.ok{
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.35);
  color:#92400e;
}
.pill.bad{
  background: rgba(239,68,68,0.10);
  border-color: rgba(239,68,68,0.35);
  color:#991b1b;
}

/* threshold markers */
.marks{
  position:absolute;
  inset:0;
  pointer-events:none;
}
.mk{
  position:absolute;
  top:-6px;
  width:2px;
  height:22px;
  background: rgba(47,62,72,0.22); /* tema koyu gri */
}

/* helper line */
.mbar-hint{
  margin-top:8px;
  font-size:0.75rem;
  color:#6b7280;
}

/* küçük notlar */
.muted2{
  color:#9ca3af;
}