/* ShiftMD v2.0 - Stilovi */
/* ===== GLOBAL ===== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f1f5f9;
  color: #1f2937;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
}

h1 {
  text-align: center;
  color: #1e3a5f;
}

h2 {
  color: #1e3a5f;
  margin-top: 30px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

h3 {
  color: #374151;
  margin-top: 20px;
}

/* ===== NAVIGACIJA ===== */

.navbar {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  padding: 0 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.nav-brand {
  font-size: 22px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 5px;
}

.nav-link {
  display: block;
  padding: 10px 18px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 600;
}

/* ===== CARD LAYOUT ===== */

.card {
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ===== SPACERS ===== */

.spacer {
  height: 24px;
}

.spacer-small {
  height: 12px;
}

/* ===== FORM ===== */

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #374151;
}

.form-group small {
  display: block;
  color: #6b7280;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.4;
}

.form-group small a {
  color: #2563eb;
  text-decoration: none;
}

.form-group small a:hover {
  text-decoration: underline;
}

.checkbox-group {
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: 600 !important;
  font-size: 14px !important;
  margin-bottom: 4px;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label span {
  flex: 1;
  line-height: 1.4;
}

.row {
  display: flex;
  gap: 10px;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
}

input[type="file"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 4px;
  box-sizing: border-box;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: #fafbfc;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

input[type="file"]:hover {
  border-color: #2563eb;
  background: #f0f4ff;
}

input:focus,
select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

button {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
}

button#submitBtn {
  background: #2563eb;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

button#submitBtn:hover:not(:disabled) {
  background: #1d4ed8;
}

button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

/* ===== CALENDAR ===== */

.calendar-header,
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-header {
  font-weight: bold;
  text-align: center;
  margin-bottom: 8px;
  background: #f8fafc;
  padding: 10px 0;
  border-radius: 6px;
  font-size: 13px;
  color: #4b5563;
}

.calendar {
  margin-bottom: 4px;
}

.calendar .day {
  padding: 10px;
  background: #e5e7eb;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar .day:hover {
  background: #d1d5db;
  transform: scale(1.05);
}

.calendar .day.weekend {
  background: #fecaca;
}

.calendar .day.weekend:hover {
  background: #fca5a5;
}

.calendar .day.selected {
  background: #2563eb;
  color: white;
  font-weight: bold;
}

.calendar .day.weekend.selected {
  background: #dc2626;
  color: white;
}

.calendar .empty {
  visibility: hidden;
}

/* ===== STATUS ===== */

.status {
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  margin-bottom: 16px;
}

.status.loading {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.status.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.status.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.hidden {
  display: none;
}

/* ===== RESULT ===== */

.result {
  white-space: pre-wrap;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
  max-height: 500px;
  overflow-y: auto;
}

/* ===== DOWNLOAD BUTTON ===== */

.download-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #059669;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
}

.download-btn:hover {
  background: #047857;
}

/* ===== INFO STRANICE (O sistemu, Uputstvo) ===== */

.info-page {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
}

.info-page .card {
  padding: 30px;
}

.info-page h1 {
  font-size: 28px;
  margin-bottom: 5px;
}

.info-page h2 {
  font-size: 20px;
  margin-top: 30px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

.info-page h3 {
  font-size: 16px;
  margin-top: 20px;
  color: #2563eb;
}

.info-page p {
  line-height: 1.8;
  margin-bottom: 15px;
}

.info-page ul, .info-page ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.info-page li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.highlight-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid #2563eb;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.highlight-box h3 {
  margin-top: 0;
  color: #1e40af;
}

.highlight-box-green {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-left: 4px solid #059669;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.feature-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.feature-card .icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.feature-card h4 {
  margin: 5px 0;
  color: #1e3a5f;
}

.feature-card p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

.step-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.step-list li {
  counter-increment: step;
  padding: 15px 15px 15px 60px;
  position: relative;
  margin-bottom: 15px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 15px;
  top: 15px;
  width: 30px;
  height: 30px;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

table.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table.info-table th {
  background: #374151;
  color: white;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
}

table.info-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
}

table.info-table tr:nth-child(even) {
  background: #f9fafb;
}

.btn-download {
  display: inline-block;
  background: #059669;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-download:hover {
  background: #047857;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
  }
  
  .nav-link {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
}