/* System rezerwacji warsztatów — styl przeniesiony 1:1 z rezerwacja.php,
   warsztaty-glowne.php i admin_panel.php, ograniczony do .rez-scope,
   aby nie kolidował ze stylami szablonu strony. */
.rez-scope {
  --primary-color: #607D3B;
  --secondary-color: #F5F5DC;
  --accent-color: #E67E22;
  --text-color: #3d405b;
  --error-color: #c0392b;
  --success-color: #27ae60;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
  font-family: var(--font-body);
  background-color: var(--secondary-color);
  color: var(--text-color);
  line-height: normal;
  min-height: 100vh;
}
.rez-scope * { box-sizing: border-box; }
.rez-scope h1, .rez-scope h2, .rez-scope h3 { font-family: var(--font-heading); text-align: center; color: var(--primary-color); margin-top: 0; text-transform: none; }
.rez-scope a { text-decoration: none; }

/* ——— rezerwacja ——— */
.rez-scope .main-container { display: flex; min-height: 100vh; }
.rez-scope .poster-column { flex: 1 1 40%; background-color: #000; position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px; }
.rez-scope .poster-column img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rez-scope .content-column { flex: 1 1 60%; padding: 40px; background-color: #fff; box-shadow: -5px 0 15px rgba(0,0,0,0.1); }
@media (max-width: 992px) {
  .rez-scope .main-container { flex-direction: column; }
  .rez-scope .poster-column { position: static; height: auto; flex-basis: auto; padding: 0; }
  .rez-scope .poster-column img { aspect-ratio: 16/9; }
  .rez-scope .content-column { padding: 20px; }
}
.rez-scope .workshop-header { text-align: center; margin-bottom: 25px; }
.rez-scope .workshop-header p { margin: 0; font-size: 1em; text-transform: uppercase; letter-spacing: 1px; color: #777; }
.rez-scope .workshop-header h1 { margin: 5px 0 0 0; font-size: 3em; }
.rez-scope .calendar-section, .rez-scope .form-section-content { background-color: #f9f9f9; padding: 20px; border-radius: 12px; margin-bottom: 30px; }
.rez-scope .message { padding: 15px; margin-bottom: 20px; border-radius: 8px; font-weight: bold; text-align: center; width: 100%; }
.rez-scope .message.success { background-color: #e8f8f5; color: var(--success-color); border: 1px solid var(--success-color); }
.rez-scope .message.error { background-color: #fdedec; color: var(--error-color); border: 1px solid var(--error-color); }
.rez-scope .calendar { border-collapse: collapse; width: 100%; }
.rez-scope .calendar th, .rez-scope .calendar td { border: 1px solid #ddd; padding: 0; text-align: center; height: 56px; vertical-align: top; }
.rez-scope .calendar-nav { text-align: center; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; }
.rez-scope .calendar-nav button { background-color: var(--primary-color); color: #fff; border: none; padding: 5px 10px; border-radius: 3px; cursor: pointer; font-family: var(--font-body); }
.rez-scope .calendar-nav button:disabled { visibility: hidden; }
.rez-scope .calendar td.past, .rez-scope .calendar td.weekend { background-color: #eee; color: #999; }
.rez-scope .calendar td.selected-day-cell { background-color: #d5e8d4 !important; border: 2px solid var(--primary-color); }
.rez-scope .calendar td span.day-link { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding: 5px 3px; font-size: 1em; min-height: 56px; line-height: 1.2; }
.rez-scope .calendar td.free span.day-link { color: #3c763d; font-weight: bold; cursor: pointer; }
.rez-scope .calendar td.booked span.day-link { color: #a94442; cursor: not-allowed; background-color: #f8d7da; }
.rez-scope .calendar td span.day-status { display: block; font-size: 0.68em; font-weight: normal; line-height: 1.1; width: 100%; word-break: break-word; }
.rez-scope #date-selection-prompt { text-align: center; font-weight: bold; color: var(--error-color); padding: 20px; border: 2px dashed #e74c3c; border-radius: 8px; }
.rez-scope .form-group { margin-bottom: 18px; }
.rez-scope label { display: block; margin-bottom: 6px; font-weight: bold; font-size: 0.95em; }
.rez-scope input, .rez-scope select, .rez-scope textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; font-family: var(--font-body); font-size: 1em; }
.rez-scope .radio-group label { display: inline-flex; align-items: center; margin-right: 20px; font-weight: normal; cursor: pointer; }
.rez-scope input[type="radio"] { width: auto; margin-right: 8px; }
.rez-scope button[type="submit"] { background-color: var(--accent-color); color: #fff; padding: 14px 20px; border: none; border-radius: 8px; cursor: pointer; width: 100%; font-size: 1.1em; font-weight: bold; text-transform: uppercase; }
.rez-scope button[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; }

/* ——— lista warsztatów ——— */
.rez-scope .header { background-color: var(--primary-color); color: #fff; padding: 40px 20px; text-align: center; background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="199" viewBox="0 0 100 199"%3E%3Cg fill="%23ffffff" fill-opacity="0.05"%3E%3Cpath d="M0 199V0h1v1.99L100 199h-1.12L1 4.22V199H0zM100 2h-.12l-1-2H100v2z"%3E%3C/path%3E%3C/g%3E%3C/svg%3E'); }
.rez-scope .header h1 { font-family: var(--font-heading); margin: 0; font-size: 3em; letter-spacing: 1px; color: #fff; }
.rez-scope .header p { font-size: 1.2em; margin-top: 10px; opacity: 0.9; }
.rez-scope .container { max-width: 1400px; margin: 40px auto; padding: 0 20px; }
.rez-scope .pricing-info { background-color: #fff; border-radius: 12px; padding: 25px 30px; margin-bottom: 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); border-left: 5px solid var(--accent-color); text-align: left; }
.rez-scope .pricing-info h2 { text-align: left; margin-bottom: 15px; }
.rez-scope .pricing-info p { margin: 10px 0; font-size: 1.1em; line-height: 1.6; }
.rez-scope .pricing-info .price { font-weight: bold; font-size: 1.2em; color: var(--accent-color); }
.rez-scope .section-divider { text-align: center; font-family: var(--font-heading); font-size: 2.2em; color: var(--text-color); margin: 50px 0 30px 0; position: relative; }
.rez-scope .section-divider::before, .rez-scope .section-divider::after { content: ''; display: inline-block; width: 80px; height: 2px; background-color: var(--primary-color); opacity: 0.5; vertical-align: middle; margin: 0 20px; }
.rez-scope .posters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
@media (max-width: 1200px) { .rez-scope .posters-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .rez-scope .posters-grid { grid-template-columns: 1fr; } }
.rez-scope .poster-card { background-color: #fff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); color: inherit; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #e0e0e0; }
.rez-scope .poster-card:hover { transform: translateY(-8px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.rez-scope .poster-image-wrapper { aspect-ratio: 4 / 3; background-color: #f7f7f7; border-radius: 12px 12px 0 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rez-scope .poster-card img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rez-scope .poster-content { padding: 20px 25px; flex-grow: 1; display: flex; flex-direction: column; }
.rez-scope .poster-content h2 { margin-bottom: 15px; font-size: 1.6em; }
.rez-scope .poster-content p { font-size: 1em; line-height: 1.6; flex-grow: 1; margin-bottom: 20px; }
.rez-scope .poster-cta { display: inline-block; background-color: var(--accent-color); color: #fff; padding: 12px 22px; text-align: center; border-radius: 8px; font-weight: bold; text-transform: uppercase; font-size: 0.9em; letter-spacing: 0.5px; margin-top: auto; align-self: center; transition: background-color 0.3s ease; }
.rez-scope .poster-card:hover .poster-cta { background-color: #d35400; }
.rez-scope .poster-card.special-offer { border-color: var(--primary-color); border-width: 2px; }
.rez-scope .poster-card.special-offer .poster-cta { background-color: var(--primary-color); }
.rez-scope .poster-card.special-offer:hover .poster-cta { background-color: #4a612c; }
.rez-scope .footer { text-align: center; padding: 25px 0; margin-top: 50px; background-color: #3d405b; color: #f4f4f4; font-size: 0.9em; }

/* ——— panel administracyjny ——— */
.rez-scope.admin-page { padding: 20px; }
.rez-scope .admin-container { max-width: 1200px; margin: auto; background-color: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.rez-scope .admin-container h1 { margin-bottom: 20px; }
.rez-scope .table-wrapper { overflow-x: auto; }
.rez-scope .admin-container table { border-collapse: collapse; width: 100%; margin-top: 20px; font-size: 0.95em; }
.rez-scope .admin-container th, .rez-scope .admin-container td { border: 1px solid #ddd; padding: 12px; text-align: left; vertical-align: middle; }
.rez-scope .admin-container th { background-color: #f8f9fa; font-weight: bold; }
.rez-scope .admin-container tr:nth-child(even) { background-color: #f9f9f9; }
.rez-scope .past-booking td { color: #888; background-color: #f1f1f1; font-style: italic; }
.rez-scope .actions button { display: inline-block; padding: 6px 12px; margin: 2px; border-radius: 5px; font-size: 0.9em; cursor: pointer; font-family: var(--font-body); width: auto; }
.rez-scope .actions button.delete-btn { color: var(--error-color); border: 1px solid var(--error-color); background-color: #fff; }
.rez-scope .actions button.delete-btn:hover { background-color: var(--error-color); color: #fff; }
.rez-scope td.uwagi-col { max-width: 250px; white-space: pre-wrap; word-wrap: break-word; }
.rez-scope .login-container { max-width: 400px; text-align: center; margin: 50px auto; background-color: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.rez-scope .login-container input[type="password"] { font-size: 1.5em; padding: 10px; text-align: center; letter-spacing: 5px; border-radius: 8px; border: 1px solid #ccc; }
.rez-scope .login-container button { background-color: var(--primary-color); color: #fff; border: none; padding: 12px 30px; font-size: 1.1em; border-radius: 8px; cursor: pointer; margin-top: 15px; width: auto; }
.rez-scope .logout-link { display: block; text-align: right; margin-bottom: 15px; }
.rez-scope .logout-link button { background: none; border: none; color: var(--primary-color); cursor: pointer; text-decoration: underline; width: auto; font-family: var(--font-body); }
.rez-scope .login-container h1 { font-size: 2em; line-height: 1.2; }
.rez-scope .admin-container h1 { font-size: 2em; line-height: 1.2; }
.rez-scope h2 { font-size: 1.5em; letter-spacing: normal; line-height: 1.2; }
.rez-scope h3 { font-size: 1.17em; letter-spacing: normal; line-height: 1.2; }
.rez-scope .header h1 { font-size: 3em; }
.rez-scope .workshop-header h1 { font-size: 3em; line-height: 1.1; }
.rez-scope .section-divider { font-size: 2.2em; }
.rez-scope .poster-content h2 { font-size: 1.6em; }
html body { background-color: #fdfaf5; }

.rez-scope .seasons-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 50px; align-items: start; }
.rez-scope .season-block .season-title { font-size: 1.7em; margin: 30px 0 20px 0; }
.rez-scope .season-block .season-title::before, .rez-scope .season-block .season-title::after { width: 40px; margin: 0 12px; }
.rez-scope .season-posters { grid-template-columns: repeat(2, 1fr) !important; gap: 20px; }
@media (max-width: 900px) { .rez-scope .seasons-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .rez-scope .season-posters { grid-template-columns: 1fr !important; } }

.rez-scope .admin-container .calendar td.booked span.day-link { cursor: pointer; }

/* Akcja: wysyłka podziękowania z panelu admina */
.admin-container .actions .thanks-btn {
  background: #3f6212;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  margin-top: 6px;
}
.admin-container .actions .thanks-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
