/* ========================================================
   BLUEONNIX WEBSITES & SSL MANAGEMENT STYLESHEET
   Strict Solid Minimal Design — Zero Gradients — Zero Border Radius
   ======================================================== */

.site-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-bottom: none;
  gap: 1rem;
}

.site-toolbar-left,
.site-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-filter-tabs {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
}

.site-tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-right: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 0 !important;
}

.site-tab-btn:last-child {
  border-right: none;
}

.site-tab-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.site-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
}

/* Table Enhancements */
.site-domain-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 100%;
  overflow: hidden;
}

.site-domain-link {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-domain-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-domain-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.site-docroot-pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  border-radius: 0 !important;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-docroot-pill:hover {
  border-color: var(--primary);
  color: var(--text);
}

/* SSL Badges */
.ssl-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 0 !important;
  border: 1px solid transparent;
}

.ssl-badge-active {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.25);
}

.ssl-badge-none {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-color: var(--border);
}

.ssl-badge-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.25);
}

/* Status Badges */
.site-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 0 !important;
  cursor: pointer;
  user-select: none;
}

.site-status-active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.site-status-stopped {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Settings Modal Tabs & Views */
.settings-tabs-header {
  display: flex;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
  gap: 0.5rem;
}

.settings-tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0 !important;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.settings-tab-btn:hover {
  color: var(--text);
}

.settings-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: transparent;
}

.settings-view {
  padding: 1.5rem;
  display: none;
}

.settings-view.active {
  display: block;
}

/* SSL Manager Card */
.ssl-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.ssl-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.ssl-toggle-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Log Stream Console */
.log-stream-console {
  background: #050506;
  border: 1px solid var(--border);
  color: #d1d5db;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 1rem;
  height: 380px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  border-radius: 0 !important;
}

.log-stream-console .log-line-error {
  color: #f87171;
}

.log-stream-console .log-line-warn {
  color: #fbbf24;
}

.log-stream-console .log-line-info {
  color: #60a5fa;
}

/* ======================================================== */
/* WEBSITE TABLE LAYOUT (Zero Horizontal Scrollbar & Clean) */
/* ======================================================== */
#view-website .table-container {
  overflow-x: hidden !important;
  width: 100% !important;
}

#view-website .table-container table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

#view-website th,
#view-website td {
  padding: 0.65rem 0.5rem !important;
  vertical-align: middle;
  text-overflow: clip;
}

/* Col 1: Checkbox (Strictly no dots/ellipsis, centered) */
#view-website th:nth-child(1),
#view-website td:nth-child(1) {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  text-align: center !important;
  padding: 0.65rem 0.2rem !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

#view-website th:nth-child(1) input[type="checkbox"],
#view-website td:nth-child(1) input[type="checkbox"] {
  display: inline-block;
  margin: 0 auto;
}

/* Col 2: Domain Name (Ellipsis on text link only) */
#view-website th:nth-child(2),
#view-website td:nth-child(2) {
  width: 18% !important;
  min-width: 135px !important;
  overflow: hidden;
}

/* Col 3: Status Badge (Strictly no dots) */
#view-website th:nth-child(3),
#view-website td:nth-child(3) {
  width: 110px !important;
  min-width: 110px !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

/* Col 4: Document Root (Flexible, dynamic truncate engine) */
#view-website th:nth-child(4),
#view-website td:nth-child(4) {
  width: auto !important;
  min-width: 170px !important;
  overflow: hidden;
}

/* Col 5: PHP Version (Full text, no dots) */
#view-website th:nth-child(5),
#view-website td:nth-child(5) {
  width: 105px !important;
  min-width: 105px !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

/* Col 6: SSL Badge (Strictly no dots) */
#view-website th:nth-child(6),
#view-website td:nth-child(6) {
  width: 130px !important;
  min-width: 130px !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

/* Col 7: Created Date */
#view-website th:nth-child(7),
#view-website td:nth-child(7) {
  width: 125px !important;
  min-width: 125px !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

/* Col 8: Actions (Full 245px width for Settings + Files + Delete buttons) */
#view-website th:nth-child(8),
#view-website td:nth-child(8) {
  width: 245px !important;
  min-width: 245px !important;
  text-align: right !important;
  padding: 0.65rem 0.6rem !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

#view-website tr.has-expanded-cell td {
  white-space: normal;
}


