/* ========== BASE ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  /*--primary: #6b8cff;   */       /* softer iOS blue */
  --primary: #1ce315;
  --primary-soft: rgba(107,140,255,0.12);
  --bg: #f2f2f7;               /* iOS system background */
  --bg-dark: #1c1c1e;          /* iOS system dark background */
  --card: rgba(255,255,255,0.7);
  --text: #1c1c1e;
  --muted: #8e8e93;
  --border: rgba(0,0,0,0.08);

  --success: #34c759;
  --error: #ff3b30;

  --blur: blur(14px);
}

/* FIX */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  padding-bottom: 90px;
}

.footer {
  position: absolute;
bottom: 0px;
width: 100%;
}
#main, .container {
  transition: margin-left .5s;
  padding: 16px;
}

pre {
  color:var(--error);
}

@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
    }

    /* PRICE LIST */
    /* CONTAINER */
.container {
    max-width: 900px;
    margin: auto;
    padding: 10px 15px 40px;
}

/* CATEGORY */
.category {
    margin-top: 30px;
}

.category h2 {
    background: var(--bg);
    color: var(--text);
    padding: 12px 15px;
    border-radius: 10px;
}

.sub-category-title {
    margin-top: 20px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
}

.sub-category-block {
    margin-bottom: 20px;
}

/* ITEMS GRID */
.items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

/* ITEM CARD */
.item {
    background: #fff;
    padding: 14px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-icon {
    font-size: 20px;
}

.price {
    font-weight: bold;
}

/* BADGE */
.badge {
    background: #28a745;
    color: #fff;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 6px;
    margin-left: 8px;
}

/* MOBILE */
@media (max-width: 600px) {
    .items {
        grid-template-columns: 1fr;
    }
}

/* APP WRAPPER */
.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3 {
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

p {
  color: var(--muted);
  line-height: 1.5;
}

strong, b {
  font-weight: 600;
  color: var(--text);
}

.small {
  font-size:smaller;
}

/* ========== CARD (Glass iOS Style) ========== */
.card {
  background: var(--card);
  backdrop-filter: var(--blur);

  border-radius: 18px;
  padding: 1.2rem;
  margin-bottom: 1rem;

  border: 1px solid var(--border);

  box-shadow:
    0 8px 20px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

/* ========== DASHBOARD ========== */


  .dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  @media (min-width: 600px) {
    .dashboard {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .card {
    position: relative;
    padding: 24px;
    border-radius: 16px;
    color: white;
    text-decoration: none;
    overflow: hidden;
    display: block;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .card:active {
    transform: scale(0.97);
  }

  .card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }

  .icon {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .title {
    font-size: 1.2rem;
    font-weight: 600;
  }

  .subtitle {
    font-size: 0.9rem;
    opacity: 0.85;
  }

  /* Gradient themes */
  .card1 {
    background: linear-gradient(135deg, #ff6a6a, #e63946);
  }

  .card2 {
    background: linear-gradient(135deg, #4dabf7, #1c7ed6);
  }

  .card3 {
    background: linear-gradient(135deg, #51cf66, #2f9e44);
  }

  .card4 {
    background: linear-gradient(135deg, #e8e11f, #e8cd1d);
  }

  .card5 {
    background: linear-gradient(135deg, #ff3ba3, #ff1a63);
  }

  /* Ripple effect */
  .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 600ms linear;
    background: rgba(255, 255, 255, 0.5);
  }

  @keyframes ripple {
    to {
      transform: scale(4);
      opacity: 0;
    }
  }

/*BLOCKED DATES LIST*/

.remove-btn {
margin: 8px;

}

.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange, .flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus, .flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover, .flatpickr-day.selected.prevMonthDay, .flatpickr-day.startRange.prevMonthDay, .flatpickr-day.endRange.prevMonthDay, .flatpickr-day.selected.nextMonthDay, .flatpickr-day.startRange.nextMonthDay, .flatpickr-day.endRange.nextMonthDay {
  background: var(--error) !important;
}
#blocked_dates_list {
  list-style: none;
  padding: 0;
  color: var(--text);
}



/* ========== FORM ========== */
.interactive-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* INPUTS */
.interactive-form input,
.interactive-form select,
.interactive-form textarea {
  padding: 0.85rem;

  border-radius: 12px;
  border: 1px solid var(--border);

  background: rgba(255,255,255,0.85);
  backdrop-filter: var(--blur);

  font-size: 0.95rem;
  color: var(--text);

  transition: all 0.2s ease;
}

/* FOCUS */
.interactive-form input:focus,
.interactive-form select:focus,
.interactive-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  outline: none;
}

/* LABEL */
label {
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

/* VALIDATION */
input:invalid {
  border-color: var(--error);
}

input:valid {
  border-color: var(--success);
}
input.product-qty {
  width: 80px !important;
}

/* ========== BUTTONS ========== */
button, .button-primary, .button-primary a  {
  padding: 0.85rem;
  border-radius: 14px;
  border: none;
  background: var(--primary);
  color: #fff;

  font-weight: 600;
  font-size: 0.95rem;

  transition: all 0.15s ease;
}

button:hover, .button-primary:hover  {
  background: var(--success);
}

/* subtle press effect */
button:active {
  transform: scale(0.97);
  opacity: 0.9;
}

/* SECONDARY */
.button-secondary {
  background: rgba(255,255,255,0.7);
  color: var(--primary);
  border: 1px solid var(--border);
}

/* ========== LIST ========== */
.card-list li {
  padding: 0.75rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
color: var(--text);
  background: rgba(255,255,255,0.6);
  backdrop-filter: var(--blur);

  border: 1px solid var(--border);

  display: flex;
  justify-content: space-between;
  align-items: center;

  transition: background 0.2s ease;
}

.card-list li:active {
  background: rgba(0,0,0,0.05);
}

/* ========== TABLE ========== */
table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  text-align: left;
  padding: 10px;
  background-color: var(--bg);
}

th, td {
  padding: 10px;
}

th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
}

td {
  border-top: 1px solid var(--border);
}


/* ========== ALERTS ========== */
.message {
  padding: 10px;
  border-radius: 12px;
  font-size: 0.9rem;
  backdrop-filter: var(--blur);
}

.success {
  background: rgba(52,199,89,0.15);
  color: #1e7e34;
}

.error {
  background: rgba(255,59,48,0.15);
  color: #a52820;
}

/* ========== STATUS ========== */
.status-pending { color: #ff9f0a; font-weight: 500; }
.status-collected { color: #0a84ff; font-weight: 500; }
.status-washing { color: #bf5af2; font-weight: 500; }
.status-delivered { color: #34c759; font-weight: 500; }

/* ========== NAVBAR (iOS Style) ========== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 80px;

  display: flex;
  justify-content: space-around;
  align-items: center;

  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px);

  border-top: 1px solid var(--border);
}

/* NAV ITEM */
.nav-item {
  flex: 1;
  text-align: center;

  color: var(--muted);
  font-size: 12px;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-decoration: none;
  border: none;
}

/* ICON */
.nav-item .icon {
  font-size: 20px;
  margin-bottom: 3px;
}

/* ACTIVE */
.nav-item.active {
  color: var(--primary);
}

/* TAP */
.nav-item:active {
  opacity: 0.6;
}


/* ========== PAGINATION ========== */
.pagination a,
.pagination strong {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.pagination a {
  background: rgba(255,255,255,0.6);
  color: var(--text);
}

.pagination strong {
  background: var(--primary);
  color: #fff;
}

/* ========== MOBILE TWEAKS ========== */
@media (max-width: 768px) {
  .app {
    padding: 0.7rem;
  }
}