
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');

:root {
  --ink: #252321;
  --muted: #77716c;
  --paper: #faf9f6;
  --white: #ffffff;
  --line: #e9e5df;
  --accent: #a58b78;
  --accent-dark: #806854;
  --soft: #f1ede8;
  --green: #477653;
  --green-light: #eaf2eb;
  --orange: #bd8245;
  --orange-light: #fbf1e5;
  --danger: #a44d45;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* HEADER */

.site-header {
  min-height: 105px;
  padding: 14px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.site-logo {
  display: block;
  width: 280px;
  height: 90px;
  object-fit: contain;
}

.admin-link {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-link:hover {
  color: var(--accent-dark);
}

/* GENERAL */

main {
  width: min(1080px, 90%);
  margin: 0 auto;
}

.admin-wrap {
  width: min(1320px, 94%);
  padding-top: 45px;
  padding-bottom: 45px;
}

.intro {
  text-align: center;
  padding: 65px 20px 35px;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
}

h1,
h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
}

h2 {
  font-size: 25px;
}

p {
  color: var(--muted);
}

.panel {
  padding: 30px;
  margin-bottom: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.narrow {
  max-width: 480px;
  margin: 60px auto;
}

/* FORMS */

form {
  display: grid;
  gap: 17px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(165, 139, 120, .12);
}

.primary,
.secondary {
  min-height: 45px;
  padding: 11px 22px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: .2s ease;
}

.primary {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
}

.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.secondary {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.secondary:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.message {
  min-height: 18px;
  margin: 0;
  font-size: 12px;
  color: var(--green);
}

.message.error {
  color: var(--danger);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ADMIN HEADER */

.admin-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.admin-welcome h1 {
  margin: 5px 0;
}

.admin-welcome p {
  margin: 5px 0;
}

/* STATISTICS */

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  min-height: 145px;
  padding: 25px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 3px 15px rgba(40, 35, 30, .025);
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.stat-card strong {
  color: var(--green);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.1;
}

/* NAVIGATION */

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.tab {
  padding: 13px 20px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.tab:hover {
  color: var(--ink);
}

.tab.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* CALENDAR */

#calendar.panel {
  padding: 34px;
}

.calendar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.calendar-heading h2 {
  margin: 0;
}

.calendar-heading .eyebrow {
  margin-bottom: 5px;
}

.calendar-navigation {
  display: flex;
  align-items: center;
  gap: 18px;
}

.calendar-navigation strong {
  min-width: 145px;
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}

.calendar-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
}

.calendar-arrow:hover {
  border-color: var(--accent);
  background: var(--soft);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.calendar-weekdays span {
  padding: 13px 5px;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.calendar-cell {
  position: relative;
  min-width: 0;
  min-height: 112px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  text-align: left;
  transition: background .15s ease;
}

.calendar-cell:not(.empty-cell):hover {
  background: #f8f6f2;
}

.calendar-cell.empty-cell {
  background: #faf9f6;
  cursor: default;
}

.calendar-day-number {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.calendar-cell.today .calendar-day-number {
  background: var(--ink);
  color: var(--white);
}

.calendar-cell.selected {
  background: #f4f0eb;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.calendar-counts {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.calendar-count {
  max-width: 100%;
  padding: 3px 7px;
  overflow: hidden;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confirmed-count {
  background: var(--green-light);
  color: var(--green);
}

.pending-count {
  background: var(--orange-light);
  color: var(--orange);
}

.calendar-legend {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 11px;
}

.calendar-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.pending-dot {
  background: var(--orange);
}

/* SELECTED DAY */

.selected-day {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading .eyebrow {
  margin-bottom: 5px;
}

/* BOOKING ITEMS */

.booking-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.booking-item:last-child {
  border-bottom: 0;
}

.booking-title {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 5px;
}

.booking-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.actions button {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-size: 11px;
}

.actions button.approve {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.actions button[data-action="rejected"] {
  color: var(--danger);
}

.empty {
  padding: 25px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* LOGOUT */

.admin-bottom {
  display: flex;
  justify-content: flex-end;
  padding: 10px 0 30px;
}

.admin-bottom .secondary {
  min-width: 125px;
}

/* FOOTER */

footer {
  padding: 25px 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  letter-spacing: .05em;
}

/* RESPONSIVE */

@media (max-width: 800px) {
  .admin-wrap {
    width: 94%;
  }

  #calendar.panel {
    padding: 20px;
  }

  .calendar-cell {
    min-height: 90px;
    padding: 8px;
  }

  .calendar-count {
    font-size: 9px;
  }

  .calendar-weekdays span {
    font-size: 10px;
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 82px;
    padding: 10px 5%;
  }

  .site-logo {
    width: 190px;
    height: 65px;
  }

  .admin-link {
    font-size: 10px;
  }

  .admin-wrap {
    padding-top: 30px;
  }

  .admin-welcome h1 {
    font-size: 32px;
  }

  .admin-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-card {
    min-height: 100px;
  }

  .stat-card strong {
    font-size: 38px;
  }

  .panel {
    padding: 20px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .calendar-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-navigation {
    width: 100%;
    justify-content: space-between;
  }

  .calendar-weekdays span {
    padding: 9px 1px;
    font-size: 9px;
  }

  .calendar-cell {
    min-height: 70px;
    padding: 5px;
    gap: 5px;
  }

  .calendar-day-number {
    width: 25px;
    height: 25px;
    font-size: 11px;
  }

  .calendar-count {
    padding: 2px 3px;
    font-size: 8px;
  }

  .calendar-legend {
    gap: 12px;
  }

  .booking-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .actions {
    width: 100%;
  }

  .actions button {
    flex: 1;
  }

  .tabs {
    gap: 0;
  }

  .tab {
    padding: 12px 10px;
    font-size: 11px;
  }
}

.admin-comment-area {
  margin-top: 14px;
  max-width: 520px;
}

.admin-comment-area label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.admin-comment-input {
  width: 100%;
  min-height: 65px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.comment-actions {
  display: flex;
  gap: 8px;
  margin-top: 7px;
  flex-wrap: wrap;
}

.comment-message {
  font-size: 12px;
  margin-top: 6px;
  color: #39734b;
}

/* УСОГЛАСУВАЊЕ НА ТЕРМИНИТЕ */

.booking-item {
  width: 100%;
  align-items: flex-start;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.booking-information {
  width: 100%;
  min-width: 0;
}

.admin-comment-area {
  width: 100%;
  max-width: 100%;
}

.admin-comment-input {
  display: block;
  width: 100%;
  min-height: 75px;
}

.comment-actions {
  width: 100%;
}

.booking-item .actions {
  width: 100%;
}

.booking-item .actions button {
  min-width: 100px;
}

.booking-item:last-child {
  border-bottom: 1px solid var(--line);
}

/* ЈАВНА СТРАНИЦА ЗА ЗАКАЖУВАЊЕ */

.booking-header {
  min-height: 55px;
  height: 55px;
  padding: 0 6%;
  justify-content: flex-end;
}

.booking-header .admin-link {
  font-size: 11px;
}

.booking-wrap {
  width: min(720px, 92%);
  margin: 0 auto;
}

.booking-intro {
  padding: 15px 20px 20px;
}

.booking-brand {
  display: block;
  margin: 0 auto 8px;
  width: fit-content;
}

.booking-intro .site-logo {
  width: 260px;
  height: 100px;
  margin: 0 auto;
}

.booking-intro h1 {
  margin: 5px 0 12px;
}

.booking-intro > p:last-child {
  max-width: 580px;
  margin: 0 auto;
}

.booking-wrap form {
  margin-bottom: 35px;
}

@media (max-width: 600px) {
  .booking-header {
    min-height: 45px;
    height: 45px;
    padding: 0 5%;
  }

  .booking-intro {
    padding: 10px 10px 18px;
  }

  .booking-intro .site-logo {
    width: 520px;
    height: 105px;
  }
}

.booking-intro .site-logo {
  width: 190px;
  height: 75px;
}

@media (max-width: 600px) {
  .booking-intro .site-logo {
    width: 165px;
    height: 65px;
  }
}

/* ГОЛЕМИНА НА ЛОГОТО НА ЈАВНАТА СТРАНИЦА */
.booking-intro .site-logo {
  width: 280px !important;
  height: 110px !important;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .booking-intro .site-logo {
    width: 540px !important;
    height: 205px !important;
  }
}

.booking-intro .site-logo {
  width: 400px !important;
  height: 150px !important;
  max-width: 95vw;
  object-fit: contain;
}
.booking-intro .site-logo {
  width: auto !important;
  height: 90px !important;
  max-width: 95%;
  object-fit: contain;
}