@font-face {
  font-family: 'Cairo';
  src: url('../fonts/Cairo_Extra_Light.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'Cairo';
  src: url('../fonts/Cairo_Extra_Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Cairo';
  src: url('../fonts/Cairo_Extra_Light.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Cairo';
  src: url('../fonts/Cairo_Extra_Light.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgb(94, 123, 78);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-weight: 200;
  background-color: #ffffff;
  color: #212529;
}

table {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: 160px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  transition: width 0.2s ease-in-out;
  user-select: none;
  z-index: 2000;
  scrollbar-width: thin;
}

#sidebar-nav-container {
  background-color: #ffffff !important;
  border-color: #dee2e6 !important;
  color: #212529;
}

#sidebar-nav-container .nav-link {
  color: #212529 !important;
}

#sidebar-nav-container .text-muted {
  color: #6c757d !important;
}

.sidebar-collapsed .app-sidebar {
  width: 64px;
}

.sidebar-collapsed .app-sidebar .nav-text,
.sidebar-collapsed .app-sidebar .brand-divider,
.sidebar-collapsed .app-sidebar .brand-subtitle {
  display: none;
}

.sidebar-collapsed .app-sidebar .nav-link {
  justify-content: center;
  padding-left: 0.6rem !important; /* Restore padding for centering */
}

.sidebar-collapsed .app-sidebar .nav-link svg {
  margin-right: 0 !important;
}

.sidebar-collapsed .app-sidebar .navbar-brand {
  font-size: 0.75rem;
}

.sidebar-collapsed .app-sidebar .sidebar-nav {
  padding-left: 0.25rem !important;
  padding-right: 0.25rem !important;
}

.app-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

main[role="main"] {
  flex: 1;
}

.table-responsive {
  overflow-x: auto;
}

.sidebar-nav .nav-link {
  border-radius: 0.375rem;
  padding: 0.45rem 0.6rem;
}

.sidebar-nav .nav-link:hover {
  background-color: #85a872;
}

.sidebar-nav .nav-link.active {
  color: #5e7b4e !important;
  font-weight: bold;
  
}

.app-footer {
  z-index: 1;
}

.image-paste-zone {
  min-height: 3rem;
  outline: none;
  background-color: #ffffff;
}

.image-paste-zone:focus {
  border-color: #86b7fe !important;
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
}

.project-form-thumb {
  max-height: 120px;
  max-width: 100%;
  object-fit: contain;
}

.table .project-thumb {
  max-height: 56px;
  max-width: 72px;
  object-fit: contain;
  vertical-align: middle;
  transition: transform 0.2s ease-in-out;
}

.table .project-thumb:hover {
  transform: scale(2.5);
  position: relative;
  z-index: 1060;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Zaključeno: green = da, red = ne */
.table tbody td.cell-finished-yes {
  background-color: #c3e6cb !important;
}

.table tbody td.cell-finished-no {
  background-color: #f5c6cb !important;
}

/* Ročno barvanje celic (klik): brez → zelena → rumena → rdeča */
.cell-hl-green {
  background-color: #c3e6cb !important;
}

.cell-hl-yellow {
  background-color: #ffeeba!important;
}

.cell-hl-red {
  background-color: #f5c6cb !important;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: #6c757d;
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Vertikalne ločilne črte v tabeli */
#projects-table th {
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa;
  color: #212529;
  position: sticky;
  top: 0;
  z-index: 990;
  word-wrap: break-word;
}

#projects-table td {
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;

}

#projects-table th:last-child,
#projects-table td:last-child {
  border-right: none;
}

.brand-divider {
  border-bottom: 1.5px solid #5e7b4e;
  margin-top: 0.25rem;
  margin-bottom: 0.15rem;
}

.brand-subtitle {
  color: #5e7b4e;
  font-size: 0.65rem;
  letter-spacing: 0.02rem;
  font-weight: 400;
}

.section-divider {
  display: flex;
  align-items: center;
  text-align: center;
  font-size: 0.75rem;
  color: #5e7b4e;
  font-weight: bold;
  margin: 1rem 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.section-divider::before {
  margin-right: 0.75rem;
}

.section-divider::after {
  margin-left: 0.75rem;
}

.list-group-item {
  margin-bottom: 6px;
  background-color: #f8f9fa;
  color: #212529;
  transition: background-color .15s ease, box-shadow .15s ease;
  border-radius: 8px;
}

.list-group-item:hover {
  background-color: #85a872;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.text-required:after {
  content: " *";
  color: #dc3545;
  font-weight: bold;
}