.saas-players-wrapper {
  height: calc(100vh - 65px);
  background: #f5f7fb;
}

.saas-panel-left,
.saas-panel-right {
  background: #f5f7fb;
}

.saas-panel-left {
  border-right: 1px solid #e5e7eb;
}

.saas-panel-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  margin: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  overflow: hidden;
}

.saas-panel-header {
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 18px;
}

.saas-panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  margin: 0;
}

.saas-panel-search {
  padding: 10px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.saas-input-sm {
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 6px 10px;
  font-size: 0.85rem;
}

.saas-input-sm:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}

.saas-list {
  background: #ffffff;
  padding: 0;
  margin: 0;
  list-style: none;
}

.saas-btn-primary {
  background: #2563eb;
  color: #fff;
  border-radius: 8px;
  border: none;
  padding: 8px 16px;
  font-weight: 600;
}

.saas-btn-primary:hover {
  background: #1d4ed8;
}

.saas-player-row {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 12px;
  display: table-row;
}

.saas-player-cell {
  padding: 16px 18px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

.saas-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.saas-status-dot.green {
  background: #22c55e;
}

.saas-status-dot.red {
  background: #ef4444;
}

.saas-status-dot.blue {
  background: #3b82f6;
}

.saas-player-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-right: 8px;
}

.saas-player-meta {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  gap: 14px;
  margin-top: 4px;
}

.saas-badge-success,
.saas-badge-warning,
.saas-badge-danger,
.saas-badge-neutral,
.saas-badge-dark {
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
}

.saas-badge-success {
  background: #dcfce7;
  color: #166534;
}

.saas-badge-warning {
  background: #fef9c3;
  color: #854d0e;
}

.saas-badge-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.saas-badge-neutral {
  background: #e2e8f0;
  color: #334155;
}


.saas-player-orientation {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.saas-player-resolution {
  font-size: 0.75rem;
  color: #64748b;
}

.saas-progress {
  height: 6px;
  background: #e2e8f0;
  border-radius: 6px;
}

.saas-progress-bar {
  height: 6px;
  border-radius: 6px;
}

.saas-progress-bar.info {
  background: #3b82f6;
}

.saas-progress-bar.danger {
  background: #ef4444;
}

.saas-player-disk-strong {
  font-weight: 700;
  color: #1e293b;
}

.saas-player-version {
  font-size: 0.65rem;
  color: #3b82f6;
  margin-bottom: 4px;
}

.saas-player-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.saas-btn-icon {
  background: #f1f5f9;
  border: none;
  padding: 6px 8px;
  border-radius: 8px;
  color: #475569;
}

.saas-btn-icon:hover {
  background: #e2e8f0;
}

.saas-modal {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.saas-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.saas-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: #334155;
  margin: 0;
}

.saas-modal-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: #64748b;
  cursor: pointer;
}

 
.saas-form-group {
  margin-bottom: 16px;
}

.saas-form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
  display: block;
}

.saas-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.85rem;
  background: #ffffff;
}

.saas-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}

.saas-modal-footer {
  padding: 16px 20px;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.saas-btn-secondary {
  background: #e2e8f0;
  color: #334155;
  border-radius: 8px;
  border: none;
  padding: 8px 16px;
  font-weight: 600;
}

.saas-btn-secondary:hover {
  background: #cbd5e1;
}

.saas-btn-danger {
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 8px;
  border: none;
  padding: 10px 18px;
  font-weight: 600;
}

.saas-btn-danger:hover {
  background: #fecaca;
}

.saas-rule-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.saas-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
}

.saas-day-selector {
  display: flex;
  gap: 6px;
}

.saas-day-btn {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  color: #475569;
  background: #f8fafc;
  user-select: none;
}

.saas-day-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.saas-day-btn input {
  display: none;
}

.saas-pulse-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.saas-switch {
  position: relative;
  width: 40px;
  height: 20px;
  display: inline-block;
}

.saas-switch input {
  display: none;
}

.saas-slider {
  position: absolute;
  cursor: pointer;
  background: #cbd5e1;
  border-radius: 20px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: .3s;
}

.saas-switch input:checked + .saas-slider {
  background: #2563eb;
}

.saas-slider:before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: .3s;
}

.saas-switch input:checked + .saas-slider:before {
  transform: translateX(20px);
}

.saas-rule-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.saas-btn-icon-danger {
  background: #fee2e2;
  border: none;
  padding: 6px 8px;
  border-radius: 8px;
  color: #b91c1c;
}

.saas-btn-icon-danger:hover {
  background: #fecaca;
}

.saas-range-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.saas-range-row .saas-input {
  flex: 1;
  min-width: 0;
}

.saas-hint {
  font-size: 0.7rem;
  color: #94a3b8;
}

.saas-screenshot-body {
  background: #000;
  padding: 0;
  min-height: 300px;
}

.saas-screenshot-img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.saas-label-small {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.saas-timestamp {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2563eb;
}

.saas-status-area {
  display: flex;
  align-items: center;
}

.saas-status-text {
  font-size: 0.8rem;
  color: #f59e0b;
}

.saas-history-controls {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.saas-history-view {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.saas-btn-tab {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
}

.saas-btn-tab:hover {
  background: #e2e8f0;
}

.saas-history-tools {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.saas-history-summary {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #475569;
}

.saas-history-body {
  max-height: 45vh;
  overflow-y: auto;
  padding: 0;
  background: #ffffff;
}

.saas-empty-state {
  padding: 40px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

.saas-date-header {
  background: #f8fafc;
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid #e5e7eb;
}

.saas-log-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
}

.saas-log-row:hover {
  background: #f8fafc;
}

.saas-status-online {
  color: #2563eb;
  font-weight: 600;
}

.saas-status-warning {
  color: #d97706;
  font-weight: 600;
}

.saas-status-offline {
  color: #dc2626;
  font-weight: 600;
}

.saas-log-time {
  font-size: 0.8rem;
  color: #64748b;
}

#modal-summary-bar {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.saas-summary-item {
  font-size: 0.8rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

.saas-dot-online,
.saas-dot-warning,
.saas-dot-offline {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.saas-dot-online {
  background: #2563eb;
}

.saas-dot-warning {
  background: #d97706;
}

.saas-dot-offline {
  background: #dc2626;
}

.saas-monthly-wrapper {
  padding: 20px;
}

.saas-uptime-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #ffffff;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  justify-content: center;
}

.saas-uptime-cube {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.saas-uptime-cube:hover {
  transform: scale(1.25);
  box-shadow: 0 0 0 2px #2563eb inset;
}

.saas-uptime-legend {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.saas-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #475569;
}

.saas-legend-cube {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.saas-uptime-note {
  margin-top: 10px;
  text-align: center;
  font-size: 0.7rem;
  color: #64748b;
}

/* -----------------------------------------
   SaaS Sidebar Item (Final Polished Version)
------------------------------------------ */

/* -----------------------------------------
   SaaS Sidebar Item (Final Polished Version)
------------------------------------------ */

.saas-sidebar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 6px;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    color: #334155 !important;        /* FIX: Inactive text now proper SaaS slate */
    transition: all 0.15s ease;
}

/* Hover */
.saas-sidebar-item:hover {
    background: #f8fafc !important;
    border-color: #dbeafe !important;
    color: #1e293b !important;
}

/* Active state */
.saas-sidebar-item.active {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

/* Label text */
.saas-sidebar-label {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    color: inherit !important;
}

/* Count badge */
.saas-sidebar-count {
    background: #e2e8f0 !important;
    color: #334155 !important;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Active badge */
.saas-sidebar-count.active {
    background: #1e40af !important;
    color: #ffffff !important;
}

/* SaaS Status Dot */
.saas-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

/* Colors */
.saas-status-dot.text-info {
    background-color: #0ea5e9 !important;   /* blue */
}

.saas-status-dot.text-warning {
    background-color: #facc15 !important;   /* yellow */
}

.saas-status-dot.text-danger {
    background-color: #ef4444 !important;   /* red/black offline */
}

/* Pulse animation for online */
.pulse-blue {
    animation: pulse-blue-glow 2s infinite;
}

@keyframes pulse-blue-glow {
    0%   { transform: scale(1); opacity: 1; }
    50%  { transform: scale(0.85); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Quick Deploy Container */
.saas-quickdeploy {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

/* SaaS small input */
.saas-input-sm {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    font-size: 0.85rem !important;
}

/* Icon buttons */
.saas-btn-icon-primary,
.saas-btn-icon-success {
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Blue button */
.saas-btn-icon-primary {
    background: #2563eb;
    color: #ffffff;
}
.saas-btn-icon-primary:hover {
    background: #1d4ed8;
}

/* Green button */
.saas-btn-icon-success {
    background: #16a34a;
    color: #ffffff;
}
.saas-btn-icon-success:hover {
    background: #15803d;
}

