/* ===== FASHION HOUSE PALETTE ===== */
:root {
  --violet: #b743ec;
  --dark-gray: #111111;
  --peach: #fddaaf;
  --forest: #2c8d5a;
  --lime: #ace758;
  --background: #0e0a14;
  --white: #ffffff;
  --black: #000000;
  --accent-glow: 0 0 30px rgba(183, 67, 236, 0.9);
  --shadow-sharp: 10px 10px 0 rgba(44, 141, 90, 0.9);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ===== DRAMATIC BACKGROUND ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(45deg, var(--background) 0%, transparent 70%),
    radial-gradient(circle at 80% 20%, var(--violet) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, var(--forest) 0%, transparent 40%);
  opacity: 0.25;
  z-index: -1;
}

/* ===== MAIN LAYOUT – ASYMMETRYCZNY PODZIAŁ ===== */
.app-wrapper {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 0;
  min-height: calc(100vh - 80px);
}

/* ===== LEWA STRONA – KALENDARZ Z CIĘCIEM ===== */
.calendar-section {
  background: var(--black);
  /*  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); */
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calendar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

#logo {
  width: 96px;
  border-radius: 10px;
}

.brand h1 {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px var(--violet);
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.7rem;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--lime);
  margin-top: 0.5rem;
}

.header-right {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.month-nav {
  display: grid;
  grid-template-columns: 0.1fr 1fr 0.1fr;
  grid-template-rows: 1fr;
  text-align: center;
  align-items: first baseline;
  gap: 1rem;
  background: transparent;
  border: 2px solid var(--violet);
  width: 400px;
  padding: 0.3rem 1.5rem;
}

.nav-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--violet);
  cursor: pointer;
  transition: 0.2s;
}

.nav-btn:hover {
  color: var(--lime);
}

.current-month {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--peach);
}

.admin-area .btn {
  padding: 0.6rem 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: var(--lime);
  color: var(--background);
  border: none;
  /*  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); */
  cursor: pointer;
}

.admin-area .btn:hover {
  background: var(--violet);
  color: white;
}

.row-flex {
  display: flex;
  justify-content: space-around;
}

#adminLoginMessage {
  margin: 10px;
  text-align: center;
}

/* ===== DNI TYGODNIA – PIONOWE ===== */
.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 1.5rem;
  color: var(--peach);
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 5px;
}

.weekdays span {
  text-align: center;
}

/* ===== SIATKA DNI – KRĘGI Z OSTRYMI KONTURAMI ===== */
.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  flex: 1;
}

.day-cell {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 3px solid transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  color: var(--white);
}

.day-cell:hover {
  border-color: var(--violet);
  box-shadow: 0 0 25px rgba(183, 67, 236, 0.8);
  transform: scale(1.1);
}

.day-cell.empty {
  background: transparent;
  border: none;
  pointer-events: none;
}

.day-cell.today {
  background: var(--forest);
  border-color: var(--lime);
  box-shadow: 0 0 30px rgba(172, 231, 88, 0.7);
  font-weight: 900;
  color: var(--background);
}

.day-cell.selected {
  background: var(--violet);
  border-color: var(--peach);
  border-width: 5px;
  box-shadow: 0 0 40px rgba(183, 67, 236, 1);
  transform: scale(1.15);
  color: white;
}

.day-cell.has-event::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 8px;
  height: 8px;
  background: var(--lime);
  transform: rotate(45deg);
}

/* ===== PRAWA STRONA – PANEL Z PRZECIĘCIAMI ===== */
.events-section {
  background: var(--dark-gray);
  padding: 3rem 2.5rem 3rem 4rem;
  display: flex;
  align-items: center;
}

.events-panel {
  width: 100%;
  background: rgba(14, 10, 20, 0.85);
  backdrop-filter: blur(10px);
  border: 2px solid var(--lime);
  padding: 2rem;
  box-shadow: 15px 15px 0 var(--violet);
  display: flex;
  flex-direction: column;
  min-height: 60vh;
}

.panel-header h2 {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--lime);
  border-bottom: 4px double var(--peach);
  padding-bottom: 0.8rem;
  margin-bottom: 2rem;
}

.events-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-card {
  background: transparent;
  border-left: 6px solid var(--lime);
  padding: 0.8rem 1rem;
  position: relative;
  transition: 0.2s;
}

.event-card:hover {
  background: rgba(172, 231, 88, 0.1);
  transform: translateX(10px);
}

.event-title {
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-time {
  background: var(--peach);
  color: var(--background);
  padding: 0.2rem 0.8rem;
  font-size: 0.65rem;
  font-weight: 700;
}

.event-location {
  font-size: 0.75rem;
  color: var(--lime);
  font-weight: 600;
  margin: 0.3rem 0;
  letter-spacing: 2px;
}

.event-desc {
  font-size: 0.7rem;
  color: #ccc;
  font-style: italic;
}

.no-events {
  text-align: center;
  color: var(--peach);
  font-size: 1rem;
  letter-spacing: 2px;
  opacity: 0.6;
}

/* ===== PRZYCISKI AKCJI – GEOMETRYCZNE ===== */
.action-buttons {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn {
  padding: 0.8rem 1.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-primary {
  background: var(--lime);
  color: var(--background);
}

.btn-primary:hover {
  background: var(--violet);
  color: white;
  box-shadow: 0 0 30px var(--violet);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--peach);
  color: var(--peach);
}

.btn-secondary:hover {
  background: var(--peach);
  color: var(--background);
}

.btn-danger {
  background: transparent;
  border: 2px solid #ff4d4d;
  color: #ff4d4d;
}

.btn-danger:hover {
  background: #ff4d4d;
  color: white;
  box-shadow: 0 0 20px #ff4d4d;
}

/* ===== STOPKA – MOCNY AKCENT ===== */
.footer {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-gray);
  color: var(--peach);
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  border-top: 2px solid var(--lime);
}

.footer a {
  color: var(--lime);
  text-decoration: none;
  font-weight: 700;
  margin-left: 0.5rem;
}

/* ===== MODAL – CZARNY Z OSTRYMI KRAWĘDZIAMI ===== */
.modal,
.selector-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active,
.selector-overlay.active {
  display: flex;
}

.modal-card,
.selector-box {
  background: var(--background);
  border: 2px solid var(--violet);
  width: min(450px, 90%);
  padding: 2.5rem;
  box-shadow: 20px 20px 0 var(--lime);
}

.modal-card h3,
.selector-box h4 {
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--lime);
  margin-bottom: 2rem;
}

.input-field {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  background: transparent;
  border: 2px solid var(--violet);
  color: white;
  font-size: 0.9rem;
  outline: none;
}

.input-field:focus {
  border-color: var(--lime);
  box-shadow: 0 0 15px var(--lime);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-top: 2rem;
}

.selector-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
}

.selector-item {
  padding: 0.7rem 1rem;
  border: 1px solid var(--violet);
  cursor: pointer;
}

.selector-item:hover {
  background: var(--violet);
  color: white;
}

/* ===== SCROLLBAR DRAMATYCZNY ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--lime);
  border-radius: 4px;
}

/* ===== RESPONSYWNY POKAZ MODY ===== */
@media (max-width: 900px) {
  .app-wrapper {
    grid-template-columns: 1fr;
  }

  .calendar-section,
  .events-section {
    padding: 2rem;
  }

  .events-section {
    background: var(--black);
  }

  .events-panel {
    box-shadow: none;
  }
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
