/* Styly pro hlavní komponenty webu */

/* ==========================================================================
   ČÁST 1: NÁVŠTĚVNICKÉ KOMPONENTY (Zobrazení)
   ========================================================================== */

/* --- SKELETON LOADING --- */
.skeleton {
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 5px; background-size: 200% 100%; animation: 1.5s shine linear infinite; opacity: 0.7;
}
@keyframes shine { to { background-position-x: -200%; } }
.skeleton-card {
    background: #fff; border-radius: 15px; width: 260px; min-height: 140px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1); margin-bottom: 15px; overflow: hidden;
}

/* --- HERO SECTION --- */
/* ZÁKLAD = MOBIL */
.hero {
  position: relative; text-align: center; color: #fff; width: 100%; aspect-ratio: 3 / 4; min-height: auto;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 100px 20px 25px; overflow: visible; z-index: 5; 
  transition: background-image 0.3s ease;
  background-image: var(--bg-thumb, none); background-repeat: no-repeat;
  background-position: var(--bg-pos-x-mobile, 50%) var(--bg-pos-y-mobile, 50%);
  background-size: var(--bg-size-mobile, cover);
}

/* DESKTOP */
@media (min-width: 769px) {
  .hero {
    aspect-ratio: auto; min-height: 550px; padding: 130px 20px 40px;
    background-position: var(--bg-pos-x-desktop, 50%) var(--bg-pos-y-desktop, 50%);
    background-size: var(--bg-size-desktop, cover);
  }
}

/* Vrstvy Hero (Overlay, Ostrost) */
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image: var(--bg-full, none); background-repeat: no-repeat;
  background-position: inherit; background-size: inherit;
  opacity: 0; transition: opacity 1.2s ease-in-out; z-index: -1;
}
.hero.hero-loaded::before { opacity: 1; }

.hero-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.5) 90%);
  z-index: 0; pointer-events: none;
}

/* Texty v Hero */
.hero-text { margin-bottom: 20px; position: relative; z-index: 2; }
.hero-text h1 {
  font-size: 2.5rem; line-height: 1.15; margin-bottom: 15px;
  font-family: 'Yeseva One','Bai Jamjuree','Noto Serif',serif;
  font-weight: 400; font-size-adjust: 0.5;
}
.hero-text p { font-size: 1.2rem; margin-bottom: 10px; }

/* Mobilní efekty (Vignette) */
@media (max-width: 768px) {
  .hero::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.12) 0%, rgba(0, 0, 0, 0.25) 100%);
    mix-blend-mode: multiply; pointer-events: none; z-index: 2;
  }
  .hero.is-editing::after { display: none; }
  .hero::before {
    background-image: var(--bg-full, none), radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.3) 100%);
    background-blend-mode: normal, multiply;
  }
  .hero.hero-loaded::before { filter: contrast(1.08) saturate(1.15) brightness(0.95); }
  .hero-text, .reviews-section { position: relative; z-index: 3; }
}

/* --- REVIEWS SECTION --- */
.reviews-section { margin-top: 15px; position: relative; min-height: 160px; }
.single-review-container { display: flex; justify-content: center; margin-bottom: 8px; min-height: 160px; }

.single-review-bubble {
  background: rgba(255, 255, 255, 0.1); color: #fff; padding: 24px 28px; border-radius: 24px;
  max-width: 400px; min-width: 280px; min-height: 120px; position: relative;
  backdrop-filter: blur(2px) saturate(110%); -webkit-backdrop-filter: blur(2px) saturate(110%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  border: 1px solid rgba(255, 255, 255, 0.2); transition: all 0.25s ease; margin: 0 auto; overflow: visible;
}
.single-review-bubble::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 35%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 24px 24px 0 0; pointer-events: none; z-index: 1;
}
.single-review-bubble:hover {
  transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  background: rgba(255, 255, 255, 0.13); border: 1px solid rgba(255, 255, 255, 0.25);
}
.review-content p {
  font-size: 0.95rem; line-height: 1.5; margin-bottom: 12px; font-style: italic;
  color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); position: relative; z-index: 3;
}
.review-author {
  font-weight: bold; font-size: 0.85rem; color: #fff; text-align: right;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); position: relative; z-index: 3;
}
.reviews-attribution { text-align:center; margin-top:8px; margin-bottom:15px; }
.reviews-attribution small { color:rgba(255, 255, 255, 0.8); font-size:0.75rem; font-style:italic; }
.skutecne-link {
  color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px dotted rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}
.skutecne-link:hover { color: #fff; border-bottom: 1px solid #fff; background: rgba(255, 255, 255, 0.1); }
.border-canvas { position: absolute; top: -3px; left: -3px; pointer-events: none; z-index: 0; }

/* --- DELIVERY BUTTONS & MODAL --- */
.delivery-buttons-desktop { display: contents; }
.delivery-buttons-mobile {
  width:100%; display:none; justify-content:center; gap:15px; margin-top:10px; flex-wrap:wrap; min-height:45px;
}
.delivery-buttons-mobile.has-visible { display: flex; }

.delivery-btn {
  border-radius: 50% !important; width: 45px !important; height: 45px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  padding: 0 !important; font-weight: 700 !important; font-size: 0.85rem !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3) !important; transition: all 0.3s ease !important;
  text-decoration: none !important; position: relative !important;
}
.delivery-btn:hover { transform: translateY(-3px) scale(1.05) !important; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4) !important; }
.delivery-btn::after { display: none !important; }
.wolt-btn { background: #00D4FF !important; color: white !important; }
.bolt-btn { background: #34BB78 !important; color: white !important; }
.foodora-btn { background: #D60265 !important; color: white !important; }

/* Delivery Modal */
.modal.bottom-sheet { align-items: flex-end !important; justify-content: center !important; }
.modal.bottom-sheet .bottom-sheet-content {
  width: 100%; max-width: 500px; margin: 0; border-radius: 20px 20px 0 0;
  transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 20px; background: #fff; box-shadow: 0 -10px 40px rgba(0,0,0,.25);
  position: relative; max-height: 80vh; overflow-y: auto;
}
.modal.bottom-sheet.show .bottom-sheet-content { transform: translateY(0); }
.bottom-sheet-handle { width: 40px; height: 4px; background: #ddd; border-radius: 2px; margin: -10px auto 15px auto; flex-shrink: 0; }
.delivery-sheet-row { display: flex; justify-content: center; gap: 25px; margin: 25px 0; flex-wrap: wrap; }
.delivery-sheet-btn {
  min-width: 100px; height: 50px; border-radius: 25px; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; line-height: 1; cursor: pointer; text-decoration: none;
  transition: all 0.3s ease; box-shadow: 0 6px 20px rgba(0,0,0,0.15); border: none; color: white; padding: 0 20px;
}
.delivery-sheet-btn:hover { transform: translateY(-3px) scale(1.08); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.delivery-sheet-btn.wolt-btn { background: linear-gradient(135deg, #00D4FF 0%, #00BFE8 100%); }
.delivery-sheet-btn.foodora-btn { background: linear-gradient(135deg, #D60265 0%, #c1025a 100%); }
.delivery-sheet-btn.bolt-btn { background: linear-gradient(135deg, #34BB78 0%, #2da968 100%); }
.delivery-info { text-align: center; margin-top: 15px; }
.delivery-note { color: #666; font-size: 0.85rem; margin: 0; font-style: italic; }

/* --- MAP SECTION --- */
#map-container { max-width:1000px; margin:0 auto; }
#google-map { border:2px solid #ddd; box-shadow:0 4px 12px rgba(0,0,0,0.1); }
.map-info {
  text-align: center; margin-bottom: 25px; padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
  border-radius: 15px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); border: 1px solid rgba(0, 0, 0, 0.05);
}
.map-location { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 15px; }
.location-pin { width: 20px; height: 20px; color: var(--primary-color); flex-shrink: 0; }
.map-address { font-size: 1.1rem; color: #333; margin: 0; font-weight: 500; line-height: 1.4; }
.map-directions-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, color-mix(in srgb, var(--primary-color) 90%, black) 100%);
  color: white; text-decoration: none; border-radius: 25px; font-size: 0.9rem; font-weight: 600;
  transition: all 0.3s ease; box-shadow: 0 3px 10px color-mix(in srgb, var(--primary-color) 25%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.map-directions-btn:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 90%, black) 0%, #cc5200 100%);
  transform: translateY(-2px); box-shadow: 0 5px 15px color-mix(in srgb, var(--primary-color) 35%, transparent); color: white;
}
.directions-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* --- INFO SECTION (Content) --- */
#informace-content {
  max-width:800px; margin:0 auto; text-align:left; line-height:1.6; font-size:1.1rem; min-height: 300px; padding: 20px 0;
}
#informace-content p { margin-bottom:15px; }

/* --- VISITOR ANNOUNCEMENT --- */
.announcement-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 20000;
  display: none; align-items: center; justify-content: center;
}
.announcement-overlay.show { display: flex !important; }
.announcement-card {
  background: #ffffff; width: 90%; max-width: 420px; border-radius: 24px; padding: 30px;
  text-align: center; position: relative; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.9) translateY(20px); opacity: 0;
  animation: popInCard 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.announcement-icon {
  width: 64px; height: 64px; margin: 0 auto 15px auto; display: flex;
  align-items: center; justify-content: center; color: var(--primary-color);
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
  border-radius: 50%; padding: 12px; animation: pulseIcon 2.5s ease-in-out infinite;
}
.announcement-icon svg { width: 100%; height: 100%; }
.announcement-title { 
  font-size: 0.9rem; color: #888; margin-bottom: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}
.announcement-body { 
  font-size: 1.6rem; color: #111; line-height: 1.3; margin-bottom: 30px; font-weight: 700; font-family: 'Serif', serif;
}
.announcement-action-btn {
  background: var(--primary-color); color: white; border: none; padding: 12px 30px;
  font-size: 1rem; font-weight: 600; border-radius: 50px; cursor: pointer;
  transition: all 0.2s ease; box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 40%, transparent);
}
.announcement-action-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px color-mix(in srgb, var(--primary-color) 50%, transparent); }
.announcement-close-btn {
  position: absolute; top: 15px; right: 15px; background: #f0f0f0; border: none;
  width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1;
  cursor: pointer; color: #666; display: flex; align-items: center; justify-content: center;
}
.announcement-close-btn:hover { background: #e0e0e0; color: #000; transform: rotate(90deg); }

@keyframes fadeInOverlay { to { opacity: 1; } }
@keyframes popInCard { to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes pulseIcon {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,0,0,0); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 10px color-mix(in srgb, var(--primary-color) 10%, transparent); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

/* --- SMART OPENING HOURS UI --- */
.opening-status-wrapper { position: relative; cursor: pointer; }
.status-badge {
    display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.95rem;
    padding: 6px 12px; border-radius: 20px; transition: background 0.3s ease; text-shadow: none !important; 
}
.opening-status-wrapper:hover .status-badge { background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); }
.status-icon { width: 20px; height: 20px; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15)); }

/* Tooltip (Tabulka) */
.hours-tooltip {
    position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%) translateY(10px);
    width: 320px; background: #ffffff; padding: 20px; border-radius: 16px;
    text-shadow: none !important; color: #333; text-align: left;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.06);
    opacity: 0; visibility: hidden; transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1000; pointer-events: none;
}
.hours-tooltip::before {
    content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
    width: 12px; height: 12px; background: #fff; border-top: 1px solid rgba(0,0,0,0.06); border-left: 1px solid rgba(0,0,0,0.06); border-radius: 2px;
}
.opening-status-wrapper:hover .hours-tooltip {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto;
}
.hours-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; font-size: 0.95rem; color: #555; border-radius: 8px; transition: background 0.2s; text-shadow: none !important;
}
.hours-row:not(:last-child) { border-bottom: 1px dashed rgba(0,0,0,0.08); }
.hours-row:hover { background: #f9f9f9; }
.hours-row.today {
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--primary-color); font-weight: 700; border-bottom: none;
}
.days-label { font-weight: 500; }
.hours-value {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
    font-weight: 500; font-size: 0.95rem; letter-spacing: 0.2px; color: #333; text-align: right; min-width: 120px; 
}
@media (max-width: 480px) {
    .hours-tooltip { width: 280px; left: -40px; }
    .hours-tooltip::before { left: 50px; }
}

/* Mobilní pilulka */
.mobile-hours-container { display: none; }
@media (max-width: 768px) {
    .mobile-hours-container {
        display: flex !important; justify-content: center; margin-top: 15px; margin-bottom: 5px; position: relative; z-index: 10;
    }
    .mobile-hours-pill {
        display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, 0.45); 
        padding: 5px 14px; font-size: 0.85rem; border-radius: 50px;
        backdrop-filter: blur(4px); font-weight: 500; border: 1px solid rgba(255, 255, 255, 0.15);
        color: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); cursor: pointer; transition: transform 0.2s ease, background 0.2s ease;
    }
    .mobile-hours-pill:active { transform: scale(0.95); background: rgba(0, 0, 0, 0.6); }
    .mobile-hours-pill .status-icon { width: 18px; height: 18px; }
}


/* ==========================================================================
   ČÁST 2: ADMIN & EDITOR KOMPONENTY (Tyto se zobrazí jen adminovi)
   ========================================================================== */

/* --- HERO EDITOR --- */
#hero-bg-controls {
  position: absolute; bottom: 15px; top: auto; left: 50%; transform: translateX(-50%);
  z-index: 20000 !important; width: 95%; max-width: 500px;
  pointer-events: auto !important; touch-action: manipulation;
}
.bg-controls-toolbar {
  background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 20px; padding: 10px; display: grid; grid-template-columns: auto auto 1fr auto; gap: 8px; align-items: center;
}
.bg-help-text { display: none; }
#hero-zoom-slider {
  grid-column: 1 / -1; width: 100%; height: 4px; background: rgba(255, 255, 255, 0.2);
  border-radius: 10px; -webkit-appearance: none; margin: 5px 0;
}
#hero-zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
/* Editor Tlačítka */
.admin-btn-small, .save-btn-small, .cancel-btn-small, .device-btn {
  border: none; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; min-height: 40px; min-width: 40px;
  background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; text-shadow: none !important;
}
#save-hero-bg-btn { background: rgba(40, 167, 69, 0.8) !important; }
#cancel-hero-bg-btn { background: rgba(108, 117, 125, 0.8) !important; }
#delete-hero-bg-btn { background: rgba(220, 53, 69, 0.8) !important; }
#upload-hero-bg-btn { color: white !important; font-size: 1.2rem; }
#upload-hero-bg-btn::after { content: none; }
.bg-controls-actions { grid-column: 4 / -1; display: flex; justify-content: flex-end; gap: 6px; }
.admin-btn-small:active, .device-btn:active, .save-btn-small:active { transform: scale(0.95); background: rgba(255,255,255,0.3); }

/* Editace stav */
#main-hero.is-editing { cursor: move; user-select: none; }
#main-hero.is-editing .hero-overlay { background: rgba(0, 0, 0, 0.05); }
#main-hero.is-editing::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  border: 1px dashed rgba(255, 255, 255, 0.4); pointer-events: none; z-index: 2;
}

/* Simulace v Editoru */
#main-hero.preview-mobile-mode {
  width: 375px !important; height: 667px !important; margin: 20px auto !important;
  border: 12px solid #1a1a1a; border-radius: 30px; box-shadow: 0 0 0 100vw rgba(0,0,0,0.85);
  padding-top: 60px !important; overflow: hidden; z-index: 10001;
  background-position: var(--bg-pos-x-mobile, 50%) var(--bg-pos-y-mobile, 50%) !important;
  background-size: var(--bg-size-mobile, cover) !important;
}
#main-hero.preview-mobile-mode .reviews-section { transform: scale(0.8); transform-origin: top center; }

#main-hero.preview-desktop-force {
    background-position: var(--bg-pos-x-desktop, 50%) var(--bg-pos-y-desktop, 50%) !important;
    background-size: var(--bg-size-desktop, cover) !important;
    width: 90% !important; height: 250px !important; min-height: 0 !important; margin: 40px auto !important;
    border: 8px solid #222; border-radius: 12px; box-shadow: 0 0 0 100vw rgba(0,0,0,0.9); z-index: 10001;
    display: flex; flex-direction: column; justify-content: center;
}
#main-hero.preview-desktop-force .hero-text { transform: scale(0.6); }
#main-hero.preview-desktop-force .reviews-section { display: none; }

.device-toggles { display: flex; gap: 5px; margin-right: 8px; border-right: 1px solid rgba(255,255,255,0.2); padding-right: 8px; }
.device-btn:hover { opacity: 0.8; transform: scale(1.1); }
.device-btn.active { opacity: 1; text-shadow: 0 0 10px white; }

/* --- DELIVERY ADMIN --- */
#delivery-admin-controls {
  width: 100%; display: flex !important; flex-direction: column; gap: 12px; margin-top: 0; 
  padding: 15px; background: #f8f9fa; border-radius: 10px; border: 1px solid #e9ecef;
}
#delivery-admin-controls > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; }
#delivery-admin-controls label { font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
#delivery-admin-controls input[type="url"] { width: 100%; padding: 10px; border: 2px solid #ddd; border-radius: 8px; font-size: 0.95rem; }
#delivery-admin-controls input[type="url"]:focus { outline: none; border-color: var(--primary-color); }
#delivery-admin-controls #save-delivery-settings-btn { margin-top: 10px; width: 100%; padding: 12px; background: #28a745; }
#delivery-admin-controls #save-delivery-settings-btn:hover { background: #218838; }

/* --- INFO & MAP EDITORS --- */
.info-edit-controls, .map-edit-controls { margin:20px 0; display:flex; justify-content:center; gap:15px; flex-wrap:wrap; }
#info-editor {
  max-width:800px; margin:20px auto; text-align:left; background:#fff; border-radius:10px; padding:20px; box-shadow:0 4px 12px rgba(0,0,0,0.1);
}
.editor-toolbar {
  display:flex; gap:5px; margin-bottom:15px; padding-bottom:15px; border-bottom:2px solid #eee; flex-wrap:wrap;
}
.toolbar-btn {
  padding:8px 12px; border:1px solid #ddd; background:#fff; border-radius:5px; cursor:pointer; font-weight:bold; transition:all 0.2s ease; font-size:14px;
}
.toolbar-btn:hover { background:#f8f9fa; border-color:var(--primary-color); }
.toolbar-btn.active { background:var(--primary-color); color:#fff; border-color:var(--primary-color); }
.editor-content {
  min-height:200px; border:2px solid #ddd; border-radius:8px; padding:15px; font-size:1.1rem; line-height:1.6; outline:none; transition:border-color 0.3s ease;
}
.editor-content:focus { border-color:var(--primary-color); }
.editor-buttons { display:flex; gap:10px; margin-top:15px; justify-content:flex-end; }
.save-btn { flex:1; background:#28a745; color:#fff; border:none; padding:10px; border-radius:8px; cursor:pointer; font-weight:600; transition:all 0.3s ease; }
.save-btn:hover { background:#218838; transform:translateY(-1px); }
.cancel-btn { background:#6c757d; color:#fff; border:none; padding:10px 16px; border-radius:8px; cursor:pointer; transition:all 0.3s ease; }
.cancel-btn:hover { background:#5a6268; transform:translateY(-1px); }
.hero-editor-fields { display:flex; flex-direction:column; gap:20px; margin:20px 0; }
.hero-editor-fields label { font-weight:600; margin-bottom:8px; color:#333; }
.hero-editor-fields .editor-content { min-height:80px; }

/* --- ANNOUNCEMENT ADMIN --- */
.announcement-admin-form { display: flex; flex-direction: column; gap: 15px; text-align: left; margin-top: 15px; padding-bottom: 20px; }
.form-group-row { display: flex; align-items: center; gap: 12px; padding: 10px; background: #f8f9fa; border-radius: 8px; }
.toggle-switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.toggle-slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .toggle-slider { background-color: var(--primary-color); }
input:checked + .toggle-slider:before { transform: translateX(24px); }
.toggle-label { font-weight: 600; font-size: 1rem; }
.form-group textarea, .form-group input[type="datetime-local"] { width: 100%; padding: 10px; border: 2px solid #ddd; border-radius: 8px; font-family: inherit; }
.form-group input[type="datetime-local"] { appearance: none; -webkit-appearance: none; display: block; background: #fff; color: #333; min-height: 45px; font-size: 1rem; line-height: 1.5; cursor: pointer; }
.form-group textarea:focus, .form-group input:focus { outline: none; border-color: var(--primary-color); }
.preview-box { padding: 10px; background: #eef; border-radius: 6px; border: 1px dashed #aac; font-size: 0.9rem; color: #446; }

/* --- COLOR THEME ADMIN --- */
.color-options { display:flex; flex-direction:column; gap:10px; margin:20px 0; }
.color-preset { padding:15px; border-radius:8px; color:white; cursor:pointer; transition:all 0.3s ease; font-weight:600; text-align:center; }
.color-preset:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,0.2); }
.custom-color { margin-top:20px; padding-top:20px; border-top:2px solid #eee; }
.custom-color label { display:block; font-weight:600; margin-bottom:8px; }
.custom-color input { width:100%; padding:10px; border:2px solid #ddd; border-radius:8px; margin-bottom:10px; font-size:1rem; }
.custom-color input:focus { outline:none; border-color:var(--primary-color); }