
.eviz-calendar-wrap{background:#fff;padding:16px;border-radius:8px}
.eviz-toolbar{display:flex;gap:8px;margin-bottom:10px}
.eviz-weekdays {display:grid;grid-template-columns:repeat(7,1fr)}
.evizGridMonthly{display:grid;grid-template-columns:repeat(7,1fr); gap:1px;background:#ddd;border:1px solid #ddd;}
.day{background:#fff;min-height:110px;padding:6px}
.day.muted{background:#fafafa}
.event{margin-top:6px;padding:4px;font-size:12px;border-left:4px solid #c98b2c;cursor:pointer}
.birthday{border-color:#ff69b4}
.anniversary{border-color:#4caf50}
.eviz-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.6)}
.eviz-modal-box{background:#fff;max-width:420px;margin:10% auto;padding:20px;border-radius:6px}
.no-results {font-size:14px;color:#ff0000;padding:12px;text-align:left}


/* ROW-BASED WEEK / DAY VIEW */

.eviz-day-row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
  border-left: 4px solid #e5e7eb;
  padding-left: 12px;
}

.eviz-day-label {
  width: 180px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: #111;
}

.eviz-day-label span {
  display: block;
  font-size: 20px;
  font-weight: 700;
}

.eviz-day-events {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eviz-day-single .eviz-day-label {
  width: 180px;
  text-align: center;
}

.eviz-day-events .event {
  background: #f8fafc;
  border-left: 3px solid #3b82f6;
  padding: 8px 10px;
  cursor: pointer;
}

.event-time {
  font-size: 13px;
  color: #555;
  margin-right: 8px;
}

.event-title {
  font-weight: 500;
}

.no-events {
  font-size: 13px;
  color: #999;
}


/* =========================
   EVENT COLOR RULES (v1.7.6)
   ========================= */

/* Default event */
.event.event {
  border-left-color: #3b82f6; /* blue */
  background: #eff6ff;
}

/* Birthday */
.event.birthday {
  border-left-color: #ec4899; /* pink */
  background: #fdf2f8;
}

/* Anniversary */
.event.anniversary {
  border-left-color: #22c55e; /* green */
  background: #f0fdf4;
}

/* Popup accent (subtle) */
.eviz-modal-box {
  border-top: 4px solid #3b82f6;
}

.event.birthday ~ .eviz-modal-box {
  border-top-color: #ec4899;
}

.event.anniversary ~ .eviz-modal-box {
  border-top-color: #22c55e;
}

.eviz-modal-box.event {
  border-top-color: #3b82f6;
}
.eviz-modal-box.birthday {
  border-top-color: #ec4899;
}
.eviz-modal-box.anniversary {
  border-top-color: #22c55e;
}

/* =========================
   TODAY HIGHLIGHT (v1.7.7)
   ========================= */

/* Month cell */
.day.is-today {
  background: #eff6ff;
}

/* Week row */
.eviz-day-row.is-today {
  background: #f8fafc;
  border-left: 4px solid #2563eb;
  padding-left: 12px;
}

/* Day view header emphasis */
.eviz-day-single.is-today .eviz-day-label {
  color: #2563eb;
}

/* =========================
   INTERACTION POLISH (v1.7.8)
   ========================= */

/* Hover */
.event:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Keyboard focus */
.event:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Smooth transitions */
.event {
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

/* Better tap target on mobile */
@media (max-width: 768px) {
  .event {
    padding: 10px 12px;
  }
}

/* Toolbar Today emphasis */
.eviz-month-header .today {
  font-weight: 600;
  color: #2563eb;
}

/* Modal animation */
.eviz-modal {
  opacity: 0;
  transition: opacity .15s ease;
}

.eviz-modal[style*="display: block"] {
  opacity: 1;
}

.eviz-modal-box {
  transform: scale(.98);
  transition: transform .15s ease;
}

.eviz-modal[style*="display: block"] .eviz-modal-box {
  transform: scale(1);
}

/* =========================
   EVIZ MODAL – PROFESSIONAL UI
   ========================= */

.eviz-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55); /* dark slate overlay */
  display: none;
  z-index: 9999;
}

.eviz-modal-box {
  background: #ffffff;
  max-width: 520px;
  width: calc(100% - 32px);
  margin: 8vh auto;
  padding: 24px 26px 26px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  position: relative;
  font-family: inherit;
}

/* Close button */
.eviz-modal-box .close {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 22px;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  transition: color .15s ease;
}

.eviz-modal-box .close:hover {
  color: #0f172a;
}

/* Title */
#mTitle {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #0f172a;
}

/* Meta (date, time, recurrence) */
#mMeta {
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 12px;
}

#mMeta strong {
  color: #0f172a;
  font-weight: 600;
}

/* Description */
#mDesc {
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 18px;
}

/* Action links */
#mLinks {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#mLinks a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  transition: background .15s ease, transform .1s ease;
}

#mLinks a:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

/* Mobile spacing */
@media (max-width: 640px) {
  .eviz-modal-box {
    margin: 12vh auto;
    padding: 20px;
  }
}

/* =========================
   TOP HEADER & TOOLBAR (PRO UI)
   ========================= */

/* Page title */
.eviz-calendar-wrap > h2,
.eviz-calendar-wrap h1,
.eviz-calendar-wrap h2:first-child {
  font-size: 26px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 14px;
}

/* Toolbar container */
.eviz-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

/* Search input */
#evizSearch {
  flex: 1;
  max-width: 280px;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  transition: border .15s ease, box-shadow .15s ease;
}

#evizSearch:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
  outline: none;
}

/* Find Events button */
.eviz-toolbar .find {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}

.eviz-toolbar .find:hover {
  background: #1e40af;
  transform: translateY(-1px);
}

/* View dropdown */
#evizView {
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  cursor: pointer;
}

#evizView:focus {
  border-color: #2563eb;
  outline: none;
}

/* =========================
   MONTH / WEEK / DAY HEADER
   ========================= */

.eviz-month-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 12px;
}

/* Prev / Next buttons */
.eviz-month-header button {
  background: #f1f5f9;
  border: 1px solid #d1d5db;
  color: #1e3a8a;
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s ease;
}

.eviz-month-header button:hover {
  background: #e0e7ff;
}

/* Today button */
.eviz-month-header .today {
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  background: #eff6ff;
  transition: background .15s ease;
}

.eviz-month-header .today:hover {
  background: #dbeafe;
}

/* Month title */
#evizTitle {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-left: 8px;
}

/* =========================
   TOP BAR – SINGLE ROW LAYOUT
   ========================= */

.eviz-top-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

/* LEFT: Month navigation */
.eviz-month-header {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

/* Month title */
#evizTitle {
  margin: 0;
  padding: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
  color: #111827;
}

/* Arrows */
.eviz-month-header button {
  background: #f1f5f9;
  border: 1px solid #d1d5db;
  color: #1e3a8a;
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s ease;
}

.eviz-month-header button:hover {
  background: #e0e7ff;
}

/* Today button */
.eviz-month-header .today {
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  padding: 6px 10px;
  border-radius: 6px;
  background: #eff6ff;
  cursor: pointer;
  transition: background .15s ease;
}

.eviz-month-header .today:hover {
  background: #dbeafe;
}

/* RIGHT: Search + actions */
.eviz-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Search input */
#evizSearch {
  width: 260px;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

#evizSearch:focus {
  border-color: #2563eb;
  outline: none;
}

/* Find Events button */
.eviz-toolbar .find {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}

.eviz-toolbar .find:hover {
  background: #1e40af;
  transform: translateY(-1px);
}

/* View dropdown */
#evizView {
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  cursor: pointer;
}

/* =========================
   SPACING BELOW HEADER
   ========================= */

.eviz-weekdays {
  margin-top: 24px;
  background-color: #eee;
  border:1px solid #ddd;
}
.eviz-weekdays div {
  padding: 8px;
}


/* =========================
   MOBILE FALLBACK
   ========================= */

@media (max-width: 768px) {
  .eviz-top-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .eviz-toolbar {
    flex-wrap: wrap;
  }

  #evizSearch {
    width: 100%;
  }
}
