/* ===================== BASE ===================== */
body {
  background: #050505;
  color: #ffffff;
  font-family: Arial, sans-serif;
  margin: 0;
}
a {
  text-decoration: none;
  color: #e20088;
  font-weight: 500;
}
a:hover {
  color: #b9006f;
}
.text-primary {
  color: #e20088;
}
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.btn-primary {
  --bs-btn-bg: #e20088;
  --bs-btn-border-color: #e20088;
  --bs-btn-hover-bg: #b9006f;
  --bs-btn-hover-border-color: #b9006f;
  --bs-btn-active-bg: #b9006f;
  --bs-btn-active-border-color: #b9006f;
  --bs-btn-disabled-bg: #e20088;
  --bs-btn-disabled-border-color: #e20088;
  --bs-btn-focus-shadow-rgb: 255, 60, 152;
  border-radius: 12px;
  height: 46px;
}
.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active {
  outline: none;
  box-shadow: 0 0 0 2px rgba(226, 0, 136, 0.35);
}
.form-control,
.form-select {
  background: oklch(13% 0.005 20);
  color: #fff;
  border: 1px solid rgba(226, 0, 136, 0.2);
  --bs-focus-ring-color: rgba(226, 0, 136, 0.3);
  --bs-focus-ring-x: 0;
  --bs-focus-ring-y: 0;
  --bs-focus-ring-blur: 0;
  --bs-focus-ring-width: 0.2rem;
}
.form-control:focus,
.form-select:focus {
  background: oklch(13% 0.005 20);
  color: #fff;
  border-color: #e20088;
  box-shadow: 0 0 0 0.2rem rgba(226, 0, 136, 0.2);
}
.form-control:focus,
.form-select:focus,
textarea:focus {
  color: #fff;
  background: oklch(13% 0.005 20);
  border-color: #e20088 !important;
  outline: 0 !important;
  box-shadow: 0 0 0 2px rgba(226, 0, 136, 0.35) !important;
}
input:focus:invalid,
textarea:focus:invalid,
select:focus:invalid {
  border-color: #e20088 !important;
  box-shadow: 0 0 0 2px rgba(226, 0, 136, 0.35) !important;
  outline: none !important;
}
.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: #e20088 !important;
  box-shadow: none;
}
/* ===================== INPUTS & BUTTONS ===================== */
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  background: #222;
  border: none;
  color: white;
  border-radius: 6px;
  box-sizing: border-box;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border: 1px solid #e20088;
}
button {
  padding: 12px;
  background: #e20088;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 6px;
  font-weight: bold;
}
button:hover {
  background: #b9006f;
}
/* ===================== LOGIN ===================== */
.login-container {
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background: url('../../img/bg.jpg') center / cover no-repeat;
}
.login-container .login-box {
  background: #11111199;
  padding: 50px;
  border-radius: 12px;
  width: 380px;
  text-align: center;
}
.login-container .login-box input {
  max-width: 100%;
}
.logo {
  width: 180px;
  margin-bottom: 20px;
}
.logo-link {
  opacity: 1;
  transition: 0.2s;
}
.logo-link:hover {
  opacity: 0.8;
}
.input-group {
  width: 100%;
  margin-bottom: 15px;
}
.error {
  margin-top: 10px;
  color: red;
  transition: opacity 0.2s;
}
/* ===================== LAYOUT ===================== */
.dashboard {
  display: flex;
  min-height: calc(100vh - 60px);
}
.dashboard .content {
  flex: 1;
  padding: 30px;
  min-width: 0;
  overflow-x: hidden;
}
/* ===================== TOPBAR (BOOTSTRAP) ===================== */
.navbar {
  background: #0a0a0a;
  overflow: visible;
}
/* LOGO */
.navbar-brand img {
  height: 30px;
  display: block;
}
/* SEARCH WRAPPER */
.navbar .search-wrapper {
  position: relative;
  width: 100%;
}
@media (min-width: 992px) {
  .navbar .search-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }
}
/* INPUT */
.navbar .search-wrapper input.form-control {
  background: #111;
  border: 1px solid #222;
  color: #fff;
}
.navbar .search-wrapper input.form-control:focus {
  background: #111;
  color: #fff;
  border-color: #e20088;
  box-shadow: none;
}
.navbar .search-wrapper input.form-control::placeholder {
  color: #ccc;
  opacity: 1;
}
.navbar .search-wrapper input.form-control:focus::placeholder {
  color: #aaa;
}
/* DROPDOWN */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #0d0d0d;
  border-radius: 8px;
  margin-top: 6px;
  z-index: 1050;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.search-results .item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #111;
}
.search-results .item:last-child {
  border-bottom: none;
}
.search-results .item:hover {
  background: #e20088;
}
.search-results .item .title {
  font-weight: bold;
}
.search-results .item .meta {
  font-size: 12px;
  color: #888;
}
/* RIGHT SIDE */
.navbar .user-info {
  color: #ccc;
  font-size: 13px;
}
/* ===================== SIDEBAR ===================== */
.sidebar {
  width: 220px;
  background: #0d0d0d;
  padding: 20px;
}
@media (max-width: 991px) {
  .sidebar {
    display: none;
  }
}
.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar a {
  display: block;
  padding: 10px;
  border-radius: 6px;
  color: white;
  margin-top: 5px;
}
.sidebar a:hover,
.sidebar a.active {
  background: #e20088;
}
.sidebar .sidebar-title {
  font-weight: bold;
  margin-bottom: 20px;
}
.offcanvas-header,
.offcanvas-body {
  background-color: #0a0a0a;
}
.offcanvas .sidebar {
  display: block;
  width: 100%;
  padding: 15px;
}
/* ===================== TABLE ===================== */
.car-table {
  background: transparent;
}
.car-table thead th {
  background: #0a0a0a;
  color: #fff;
  padding: 12px;
  vertical-align: middle;
  cursor: pointer;
}
.car-table tbody td {
  background: #050505;
  padding: 12px;
  border-color: #111;
}
.car-table tbody tr:hover td {
  background: #0f0f0f;
}
.table-responsive {
  -webkit-overflow-scrolling: touch;
}
.car-table.table-dark {
  --bs-table-bg: #050505;
  --bs-table-striped-bg: #0a0a0a;
  --bs-table-hover-bg: #111;
  --bs-table-border-color: #111;
}
.car-link {
  color: #e20088;
  font-weight: bold;
  cursor: pointer;
}
.car-link:hover {
  color: #e20088;
}
.sort-arrow {
  margin-left: 6px;
  font-size: 10px;
  color: white;
}
.table-sort {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
}
.table-sort:hover {
  color: inherit;
  text-decoration: none;
}
.table-sort span {
  font-size: 0.75rem;
  opacity: 0.7;
}
/* ===================== BUTTONS ===================== */
.text-muted {
  color: #aaa !important;
}
.btn-primary {
  height: 46px;
  padding: 0.65rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 12px;
  background: #e20088;
  color: #fff;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(226, 0, 136, 0.35), 0 10px 30px -10px rgba(226, 0, 136, 0.6);
}
.btn-primary:hover {
  background: #b9006f;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(185, 0, 111, 0.4), 0 16px 40px -10px rgba(185, 0, 111, 0.7);
}
.btn-primary:active {
  transform: translateY(0);
  background: #b9006f;
}
.btn-primary:focus,
.btn-primary:focus-visible {
  background: #b9006f;
  color: #fff;
  outline: none;
  box-shadow: 0 0 0 2px oklch(68% 0.24 596.66666667), 0 10px 30px -10px rgba(226, 0, 136, 0.6);
}
.form-control,
.form-select,
textarea.form-control {
  height: 46px;
  padding: 0.65rem 0.9rem;
  color: #fff;
  background: oklch(13% 0.005 20);
  border: 1px solid rgba(226, 0, 136, 0.18);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-control::placeholder,
.form-select::placeholder,
textarea.form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.form-control:hover,
.form-select:hover,
textarea.form-control:hover {
  border-color: rgba(226, 0, 136, 0.35);
}
.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  color: #fff;
  background: oklch(13% 0.005 20);
  border-color: #e20088;
  outline: none;
  box-shadow: 0 0 0 2px oklch(68% 0.24 596.66666667), 0 0 0 1px rgba(226, 0, 136, 0.6);
}
.form-control:disabled,
.form-select:disabled,
textarea.form-control:disabled,
.form-control[readonly],
.form-select[readonly],
textarea.form-control[readonly] {
  opacity: 0.65;
}
/* Výjimka pro textarea */
textarea.form-control {
  height: auto;
  min-height: 250px;
  resize: vertical;
}
.switch-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 9px;
}
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: oklch(13% 0.005 20);
  border: 1px solid rgba(226, 0, 136, 0.25);
  border-radius: 999px;
  transition: 0.25s ease;
}
.slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #fff;
  transition: 0.25s ease;
}
.switch:hover .slider {
  border-color: rgba(226, 0, 136, 0.45);
}
.switch input:checked + .slider {
  background: #e20088;
  border-color: #e20088;
}
.switch input:checked + .slider::before {
  transform: translateX(20px);
}
.switch input:focus + .slider {
  box-shadow: 0 0 0 3px rgba(226, 0, 136, 0.18);
}
.switch-label {
  color: #fff;
  cursor: pointer;
  user-select: none;
}
.btn-secondary {
  background: #222;
  padding: 10px 16px;
  color: white;
  border-radius: 6px;
  text-decoration: none;
}
.btn-danger {
  background: #f44336;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-danger:hover {
  background: #d32f2f;
}
.logout-btn {
  color: white;
  background: #111;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #222;
  transition: 0.2s;
}
.logout-btn:hover {
  background: #e20088;
  border-color: #e20088;
}
/* ===================== STATUS ===================== */
.status {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
}
.status-paid {
  background: #1a7f37;
}
.status-progress {
  background: #a66b00;
}
.status-done {
  background: #555;
}
/* ===================== DETAIL ===================== */
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.actions {
  display: flex;
  gap: 10px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
/* ===================== CARDS ===================== */
.card {
  background: #111;
  padding: 20px;
  border-radius: 10px;
}
.card.full {
  grid-column: span 2;
}
/* ===================== FORM ===================== */
.form-container {
  width: 100%;
  max-width: none;
  background: #0d0d0d;
  padding: 30px;
  border-radius: 12px;
}
.form-section {
  margin-bottom: 30px;
}
.form-section h3 {
  font-size: 16px;
  color: #555;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
/* ===================== WORKLOG ===================== */
.worklog-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.worklog-form input,
.worklog-form select {
  padding: 8px;
  background: #111;
  border: none;
  color: white;
}
/* ===================== MISC ===================== */
.menu-section {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #777;
  text-transform: uppercase;
}
.link {
  color: #ccc;
  cursor: pointer;
}
.link:hover {
  color: white;
}
.tp-yes {
  color: #1a7f37;
  font-weight: bold;
}
.tp-no {
  color: red;
  font-weight: bold;
}
.type-import {
  color: #2196f3;
  font-weight: 600;
}
.type-service {
  color: #ff9800;
  font-weight: 600;
}
/* ===================== ALERT ===================== */
.alert {
  padding: 12px 14px;
  margin-bottom: 15px;
  border-radius: 6px;
  display: flex;
  gap: 8px;
  transition: opacity 0.3s;
}
.alert.hidden {
  opacity: 0;
}
.alert-success {
  background: #d4edda;
  color: #155724;
}
.alert-error {
  background: #f8d7da;
  color: #721c24;
}
/* ===================== ANIMATION ===================== */
@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-5px);
  }
  100% {
    transform: translateX(0);
  }
}
.shake {
  animation: shake 0.3s;
}
/* ===================== DROPZONE ===================== */
.dropzone {
  background: #111 !important;
  border: 2px dashed #444 !important;
  border-radius: 12px;
  color: #fff;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: 0.2s;
}
/* hover */
.dropzone:hover {
  border-color: var(--bs-primary);
  background: #161616 !important;
}
/* text */
.dropzone .dz-message {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
/* icon */
.dropzone .dz-message::before {
  content: "📂";
  display: block;
  font-size: 42px;
  margin-bottom: 10px;
}
/* uploaded files */
.dropzone .dz-preview {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #333;
}
/* filename */
.dropzone .dz-filename span {
  color: #fff !important;
}
/* filesize */
.dropzone .dz-size {
  color: #aaa !important;
}
/* progress bar */
.dropzone .dz-upload {
  background: var(--bs-primary) !important;
}
/* remove button */
.dropzone .dz-remove {
  color: #ff6b6b !important;
  text-decoration: none;
  font-size: 12px;
}
/* success/error marks */
.dropzone .dz-success-mark svg,
.dropzone .dz-error-mark svg {
  filter: brightness(1.2);
}
/* image preview background */
.dropzone .dz-image {
  background: #000;
  border-radius: 8px;
}
.dark-list-group .list-group-item {
  background: #1e1e1e;
  border-color: #2d2d2d;
  color: #fff;
}
.dark-list-group .list-group-item a {
  color: #e20088;
}
.dark-list-group .list-group-item a:hover {
  color: #b9006f;
}
.dark-list-group .text-muted {
  color: #9ca3af !important;
}
.custom-pagination {
  gap: 8px;
}
.custom-pagination .page-item .page-link {
  background: #1e1e1e;
  border: 1px solid #333;
  color: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  transition: all 0.2s ease;
}
.custom-pagination .page-item .page-link:hover {
  background: #b9006f;
  border-color: #b9006f;
  color: white;
}
.custom-pagination .page-item.active .page-link {
  background: #e20088;
  border-color: #e20088;
  color: white;
  box-shadow: 0 0 12px rgba(13, 110, 253, 0.35);
}
.custom-pagination .page-item.disabled .page-link {
  opacity: 0.4;
  pointer-events: none;
}
.customer-link {
  color: #e20088;
  text-decoration: none;
  font-weight: 600;
}
.customer-link:hover {
  color: #ff16a2;
}
