
:host {
  display: block;
  height: auto !important;
 
  overflow: hidden;   
}
.header-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* ✅ ADD / REPLACE IN servicedetail.component.scss */

/* Remove unwanted blue focus border */
.FormOverView {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Remove browser focus line */
.FormOverView:focus,
.FormOverView:focus-visible {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* Optional: remove dialog container border if showing */
::ng-deep .mat-mdc-dialog-container,
::ng-deep .mdc-dialog__surface {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}
/* REMOVE absolute positioning ❌ */
// .back-btn {
//   display: flex;
//   align-items: center;
//   justify-content: center;

//   width: 30px;
//   height: 30px;

//   border-radius: 50%;
//   background: #f6f3f3;

//   cursor: pointer;
//   transition: 0.2s;
// }

// .back-btn:hover {
//   background: #e5e7eb;
// }

// .back-btn mat-icon {
//   color: #000;        /* pure black */
//   font-size: 18px;
// }
.center,
.tab-section,
.tab-content,
.interfaces-wrapper { 
  height: auto !important;
  overflow: visible !important;
}

.header {
  position: relative;
}

/* ✅ TOP RIGHT CLOSE BUTTON */
/* ✅ PERFECT DIALOG TOP-RIGHT CLOSE BUTTON */
/* ✅ MODERN MINIMAL TOP-RIGHT CLOSE BUTTON */
.back-btn {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  left: auto !important;

  width: 36px;
  height: 36px;
  min-width: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;

  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);

  z-index: 9999;
  cursor: pointer;

  transition: all 0.2s ease;
}

.back-btn mat-icon {
  font-size: 20px;
  color: #64748b;
  font-weight: 500;
}

/* Hover */
.back-btn:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: scale(1.05);
}

.back-btn:hover mat-icon {
  color: #334155;
}

/* Active */
.back-btn:active {
  transform: scale(0.95);
}

/* Optional header positioning */
.header {
  position: relative;
}
.overview-layout {
  height: auto;
}
/* ✅ QUICK START SECTION */
.quick-start-card {
  margin-top: 24px;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.quick-start-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.quick-start-text {
  margin: 0;
  padding: 14px 16px;
  background: #ffffff;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: #334155;
  white-space: pre-line;
  word-break: break-word;
}

.header {
  background: #f9fafb;
  padding: 30px;
  border-bottom: 1px solid #e5e7eb;
}
 
.breadcrumb {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 15px;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.badges {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.badge {
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12px;
}

.kind {
  background: #e0f2fe;
  color: #0369a1;
}

.lifecycle {
  background: #dcfce7;
  color: #166534;
}

.version {
  font-size: 12px;
  font-family: monospace;
  color: #6b7280;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta {
  margin-top: 15px;
  font-size: 13px;
  color: #6b7280;
  display: flex;
  gap: 20px;
}

.tags {
  margin-top: 10px;
}

.tag {
  background: #f3f4f6;
  padding: 4px 8px;
  margin-right: 6px;
  border-radius: 5px;
  font-size: 12px;
}

.tab-section {
  padding: 25px;
}

.tab-content {
  padding: 20px 0;
}

.center {
  display: block;
  min-height: auto;
}
.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 15px;
}

.version-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  background: #fee2e2;
  color: #991b1b;
}

.status.active {
  background: #dcfce7;
  color: #166534;
}

.interface-row {
  display: flex;
  gap: 10px;
  font-family: monospace;
  margin-bottom: 5px;
}

.method {
  background: #e0f2fe;
  padding: 3px 6px;
  border-radius: 4px;
  color: #0369a1;
  font-weight: 600;
}

.path {
  color: #374151;
}

.notes {
  margin-top: 5px;
  font-size: 13px;
  color: #6b7280;
}
.overview-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;   /* LEFT bigger, RIGHT smaller */
  gap: 20px;
  width: 100%;
  align-items: start;               /* VERY IMPORTANT */
}

.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}

.card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.card h4 {
  margin-top: 15px;
  font-size: 14px;
  font-weight: 600;
}

.desc {
  margin-bottom: 15px;
  color: #4b5563;
}

ul, ol {
  padding-left: 18px;
  font-size: 16px;
  color: #374151;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.badge.blue {
  background: #e0f2fe;
  color: #0369a1;
}

.badge.dark {
  background: #1f2937;
  color: white;
}

.badge.red {
  background: #fee2e2;
  color: #b91c1c;
}

.consumers {
  margin-top: 10px;
  font-size: 13px;
  color: #6b7280;
}

.action-btn {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  cursor: pointer;
}

.action-btn:hover {
  background: #f3f4f6;
}

.action-btn.danger {
  color: #dc2626;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
}


.right-column .card h3 {
  font-size: 14px;
  margin-bottom: 10px;
}
.left-column .card {
  padding: 25px;
  min-height: 450px;   /* makes left side tall like image */
}
.visibility-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 5px;
}

.visibility-internal {
  background: #e0f2fe;
  color: #0369a1;
}

.visibility-partner {
  background: #fef9c3;
  color: #854d0e;
}

.visibility-public {
  background: #dcfce7;
  color: #166534;
}

.visibility-desc {
  font-size: 12px;
  color: #6b7280;
  margin-top: 8px;
}
/* ================= GOVERNANCE ================= */

.gov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.gov-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.score {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.score-success {
  color: #16a34a;
}

.score-warning {
  color: #d97706;
}

.score-danger {
  color: #dc2626;
}

.audit {
  font-size: 13px;
  margin-bottom: 20px;
  color: #6b7280;
}

.issue-card {
  border: 1px solid #e5e7eb;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fff7ed;
}

.issue-card.resolved {
  background: #f3f4f6;
  opacity: 0.8;
}

.issue-header {
  display: flex;
  gap: 10px;
  margin-bottom: 5px;
}

.severity.high,
.severity.critical {
  color: #dc2626;
}

.severity.medium {
  color: #d97706;
}

.severity.low {
  color: #6b7280;
}

.resolved-tag {
  font-size: 12px;
  color: #16a34a;
}
/* ================= AUDIT TIMELINE ================= */

.audit-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
}

.audit-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ================= FIXED AUDIT TIMELINE ================= */

.timeline {
  position: relative;
  margin-left: 20px;
  padding-left: 50px;
}

/* Vertical Line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25px; 
  width: 2px;
  height: 100%;
  background: #e5e7eb;
}

/* Timeline Item */
.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

/* Dot */
.timeline-dot {
  position: absolute;
  left: -30px;
  top: 8px;
  width: 14px;
  height: 14px;
  background: #2563eb;
  border-radius: 50%;
  border: 3px solid #ffffff;
  z-index: 2;
}

/* Card Content */
.timeline-content {
  background: #f9fafb;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.timeline-meta {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  flex-direction: column;
  text-align: right;
}

.timeline-details {
  margin: 8px 0;
  font-size: 14px;
  color: #374151;
}

.badge-container {
  margin-top: 8px;
}

.audit-badge {
  display: inline-block;
  background: #e5e7eb;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 5px;
  margin-right: 6px;
  margin-bottom: 4px;
}
.interfaces-wrapper {
  padding: 20px;
}

/* ================= METADATA ================= */

.metadata-card {
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 10px;
}

.metadata-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.metadata-header .title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.meta-item .label {
  font-size: 11px;
  color: #64748b;
}

.meta-item .value {
  font-size: 22px;
  font-weight: 600;
}

.meta-item .value.small {
  font-size: 14px;
}

.success {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #16a34a;
  font-weight: 500;
}

/* ================= INTERFACE LIST ================= */

.interface-card {
  margin-bottom: 12px;
  border-radius: 10px;
  transition: 0.2s;
}

.interface-card:hover {
  border: 1px solid #22c55e;
}

.interface-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.left {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* METHOD BADGES */

.method {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
}

.method-post {
  background: #dbeafe;
  color: #2563eb;
}

.method-get {
  background: #dcfce7;
  color: #16a34a;
}

.method-put {
  background: #fef3c7;
  color: #d97706;
}

/* DETAILS */

.details .name {
  font-weight: 600;
}

.spec {
  margin-left: 8px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.path {
  font-family: monospace;
  font-size: 13px;
  color: #64748b;
}
.tab-content {
  padding: 20px;
}

/* ================= METADATA ================= */

.metadata-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
}

.metadata-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.meta-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.label {
  font-size: 11px;
  color: #6b7280;
}

.value {
  font-size: 22px;
  font-weight: 600;
}

.value.small {
  font-size: 14px;
}

.success {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #16a34a;
  font-weight: 500;
}

/* ================= CARD ================= */

.interface-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
  transition: 0.2s;
}

.interface-card:hover {
  border-color: #22c55e;
}

/* ROW */
.interface-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.left {
  display: flex;
  align-items: center;
  gap: 14px;
}


/* METHOD BADGE */
.method {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.method-get {
  background: #dcfce7;
  color: #16a34a;
}

.method-post {
  background: #dbeafe;
  color: #2563eb;
}

.method-put {
  background: #fef3c7;
  color: #d97706;
}

/* DETAILS */
.name {
  font-weight: 600;
}

.openapi {
  margin-left: 8px;
  border: 1px solid #cbd5e1;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  color: #475569;
}

.path {
  font-family: monospace;
  font-size: 13px;
  color: #64748b;
}
.details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.name {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.openapi {
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 12px;
  background: #eee;
  border-radius: 12px;
  color: #555;
}

.path {
  font-size: 14px;
  color: #4f46e5;
}

.description {
  font-size: 13px;
  color: #666;
}

/* VIEW BUTTON */
.view-btn {
  display: flex;
  align-items: center;
  gap: 6px;
}
h1{
  font-size: 25px;
  font-weight: 400;
}
.tab-section,
.tab-content,
.interfaces-wrapper {
  height: auto;
  overflow: visible;
}
/* Dialog container */
.full-page-dialog .mat-mdc-dialog-container {
  padding: 0 !important;
  border-radius: 12px;
  overflow: hidden;
}

/* Full screen */
.full-page-dialog .mat-mdc-dialog-surface {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
}

/* Remove overlay margin */
.cdk-overlay-pane {
  margin: 0 !important;
}