@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap');

:root{
  --yellow:#ffd21a;
  --yellow-2:#ffe36b;
  --yellow-soft:#fff8d8;
  --red:#d71920;
  --red-dark:#a80f15;
  --orange:#f28c28;
  --orange-dark:#d96f0b;
  --ink:#171717;
  --muted:#6b7280;
  --paper:#ffffff;
  --page:#ffffff;
  --line:#e6e1d5;
  --line-strong:#d7cfbd;
  --radius:20px;
  --shadow:0 12px 34px rgba(23,23,23,.09);
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{min-height:100%;font-family:Manrope,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--page)}
body{padding:30px}
button,input{font:inherit}
a{color:inherit}

.container{max-width:1580px;margin:0 auto}
.header-actions{display:flex;justify-content:space-between;align-items:center;gap:24px;background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:22px 26px;box-shadow:var(--shadow);margin-bottom:24px}
.header-title{display:flex;align-items:center;gap:14px}.header-title .icon{width:48px;height:48px;border-radius:14px;background:var(--yellow);color:var(--red);display:grid;place-items:center;font-size:22px;box-shadow:inset 0 -3px 0 rgba(0,0,0,.08)}
.header-actions h1{font-size:26px;line-height:1.2;font-weight:800}.header-actions p{margin-top:5px;color:var(--muted);font-size:14px}.user-info{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:14px}
.admin-sections{display:grid;grid-template-columns:360px minmax(0,1fr);gap:24px;align-items:start}.form-card,.table-card{background:var(--paper);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}
.card-inner{padding:26px}.card-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px}h2{font-size:20px;font-weight:800}.badge{font-size:12px;font-weight:700;color:var(--muted);background:var(--yellow-soft);border:1px solid #f0df91;padding:7px 10px;border-radius:999px}
.form-crud{display:flex;flex-direction:column;gap:10px}.form-crud label{font-size:13px;font-weight:700;color:#4b5563;margin-top:6px}.form-crud input{width:100%;height:48px;padding:0 14px;border:1px solid var(--line-strong);border-radius:12px;background:#fff;color:var(--ink);outline:none;transition:.18s}.form-crud input:focus{border-color:var(--orange);box-shadow:0 0 0 4px rgba(245,158,11,.15)}
.form-actions{display:flex;gap:10px;margin-top:11px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 17px;border:1px solid transparent;border-radius:11px;text-decoration:none;cursor:pointer;font-size:14px;font-weight:800;transition:.18s}.btn-primary{background:var(--red);color:#fff}.btn-primary:hover{background:var(--red-dark);transform:translateY(-1px)}.btn-secondary{background:var(--yellow);color:var(--ink);border-color:#e7bf00}.btn-secondary:hover{background:var(--yellow-2)}.btn-logout{background:#fff;color:var(--red);border-color:#f3b9bc}.btn-logout:hover{background:#fff1f1}
.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.table-toolbar .hint{font-size:13px;color:var(--muted)}.search-box{position:relative;max-width:300px;width:100%}.search-box input{width:100%;height:44px;border:1px solid var(--line-strong);border-radius:11px;padding:0 13px 0 38px;outline:none}.search-box span{position:absolute;left:13px;top:11px;color:#9ca3af}
.table-responsive{overflow:auto;border:1px solid var(--line-strong);border-radius:14px;background:#fff;max-height:70vh}.wydarzenia-table{width:100%;min-width:980px;border-collapse:separate;border-spacing:0;font-size:15px}.wydarzenia-table th{position:sticky;top:0;z-index:2;background:var(--yellow);color:#171717;height:52px;padding:0 14px;text-align:left;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.055em;border-bottom:2px solid #d8b600;border-right:1px solid rgba(0,0,0,.1);white-space:nowrap}.wydarzenia-table th:first-child{width:64px;text-align:center}.wydarzenia-table td{height:52px;padding:9px 14px;background:#fff;border-right:1px solid var(--line);border-bottom:1px solid var(--line);vertical-align:middle}.wydarzenia-table tr:nth-child(even) td{background:#fffdf6}.wydarzenia-table tbody tr:hover td{background:#fff1a8}.wydarzenia-table td:first-child{text-align:center;color:#6b6252;font-variant-numeric:tabular-nums;background:#fff9df;font-weight:800}.wydarzenia-table td:nth-child(2){font-weight:800}.action-buttons{white-space:nowrap}.action-link{color:var(--red);text-decoration:none;font-weight:800}.action-link:hover{text-decoration:underline}.btn-edit,.btn-delete{display:inline-flex;align-items:center;height:34px;padding:0 11px;border-radius:9px;font-size:13px;font-weight:800}.btn-edit{background:var(--yellow-soft);color:var(--red);border:1px solid #efd36a}.btn-delete{background:#fff1f1;color:var(--red);border:1px solid #f3b9bc;cursor:pointer}.btn-edit:hover{background:#ffef9e}.btn-delete:hover{background:#ffe1e1}
.message{padding:13px 16px;border-radius:12px;margin-bottom:18px;font-size:14px;font-weight:700;border:1px solid}.message.success{background:#f0fdf4;color:#166534;border-color:#bbf7d0}.message.error{background:#fff1f1;color:#991b1b;border-color:#fecaca}

/* Public embedded tables — large, modern spreadsheet look */
.embed-page{margin:0;padding:0;background:transparent;overflow:hidden}.embed-wrap{width:100%;padding:4px}.excel-shell{width:100%;border:1px solid #e7e7e7;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(17,24,39,.07)}
.excel-top{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 18px;background:#fff;border-bottom:1px solid #ececec;box-shadow:0 2px 8px rgba(17,24,39,.04)}
.excel-title{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:800;letter-spacing:-.01em;color:#1f2937}.excel-title .sheet-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:#fff4e8;color:var(--orange);font-size:15px;border:1px solid #ffd8b2}.excel-status{font-size:11px;font-weight:800;color:#7a7a7a;background:#fafafa;border:1px solid #e9e9e9;padding:7px 10px;border-radius:999px}
.excel-scroll{overflow:auto;-webkit-overflow-scrolling:touch}.excel-table{width:100%;min-width:900px;border-collapse:separate;border-spacing:0;font-family:Manrope,system-ui,sans-serif;font-size:15px}.excel-table th{position:sticky;top:0;z-index:1;height:50px;background:#fafafa;color:#4b5563;padding:0 14px;border-right:1px solid #e8e8e8;border-bottom:2px solid #f28c28;text-align:left;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.055em;white-space:nowrap}.excel-table td{height:52px;padding:9px 14px;border-right:1px solid #eeeeee;border-bottom:1px solid #eeeeee;background:#fff;vertical-align:middle;line-height:1.35}.excel-table tbody tr:nth-child(even) td{background:#fcfcfc}.excel-table tbody tr:hover td{background:#fff8ef}.excel-table .row-number{width:58px;text-align:center;color:#665b3e;background:#fafafa!important;font-variant-numeric:tabular-nums;font-weight:800}.excel-table .center{text-align:center!important}.excel-table .event-name{font-weight:800;color:var(--ink)}.excel-table .date{white-space:nowrap;color:#4b5563;font-weight:700}.excel-table .place{color:#4b5563}.sheet-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:0 13px;border-radius:9px;text-decoration:none;font-size:12px;font-weight:800;white-space:nowrap;border:1px solid}.sheet-btn.primary,.sheet-btn.neutral{background:var(--orange);color:#fff;border-color:var(--orange)}.sheet-btn:hover{background:var(--orange-dark);border-color:var(--orange-dark);transform:translateY(-1px);box-shadow:0 4px 10px rgba(242,140,40,.22)}.empty-cell{padding:42px!important;text-align:center;color:#8b8066!important;font-size:15px!important;font-weight:700}

@media(max-width:900px){body{padding:15px}.admin-sections{grid-template-columns:1fr}.table-responsive{max-height:none}.excel-table{font-size:14px}.excel-table th{height:48px}.excel-table td{height:50px}}
@media(max-width:620px){.header-actions{align-items:flex-start;flex-direction:column}.user-info{width:100%;justify-content:space-between}.card-inner{padding:18px}.table-toolbar{align-items:flex-start;flex-direction:column}.search-box{max-width:none}.excel-wrap{padding:4px}.excel-top{min-height:58px;padding:8px 12px;align-items:flex-start;flex-direction:column;gap:7px}.excel-title{font-size:15px}.excel-status{font-size:11px}.excel-table{min-width:820px;font-size:14px}.excel-table th{height:46px;padding:0 11px}.excel-table td{height:50px;padding:8px 11px}.sheet-btn{min-height:34px}}
