body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4f6fa;
}

.container {
  display: flex;
  min-height: 100vh;
}

.left-sidebar {
  width: 240px;
  background: #183153;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding-top: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1000;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 16px 20px;
  border-bottom: 1px solid #223a5f;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  margin-right: 12px;
  background-color: #fff;
}

.sidebar-title {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
  opacity: 0.85;
}

.nav-item .icon {
  margin-right: 12px;
  font-size: 1.2em;
}

.nav-item.active, .nav-item:hover {
  background: #20406a;
  opacity: 1;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 240px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 20px;
  border-bottom: 1px solid #e0e6ed;
  margin-bottom: 16px;
}

.navbar-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2d3a4b;
  margin: 0;
}

.navbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #2d3a4b;
}

.user-avatar {
  background: #e0e6ed;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
}

.main-content-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 32px 32px 32px;
  margin-top: 16px;
}

.detail-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2d3a4b;
  margin-bottom: 16px;
}

.detail-layout {
  display: flex;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(24,49,83,0.06);
  padding: 32px 24px 24px 0;
  gap: 0;
}

.detail-tabs {
  min-width: 160px;
  border-right: 1px solid #e0e6ed;
  margin-right: 32px;
}
.detail-tabs ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tab-item {
  padding: 16px 24px;
  font-size: 1.1rem;
  color: #2d3a4b;
  cursor: pointer;
  border-left: 4px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.tab-item.active {
  background: #f4f6fa;
  border-left: 4px solid #183153;
  font-weight: 600;
}

.detail-form-section {
  flex: 1;
  padding-left: 16px;
}

.customer-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-row {
  display: flex;
  gap: 24px;
  margin-bottom: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 160px;
  margin-bottom: 0;
}
.form-group.full-width {
  flex: 1 1 100%;
  min-width: 0;
}
.form-group label {
  font-size: 1rem;
  color: #2d3a4b;
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 8px 10px;
  border: 1px solid #d1d9e6;
  border-radius: 5px;
  font-size: 1rem;
  background: #f9fafb;
  color: #2d3a4b;
  outline: none;
  transition: border 0.2s;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border: 1.5px solid #183153;
}
.gender-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.gender-options {
  display: flex;
  gap: 18px;
  margin-top: 6px;
}
.gender-options label {
  font-size: 1rem;
  color: #2d3a4b;
  font-weight: 400;
}
.info-text {
  font-size: 0.98rem;
  color: #2d3a4b;
  background: #f4f6fa;
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 4px;
}
.info-link {
  color: #0096e6;
  font-weight: 500;
}
.form-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  margin-top: 18px;
}
.btn {
  padding: 8px 24px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-save {
  background: #1e824c;
  color: #fff;
}
.btn-save:hover {
  background: #145a32;
}
.btn-cancel {
  background: #e0e6ed;
  color: #2d3a4b;
}
.btn-cancel:hover {
  background: #bfc9d9;
}
.btn-crm-lead {
  background: #0096e6;
  color: #fff;
}
.btn-crm-lead:hover {
  background: #007bb5;
}

@media (max-width: 900px) {
  .main-content-detail {
    padding: 0 8px 24px 8px;
  }
  .detail-layout {
    flex-direction: column;
    padding: 16px 0 0 0;
  }
  .detail-tabs {
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid #e0e6ed;
    margin-right: 0;
    margin-bottom: 16px;
  }
  .detail-form-section {
    padding-left: 0;
  }
  .form-row {
    flex-direction: column;
    gap: 12px;
  }
}
