@import "./fonts.css";
@import "tailwindcss";

body {
  font-family: "Inter", sans-serif;
  background-color: #f6f8fa;
  color: #24292e;
}

.login-box {
  background-color: #161b22;
}

.login-box input {
  background-color: #0d1117;
  border-color: #30363d;
  color: #c9d1d9;
}

.login-box input:focus {
  outline: none;
  border-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.3);
}

.login-box label {
  color: #8b949e;
}

button svg {
  width: 18px;
  height: 18px;
}

.login-box button {
  background-color: #238636;
}

.login-box button:hover {
  background-color: #2ea043;
}

.container {
  background-color: #ffffff;
  border-radius: 0.7rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body.dark-mode .container {
  border: 1px solid rgb(223 223 223 / 6%);
  box-shadow: 0 4px 6px rgb(0 0 0 / 13%), 0px 7px 16px rgb(0 0 0 / 23%);

}

.swarm-indicator {
  color: #98a1ab;
}

body.dark-mode .swarm-indicator {
  color: #6e7781;
}

.swarm-mode #filter-running-checkbox:checked+.slider {
  background-color: #ef323e !important;
}

body.dark-mode.swarm-mode #filter-running-checkbox:checked+.slider {
  background-color: #cf313b !important;
}

.logo-title {
  margin-right: 1em;
  color: #e1e4e8;
  cursor: pointer;
}

body.dark-mode .logo-title {
  color: #2a2f37;
}

.github {
  color: #acb1b9;
}

body.dark-mode .github {
  color: #6a737d;
}

.footer {
  color: #b7b9bd;
  background-color: transparent !important;
  border-radius: 0;
  box-shadow: none !important;
}

.footer-center {
  text-align: center;
}

body.dark-mode .footer {
  color: #424b5d;
}

.status-none {
  color: #b8bcc3;
}

body.dark-mode .status-none {
  color: #474c55;
}


[data-content="ports"] svg {
  color: #b8bcc3;
}

body.dark-mode [data-content="ports"] svg {
  color: #474c55;
}

.data-content-name {
  font-weight: 500;
  color: #3e4043;
}

.data-content-server {
  color: #6a737d;
}

body.dark-mode .data-content-server {
  color: #8b949e;
}

body.dark-mode .data-content-name {
  color: #c9d1d9;
}

.text-gray-800 {
  color: #949da7;
}

.text-gray-600 {
  color: #586069;
}

.text-gray-700 {
  color: #24292e;
}

.text-gray-900 {
  color: #30363d;
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

.border-gray-200 {
  border-color: #e1e4e8;
}

.hover\:bg-gray-50:hover {
  background-color: #fafafa !important;
}

.text-muted,
.text-secondary {
  color: #6a737d;
}

[data-content="ports"] .badge {
  background-color: #e5effd;
  color: #2188ff;
  border-radius: 0.375rem;
  padding: 0.08rem 0.35em;
  font-weight: 400;
  display: inline-block;
}

body.dark-mode [data-content="ports"] .badge {
  background-color: #21262d;
  color: #2188ff;
}

[data-content="ports"] .custom-port .badge {
  color: #959595 !important;
}

body.dark-mode [data-content="ports"] .custom-port .badge {
  color: #6d7789 !important;
}

.sortable-header {
  cursor: pointer;
  position: relative;
  padding-right: 20px;
}

.sortable-header::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #24292e;
}

.sortable-header.desc::after {
  border-top: 5px solid #24292e;
  border-bottom: none;
}

input[type="text"] {
  background-color: #f9f9f9;
  border: 1px solid #ebebeb;
  border-radius: 0.7rem;
  color: #54595f;
  padding: 0.75rem;
  width: 100%;
}

#search-input {
  outline: none;
  box-shadow: 0 0 0 2px #ebebeb !important;
  border-color: transparent;
}

#search-input:focus {
  box-shadow: 0 0 0 2px #e1e4e8 !important;
}

body.dark-mode #search-input {
  box-shadow: 0 0 0 2px oklab(1 0 0 / 0.06) !important;
}

body.dark-mode #search-input:focus {
  box-shadow: 0 0 0 2px oklab(1 0 0 / 0.10) !important;
}

#search-input::placeholder {
  color: #bbbfc5;
}

#refresh-button {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background-color: #e1e4e8;
  color: #626c78;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

#theme-switcher {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 0.3rem 1rem;
  border-radius: 1.5rem;
}

#theme-switcher:hover,
#refresh-button:hover {
  background-color: #d1d5da;
}

#theme-switcher:focus,
#refresh-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.75);
}

.theme-switcher-wrapper {
  position: relative;
  display: inline-block;
}

.theme-menu {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 4px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 1000;
}

.theme-menu.show {
  opacity: 1;
  visibility: visible;
}

.theme-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  border: none;
  background: transparent;
  color: #374151;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s;
  font-size: 14px;
}

.theme-menu-item:hover {
  background-color: #f3f4f6;
}

.theme-menu-item.active {
  background-color: #dbeafe;
  color: #2563eb;
}

.dark-mode .theme-menu {
  background: #1d2129;
  border-color: #292d33;
}

.dark-mode .theme-menu-item {
  color: #d1d5db;
}

.dark-mode .theme-menu-item:hover {
  background-color: #374151;
}

.dark-mode .theme-menu-item.active {
  background-color: #1e3a8a;
  color: #93c5fd;
}

.source-link[data-tooltip-top-right]::after {
  max-width: 600px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

.source-link:not(.hidden),
.registry-link:not(.hidden) {
  color: #99a1af !important;
  align-items: center;
  text-decoration: none;
  display: inline-block;
  padding-left: 4px;
}

/* SVG */
svg {
  pointer-events: none;
}

.source-link svg,
.registry-link svg {
  display: block;
}

/* Hover */
.source-link:hover,
.registry-link:hover {
  color: #2b7fff !important;
}

/* Dark mode */
body.dark-mode .source-link,
body.dark-mode .registry-link {
  color: #474c55 !important;
}

body.dark-mode .source-link:hover,
body.dark-mode .registry-link:hover {
  color: #2b7fff !important;
}

.server-column [data-content="server-name"] {
  color: #808993;
}


body.dark-mode .server-column [data-content="server-name"] {
  color: #5a626b;
}

.container-name-wrapper {}

.container-name-cell [data-tooltip-right]::after {
  max-width: 600px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

/* Custom link color for container names */
.container-name-cell {
  color: #4e5051 !important;
}

body.dark-mode .container-name-cell {
  color: #e1e1e1 !important;
}

.container-name-cell a {
  color: #3e71e9 !important;
}

.container-name-cell a:hover {
  color: #2b7fff !important;
}

/* Dark mode version */
body.dark-mode .container-name-cell a {
  color: #85a3d1 !important;
}

body.dark-mode .container-name-cell a:hover {
  color: #2b7fff !important;
}

.table-cell-stack a {
  color: #838c95 !important;
}

.table-cell-stack a:hover {
  color: #2b7fff !important;
}

/* Dark mode version */
body.dark-mode .table-cell-stack a {
  color: #737b85 !important;
}

body.dark-mode .table-cell-stack a:hover {
  color: #2b7fff !important;
}

/*
#refresh-button.loading svg {
  animation: spin 0.8s linear infinite;
}
*/
.text-red-500 {
  color: #cb2431;
}

.table-cell-status {
  text-align: center;
}

.table-cell-status span {
  white-space: nowrap;
}

.table-cell-status,
.server-column {
  cursor: default;
}


/* ✅ Light mode (body domyślnie) */
/* Green - OK/Running states */
.status-running,
.status-healthy {
  color: #28a745;
  /* zielony */
  font-weight: 500;
}

/* Red - Error/Failed states */
.status-exited,
.status-unhealthy,
.status-dead,
.status-unknown {
  color: #dc3545;
  /* czerwony */
  font-weight: 500;
}

/* Orange - Transitional/Warning states */
.status-starting,
.status-restarting,
.status-removing,
.status-paused {
  color: #fd7e14;
  /* pomarańczowy */
  font-weight: 500;
}

/* Gray/Neutral - Temporary/Inactive states */
.status-created,
.status-none {
  color: #99a1af;
  /* szary */
  font-weight: 500;
}

/* 🌙 Dark mode – tylko lżejsza grubość */
body.dark-mode .status-running,
body.dark-mode .status-healthy,
body.dark-mode .status-exited,
body.dark-mode .status-unhealthy,
body.dark-mode .status-dead,
body.dark-mode .status-unknown,
body.dark-mode .status-starting,
body.dark-mode .status-restarting,
body.dark-mode .status-removing,
body.dark-mode .status-paused,
body.dark-mode .status-created,
body.dark-mode .status-none {
  font-weight: 400;
}


code {
  background-color: #f3f4f6;
  color: #24292e;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.filter-button {
  padding: 0.4rem 1rem;
  border-radius: 0.5rem;
  background-color: #e1e4e8;
  color: #3e4043;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0.2s ease-in-out;
}

.filter-button:hover {
  background-color: #e9eaeb;
}

.filter-button.active {
  background-color: #2188ff;
  color: white;
}

.filter-button.inactive {
  color: #d2d3d3;
  background-color: #f3f3f3;
}

body.dark-mode .filter-button {
  background-color: #232831;
  color: #b3b9bf;
}

body.dark-mode .filter-button:hover {
  background-color: #202329;
}

body.dark-mode .filter-button.active {
  background-color: #2188ff;
  color: white;
}

body.dark-mode .filter-button.inactive {
  color: #30353d;
  background-color: #15181c;
}

.table-single-server .server-column {
  display: none;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #0d1117;
  color: #c9d1d9;
}

body.dark-mode .container {
  background-color: #161b22;
}

body.dark-mode .text-gray-800 {
  color: #24292e;
}

body.dark-mode .text-gray-600 {
  color: #8b949e;
}

body.dark-mode .text-gray-700 {
  color: #c9d1d9;
}

body.dark-mode .text-gray-900 {
  color: #c9d1d9;
}

body.dark-mode .bg-gray-100 {
  background-color: #21262d;
}

body.dark-mode .border-gray-200 {
  border-color: #232831;
}

body.dark-mode table {
  background-color: #161b22;
  border-color: #232831;
}

.main-table-header {
  background-color: #f7f7f7;
  color: #c7c7c7;
}

body.dark-mode .main-table-header {
  background-color: #21262d;
  color: #c7c7c7;
}

body.dark-mode .hover\:bg-gray-50:hover {
  background-color: #21262d !important;
}

body.dark-mode .text-muted,
body.dark-mode .text-secondary {
  color: #8b949e;
}

body.dark-mode .sortable-header::after {
  border-bottom-color: #c9d1d9;
  border-top-color: #c9d1d9;
}

body.dark-mode input[type="text"] {
  background-color: #0d1117;
  border-color: #30363d;
  color: #aab0b5;
}

body.dark-mode #search-input::placeholder {
  color: #41464b;
}

body.dark-mode #refresh-button {
  background-color: #21262d;
  color: #97a1ab;
}

body.dark-mode #theme-switcher:hover,
body.dark-mode #refresh-button:hover {
  background-color: #30363d;
}

body.dark-mode .text-red-500 {
  color: #f85149;
}

body.dark-mode code {
  background-color: #21262d;
  color: #c9d1d9;
}

/* Confirmation Modal Styles */
.modal-overlay:not(.hidden) {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.37);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

body.dark-mode .modal-overlay:not(.hidden) {
  background-color: rgba(0, 0, 0, 0.65);
}

.modal-content:not(.hidden) {
  background-color: #ffffff;
  padding: 1.2rem;
  border-radius: 0.7rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  text-align: center;
  display: flex;
  flex-direction: column;
}

body.dark-mode .modal-content {
  background-color: #161b22;
  border: 1px solid #232833;
}

.modal-cancel-button {
  background-color: #e1e1e1;
  color: #364153;
}

.modal-cancel-button:hover {
  background-color: #d7d7d7;
  color: #24292e;
}

body.dark-mode .modal-cancel-button {
  background-color: #33373d;
  color: #c9d1d9;
}

body.dark-mode .modal-cancel-button:hover {
  background-color: #41454b;
}

/* Updates Modal Styles */

#updates-modal .modal-content:not(.hidden) {
  max-width: 900px !important;
}

#updates-modal-message {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#updates-list {
  background-color: #fbfbfb;
  padding: 0 1rem;
  border-radius: 0.7rem;
  border: 1px solid #f4f4f4;
  overflow-y: auto;
  flex: 1;
}

#updates-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.5rem 0;
  border-bottom: 1px solid #ececec;
}

#updates-list li:last-child {
  border-bottom: none;
}

#updates-list .stack-name {
  color: #a6b4c3;
  font-weight: normal;
  font-size: 0.857rem;
  flex-shrink: 0;
}

#updates-list .server-name {
  color: #a1aab4;
  font-weight: normal;
  font-size: 0.875rem;
  flex-shrink: 0;
}

#updates-list .image-name {
  color: #707375;
  font-style: italic;
  font-size: 0.8rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: rtl;
  text-align: left;
  min-width: 0;
}

body.dark-mode #updates-list {
  background-color: #21262d;
  border-color: #292d35;
}

body.dark-mode #updates-list li {
  border-bottom-color: #30363d;
}

body.dark-mode #updates-list .server-name {
  color: #6a737d;
}

body.dark-mode #updates-list .image-name {
  color: #6a737d;
}

#updates-list .no-updates-message {
  list-style: none;
  color: #28a745;
  font-weight: 600;
  font-size: 1rem;
  white-space: normal;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0.5rem;
}

body.dark-mode #updates-list .no-updates-message {
  color: #2ea53d;
}

#updates-modal.no-update .modal-content:not(.hidden) {
  max-width: 435px !important;
}

#updates-modal.no-update #updates-list {
  background-color: #f5fff5;
  border: 0;
}

body.dark-mode #updates-modal.no-update #updates-list {
  background-color: #0d1117;
}


.green-ok-button {
  background-color: oklab(0.63 -0.16 0.1);
  color: #fff;
}

.green-ok-button:hover {
  background-color: oklab(0.72 -0.19 0.11);
}

body.dark-mode .green-ok-button {
  background-color: oklab(0.63 -0.16 0.1);
}

body.dark-mode .green-ok-button:hover {
  background-color: oklab(0.72 -0.19 0.11);
}

.progress-container {
  padding: 1rem 0;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-weight: 500;
}

.progress-bar {
  width: 100%;
  height: 7px;
  background-color: var(--bg-secondary, #f3f4f6);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
  border: 0;
}

body.dark-mode .progress-bar {
  background-color: var(--bg-secondary, #21262d);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color, #3b82f6), var(--accent-hover, #2563eb));
  transition: width 0.3s ease;
  position: relative;
}

.current-container {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 0.9em;
  color: var(--text-secondary, #6b7280);
  background: var(--bg-secondary, #f3f4f6);
  padding: 8px 12px;
  border-radius: 6px;
  border: 0;
  word-break: break-all;
}

body.dark-mode .current-container {
  color: var(--text-secondary, #acb1b9);
  background: var(--bg-secondary, #0d1117);
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Custom scrollbar */
#updates-list::-webkit-scrollbar {
  width: 8px;
}

#updates-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#updates-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

#updates-list::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

body.dark-mode #updates-list::-webkit-scrollbar-track {
  background: #30363d;
}

body.dark-mode #updates-list::-webkit-scrollbar-thumb {
  background: #6a737d;
}

body.dark-mode #updates-list::-webkit-scrollbar-thumb:hover {
  background: #8b949e;
}

/* Loading Spinner */
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

body.dark-mode .loader {
  border-color: #21262d;
  border-top-color: #2188ff;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

/* Update indicator styles */
.update-indicator:not(.hidden) {
  display: inline-flex;
  align-items: center;
}

.update-indicator svg {
  width: 20px;
  height: 20px;
  color: #d67a10;
}

body.dark-mode .update-indicator svg {
  color: #b9711f;
}

.image-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 200px;
}

.image-wrapper-inline {
  display: inline;
}


.table-cell-image code {
  display: inline;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: #f7f7f7;
  color: #3e4043;
  border-radius: 0.25rem;
  padding: 0.2rem 0.4rem;
  white-space: break-spaces;
  word-break: break-all;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

body.dark-mode .table-cell-image code {
  background-color: #22262d;
  color: #d5d5d5;
}

#check-updates-button {
  background-color: #e1e4e8;
  color: #626c78;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

#check-updates-button:hover {
  background-color: #d1d5da;
}

/* Ukryj SVG podczas ładowania */

#check-updates-button svg {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-right: 0.5rem;
}

#check-updates-button.loading svg {
  display: none;
}

/* Pokaż spinner podczas ładowania */
#check-updates-button.loading::before {
  content: "";
  display: inline-block;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #d67a10;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 1s linear infinite;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* Animacja spinnera */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Dark mode */
body.dark-mode #check-updates-button {
  background-color: #21262d;
  color: #97a1ab;
}

body.dark-mode #check-updates-button:hover {
  background-color: #30363d;
}

/* Dark mode spinner */
body.dark-mode #check-updates-button.loading::before {
  border: 2px solid #30363d;
  border-top: 2px solid #b9711f;
}

/* Toggle Switch Styles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e1e4e8;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.1s ease-in-out;
}

input:checked+.slider {
  background-color: #3f88fe;
}

input:checked+.slider:before {
  transform: translateX(20px);
}

body.dark-mode .slider {
  background-color: #33393f;
}

body.dark-mode .slider:before {
  background-color: #181c25;
}

body.dark-mode input:checked+.slider {
  background-color: #567bd4;
}

#filter-updates-checkbox:checked+.slider {
  background-color: #d67a10;
}

body.dark-mode #filter-updates-checkbox:checked+.slider {
  background-color: #d67a10;
}

#filter-running-checkbox:checked+.slider {
  background-color: #3ec93c;
}

body.dark-mode #filter-running-checkbox:checked+.slider {
  background-color: #3b8531;
}

label[for="filter-running-checkbox"] {
  color: #babdc1;
}

body.dark-mode label[for="filter-running-checkbox"] {
  color: #5c616b;
}



#modal-message {
  white-space: pre-line;
  line-height: 1.6;
}

button:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Kolory dla linków Traefik */
.traefik-route a {
  color: #3e71e9 !important;
}

.traefik-route a:hover {
  color: #2b7fff !important;
}

/* Dark mode version */
body.dark-mode .traefik-route a {
  color: #2572cb !important;
}

body.dark-mode .traefik-route a:hover {
  color: #2b7fff !important;
}

/* Column Menu Styles */
.column-menu-container {
  margin-left: 16px;
  position: relative;
  display: inline-block;
}

.column-menu-reset {
  text-align: right;
  /* ustawia zawartość po prawej */
}

.reset-columns-btn {
  display: inline-block;
  color: #767983;
  font-weight: normal;
  padding-top: 0.75em;
  padding-right: 0.3em;
}

/* Klikalny kontener (div) */
.column-menu-container {
  height: 32px;
  width: 32px;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Ikona w środku */
.column-menu-svg {
  height: 26px;
  width: 26px;
  color: #c0c4c9;
  pointer-events: none;
  /* <-- ważne, żeby klik szedł w kontener, a nie w SVG */
}

/* Hover dla całego przycisku */
.column-menu-container:hover .column-menu-svg {
  color: #a2a6aa;
}

/* Dark mode */
body.dark-mode .column-menu-svg {
  color: #767e87;
}

body.dark-mode .column-menu-container:hover .column-menu-svg {
  color: #40464d;
}


.column-menu {
  position: absolute;
  top: calc(100% + 0px);
  right: 0;
  background-color: #ffffff;
  border: 1px solid #e1e4e8;
  border-radius: 0.5rem;
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
  padding: 0.75rem;
  min-width: 180px;
  z-index: 1000;
}

.column-menu-item {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.column-menu-item:not(:last-child) {
  border-bottom: 1px solid #f1f3f4;
}

.column-menu-item span {
  color: #24292e;
  font-weight: 400;
}

/* Dark mode styles */
body.dark-mode .column-menu-button {
  background-color: #21262d;
  color: #97a1ab;
}

body.dark-mode .column-menu-button:hover {
  background-color: #30363d;
}

body.dark-mode .column-menu {
  background-color: #1c2129;
  border-color: #282d33;
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .column-menu-item {
  border-bottom-color: #282d33;
}

body.dark-mode .column-menu-item span {
  color: #c9d1d9;
}

.prune-badge {
  background-color: #b3b3b3;
  color: #fff;
}

#prune-info-message{
  overflow-y: auto;
}

body.dark-mode .prune-badge {
  background-color: #364153;
  color: #acacac;  
}

.prune-details-list {
  display: inline;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #105cd9;
  white-space: break-spaces;
  word-break: break-all;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

body.dark-mode .prune-details-list {
  color: #5797ff;
}


.container-stats {  
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.875rem;
}

.dark-mode .container-stats {  
  opacity: 80%;
}


.stat-item {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-weight: 500;
  display: inline-block;
}

.stat-running {
  background-color: #dcfce7;
  color: #166534;
}

.stat-healthy {
  background-color: #dbeafe;
  color: #1e40af;
}

.stat-stopped {
  background-color: #f3f4f6;
  color: #4b5563;
}

.stat-unhealthy {
  background-color: #fee2e2;
  color: #991b1b;
}

.stat-paused {
  background-color: #fef3c7;
  color: #bd6e3e;
}

.stat-other {
  background-color: #e0e7ff;
  color: #3730a3;
}

.dark-mode .stat-running {
  background-color: #14532d;
  color: #bbf7d0;
}

.dark-mode .stat-healthy {
  background-color: #1e3a8a;
  color: #bfdbfe;
}

.dark-mode .stat-stopped {
  background-color: #374151;
  color: #d1d5db;
}

.dark-mode .stat-unhealthy {
  background-color: #7f1d1d;
  color: #fecaca;
}

.dark-mode .stat-paused {
  background-color: #78350f;
  color: #e7c981;
}

.dark-mode .stat-restarting {
  background-color: #831843;
  color: #fbcfe8;
}

.dark-mode .stat-other {
  background-color: #312e81;
  color: #c7d2fe;
}


.stat-detail {
  font-weight: 400;
  opacity: 0.85;
  font-size: 0.92em;
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
}

.stat-total {
  background-color: #f3f4f6;
  color: #374151;
  font-weight: 600;
}

.dark-mode .stat-total {
  background-color: #4b5563;
  color: #e5e7eb;
}

.stat-item {
  padding: 0.25rem 0.7rem;
  border-radius: 0.375rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-item svg {
  flex-shrink: 0;
}



/* Column visibility classes */
.column-hidden {
  display: none !important;
}

.traefik-route a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.traefik-route a .traefik-text {
  display: inline;
}


.tag-badge {
  max-width: 120px;
  display: inline-block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  background-color: #daeaff;
  color: #546f9f;
  font-size: 0.75rem;
  font-weight: 400;
  padding: 2px 7px;
  border-radius: 9999px;
  cursor: pointer;
}

.tag-badge:hover {
  background-color: #cfe0fd;
}

.dark-mode .tag-badge {
  background-color: #22262d;
  color: #90939b;
}

.dark-mode .tag-badge:hover {
  background-color: #2d3137;
}

.tags-container {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 250px;
}

.column-menu {
  min-width: 200px;
}

.column-menu-header {
  padding: 8px 12px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 8px;
}

.column-list {
  max-height: 400px;
  overflow-y: auto;
}

.column-menu-item.draggable {
  display: flex;
  align-items: center;
  cursor: move;
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 4px;
  margin: 2px 8px;
}

.column-menu-item.dragging {
  opacity: 0.5;
  background-color: #f3f4f6;
  border-color: #d1d5db;
}


.dark-mode .column-menu-item.dragging {
  opacity: 0.5;
  background-color: #454850;
  border-color: #373b44;
}


.column-menu-item.drag-over {
  border-top: 2px solid #3b82f6;
}

.drag-handle {
  color: #9ca3af;
  font-weight: bold;
  margin-right: 8px;
  user-select: none;
  line-height: 1;
}

.drag-handle:hover {
  color: #6b7280;
}

.column-menu-item label {
  flex: 1;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

/* ======================================== */
/* Custom Tooltip Styles (JS-Driven)      */
/* ======================================== */

/* Główny kontener tooltipa, tworzony przez JS. */
.custom-tooltip {
  position: absolute;
  /* Pozycję (top, left) ustawi JavaScript */
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

/* Klasa dodawana przez JS, aby pokazać tooltip */
.custom-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Dymek tooltipa */
.custom-tooltip-box {
  background-color: #ffffff;
  color: #4f5359;
  font-size: 0.8rem;
  font-weight: 400;
  padding: 0.4rem 0.8rem;
  border-radius: 0.375rem;
  white-space: nowrap;
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Strzałka/trójkąt */
.custom-tooltip-arrow {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

/* --- Modyfikatory Pozycji Strzałki --- */

/* Pozycja: Góra (domyślna) */
.custom-tooltip-arrow.arrow-top {
  border-width: 6px 6px 0 6px;
  border-color: #ffffff transparent transparent transparent;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
}

/* Pozycja: Lewo */
.custom-tooltip-arrow.arrow-left {
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent #ffffff;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
}

/* Pozycja: Prawo */
.custom-tooltip-arrow.arrow-right {
  border-width: 10px 10px 10px 0;
  border-color: transparent #ffffff transparent transparent;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
}


/* === Style Tooltipa dla Trybu Ciemnego === */
body.dark-mode .custom-tooltip-box {
  background-color: #31363d;
  color: #f6f8fa;
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.4);
}

body.dark-mode .custom-tooltip-arrow.arrow-top {
  border-top-color: #31363d;
}

body.dark-mode .custom-tooltip-arrow.arrow-left {
  border-left-color: #31363d;
}

body.dark-mode .custom-tooltip-arrow.arrow-right {
  border-right-color: #31363d;
}

.first-visible {
  padding-left: 3rem
}

.last-visible {
  padding-right: 3rem
}

.single-row-template {
  background-color: #ffffff !important;
}

.single-row-template:hover {
  background-color: #f7f7f7 !important;
}

body.dark-mode .single-row-template {
  background-color: #171b22 !important;
}

body.dark-mode .single-row-template:hover {
  background-color: #22262d !important;
}

.buycoffe:hover {
  color: #ddab30;
}

/* Responsive Styles */
@media (max-width: 576px) {
  body {
    padding: 0;
  }

  #search-input::placeholder {
    opacity: 0;
  }

  .container {
    padding: 0.5rem;
  }

  .flex.justify-between.items-center.mb-6 {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
  }

  .controls-container {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 1rem;
  }

  .controls-container>* {
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .py-3.px-4 {
    padding: 0.5rem 0.75rem;
  }

  .min-w-full {
    min-width: unset;
  }

  .overflow-x-auto {
    /* overflow-x: hidden;*/
  }

  .update-indicator {
    display: none;
  }

  .min-w-full {
    min-width: 100%;
  }

}

/* Responsive Styles */
@media (max-width: 768px) {

  .container {
    padding: 0.5rem;
  }

  .container-top {
    padding: 0;
    padding-top: 0.5rem;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  .column-menu-container {
    margin-left: 8px;
  }

  .right-18 {
    right: calc(var(--spacing) * 14);
  }

  [data-tooltip-left]::after,
  [data-tooltip-left]::before,
  [data-tooltip-right]::after,
  [data-tooltip-right]::before,
  [data-tooltip]::after,
  [data-tooltip]::before {
    display: none !important;
    content: none !important;
  }

  .flex.justify-between.items-center.mb-6 {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
  }

  .status-filter {
    display: flex;
    justify-content: right;
    align-items: center;
    height: 100%;
  }

  .column-menu-container {
    display: flex;
    justify-content: right;
    align-items: center;
    height: 100%;
  }

  .controls-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 1rem;
  }

  .controls-container>* {
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .py-3.px-4 {
    padding: 0.5rem 0.75rem;
  }

  .min-w-full {
    min-width: unset;
  }

  .min-w-full {
    min-width: 100%;
  }
}

/* domyślnie (dla dużych ekranów) */
label[for="filter-running-checkbox"] {
  display: inline;
}

/* ukryj dla ekranów <= 1023px */
@media (max-width: 1023px) {
  label[for="filter-running-checkbox"] {
    display: none;
  }
}

/* przywróć widoczność dla ekranów <= 768px (nadpisze regułę powyżej) */
@media (max-width: 768px) {
  label[for="filter-running-checkbox"] {
    display: inline;
  }
}

/* jawne ustawienie dla >= 1024px (opcjonalne, domyślne już to daje) */
@media (min-width: 1024px) {
  label[for="filter-running-checkbox"] {
    display: inline;
  }


}/* WebKit (Chrome, Safari, Edge) */
body.dark-mode ::-webkit-scrollbar {
  width: 12px; 
}

body.dark-mode ::-webkit-scrollbar-track {
  background: #171b22; 
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 6px; 
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: #484f58; 
}

/* Dla Firefox */
body.dark-mode {
  scrollbar-width: thin; 
  scrollbar-color: #30363d #171b22; 
}

body ::-webkit-scrollbar {
  width: 12px;
}

body ::-webkit-scrollbar-track {
  background: #f6f8fa;
}

body ::-webkit-scrollbar-thumb {
  background: #d0d7de;
  border-radius: 6px;
}

body ::-webkit-scrollbar-thumb:hover {
  background: #b0b7be;
}

body {
  scrollbar-width: thin;
  scrollbar-color: #d0d7de #f6f8fa;
}