@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

/* ZÁKLAD */
body { background-color: #050505; margin: 0; font-family: 'Montserrat', sans-serif; display: flex; justify-content: center; min-height: 100vh; color: white; }
#app-container { width: 100%; max-width: 480px; background: linear-gradient(180deg, #13151a 0%, #0f1014 100%); min-height: 100vh; position: relative; box-shadow: 0 0 50px rgba(236, 72, 153, 0.1); display: flex; flex-direction: column; }
.hidden { display: none !important; }

/* HLAVIČKA */
header { padding: 20px; background: rgba(19, 21, 26, 0.95); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #2a2a2a; display: flex; justify-content: space-between; align-items: center; }

/* OZNAMY - Všetky zelené podľa požiadavky */
.ann-card { padding: 15px; border-radius: 12px; margin-bottom: 10px; position: relative; border-left: 4px solid; display: flex; flex-direction: column; gap: 5px; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }

/* News - Zelená */
.ann-news { background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05)); border-color: #10b981; }
.ann-news .ann-tag { background: #10b981; color: white; }

/* Alert - Ponechávam červenú pre dôležité chyby, ale ak chceš všetko zelené, prepíš na #10b981 */
.ann-alert { background: linear-gradient(90deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05)); border-color: #ef4444; }
.ann-alert .ann-tag { background: #ef4444; color: white; }

/* Info - Zelená */
.ann-info { background: linear-gradient(90deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05)); border-color: #10b981; }
.ann-info .ann-tag { background: #10b981; color: white; }

.ann-tag { font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; padding: 2px 6px; border-radius: 4px; width: fit-content; }
.ann-text { font-size: 13px; color: #eee; line-height: 1.5; }

/* FORMÁTOVANIE TEXTU (ODSEKY) */
.formatted-text { white-space: pre-wrap; color: #ccc; font-size: 13px; line-height: 1.6; }
.about-text-content { white-space: pre-wrap; color: #ccc; font-size: 13px; line-height: 1.6; }

/* CHAT - INBOX */
.chat-list-item { padding: 15px; border-bottom: 1px solid #2a2a2a; cursor: pointer; display: flex; align-items: center; gap: 15px; transition: background 0.2s; position: relative; }
.chat-list-item:hover { background: #1f2024; }
.chat-list-item.unread { background: rgba(236, 72, 153, 0.05); }
.chat-avatar { width: 45px; height: 45px; background: linear-gradient(45deg, #ec4899, #8b5cf6); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: white; font-size: 18px; flex-shrink: 0; }
.chat-info { flex: 1; min-width: 0; }
.chat-name { font-weight: bold; font-size: 14px; margin-bottom: 2px; color: white; }
.chat-preview { font-size: 12px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-list-item.unread .chat-preview { color: #fff; font-weight: 500; }
.chat-list-item.unread .chat-name { color: #ec4899; }
.chat-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.chat-date { font-size: 10px; color: #666; }
.unread-badge { width: 10px; height: 10px; background: #ef4444; border-radius: 50%; display: block; box-shadow: 0 0 5px #ef4444; }

/* CHAT - ROOM */
#view-chat-room { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #0f1014; z-index: 200; display: flex; flex-direction: column; max-width: 480px; left: 50%; transform: translateX(-50%); }
.chat-messages { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 15px; background: #0f1014; scroll-behavior: smooth; }
.chat-bubble { max-width: 75%; padding: 10px 15px; border-radius: 15px; font-size: 14px; line-height: 1.4; position: relative; word-wrap: break-word; display: flex; flex-direction: column; }
.chat-bubble.me { align-self: flex-end; background: #ec4899; color: white; border-bottom-right-radius: 2px; cursor: pointer; }
.chat-bubble.other { align-self: flex-start; background: #27272a; color: #ddd; border-bottom-left-radius: 2px; border: 1px solid #333; }
.chat-sender { font-size: 10px; font-weight: bold; margin-bottom: 4px; opacity: 0.8; }
.chat-footer { display: flex; justify-content: flex-end; align-items: center; gap: 5px; margin-top: 2px; }
.chat-time { font-size: 9px; opacity: 0.7; }
.chat-seen { font-size: 9px; color: white; font-weight: bold; }

.chat-image { width: 100%; max-width: 180px; height: auto; border-radius: 12px; margin-bottom: 5px; cursor: zoom-in; border: 1px solid rgba(255,255,255,0.1); transition: transform 0.2s; }
.chat-image:hover { transform: scale(1.02); }

.chat-input-area { padding: 10px; background: #18181b; border-top: 1px solid #333; display: flex; gap: 8px; align-items: center; padding-bottom: max(15px, env(safe-area-inset-bottom)); position: relative; }
.chat-input { flex: 1; background: #27272a; border: 1px solid #3f3f46; color: white; padding: 12px; border-radius: 25px; outline: none; font-size: 14px; }
.chat-input:focus { border-color: #ec4899; }
.chat-btn { background: #27272a; color: #ccc; border: 1px solid #3f3f46; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.chat-send-btn { background: #ec4899; color: white; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 0 10px rgba(236,72,153,0.3); }

/* NEW CHAT BUTTON (Floating) */
.fab-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #ec4899;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 80;
    transition: transform 0.2s;
}
.fab-btn:hover { transform: scale(1.1); }

/* SMAJLÍKY */
#emoji-picker { position: absolute; bottom: 70px; left: 10px; background: #1f2024; border: 1px solid #333; padding: 10px; border-radius: 10px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; width: 250px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); z-index: 210; }
.emoji-btn { font-size: 20px; cursor: pointer; background: none; border: none; padding: 5px; transition: transform 0.1s; }
.emoji-btn:hover { transform: scale(1.2); }

/* KALENDÁR */
.calendar-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 5px; margin-bottom: 10px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.cal-day-name { color: #666; font-size: 11px; padding-bottom: 5px; }
.cal-day { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 14px; cursor: pointer; background: #1f2024; transition: all 0.2s; border: 1px solid transparent; }
.cal-day:hover { border-color: #ec4899; }
.cal-day.active { background: #ec4899; color: white; font-weight: bold; box-shadow: 0 0 10px rgba(236,72,153,0.5); }
.cal-day.today { border: 1px solid #ec4899; color: #ec4899; }
.cal-day.vacation { background: #331111; color: #777; text-decoration: line-through; cursor: not-allowed; }

/* ZMENA: VÝRAZNEJŠÍ VZHĽAD PRE NEDOSTUPNÉ DNI */
.cal-day.disabled { 
    opacity: 1; 
    pointer-events: none; 
    background: rgba(239, 68, 68, 0.15) !important; /* Jemný červený podklad */
    color: #ef4444 !important; /* Červený text */
    text-decoration: line-through; /* Prečiarknutie */
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* OSTATNÉ */
.hero-card { background: linear-gradient(135deg, #2d1b2d 0%, #1a1a1a 100%); border: 1px solid #3d2535; border-radius: 20px; padding: 30px 20px; text-align: center; margin: 20px; }
.btn-primary { background: linear-gradient(90deg, #ec4899 0%, #db2777 100%); color: white; font-weight: 700; padding: 16px 0; width: 100%; border-radius: 12px; border: none; cursor: pointer; margin-top: 10px; }
.glass-panel { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); padding: 15px; border-radius: 15px; margin-bottom: 15px; }
input, textarea, select { width: 100%; background: #27272a; border: 1px solid #3f3f46; color: white; padding: 12px; border-radius: 8px; margin-bottom: 10px; box-sizing: border-box; }
.page { padding: 0 20px 100px 20px; animation: fadeIn 0.3s; }
@keyframes fadeIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.slot { padding: 12px; background: #27272a; border: 1px solid #3f3f46; border-radius: 8px; text-align: center; font-size: 14px; cursor: pointer; }
.slot.selected { background: #ec4899; color: white; border-color: #ec4899; }
.slot.disabled { opacity: 0.3; pointer-events: none; text-decoration: line-through; }

/* NAVIGÁCIA A BODKY */
.bottom-nav { position: fixed; bottom: 0; width: 100%; max-width: 480px; background: #18181b; border-top: 1px solid #27272a; display: flex; justify-content: space-around; padding: 15px 0 25px 0; z-index: 100; }
.nav-item { color: #71717a; text-align: center; font-size: 10px; flex: 1; cursor: pointer; position: relative; }
.nav-item.active { color: #ec4899; }
.nav-item i { font-size: 20px; margin-bottom: 5px; display: block; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; }
.nav-dot { position: absolute; top: -2px; right: 25%; width: 8px; height: 8px; background-color: #ef4444; border-radius: 50%; border: 2px solid #18181b; }

/* CREDITS FOOTER */
.app-credits { text-align: center; margin-top: 30px; margin-bottom: 20px; padding-top: 10px; border-top: 1px solid #333; font-size: 10px; color: #555; }
.app-credits a { color: #777; text-decoration: none; border-bottom: 1px dotted #555; }

/* TOGGLE SWITCH */
.switch { position: relative; display: inline-block; width: 50px; height: 24px; margin-left: auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #333; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #ec4899; }
input:checked + .slider:before { transform: translateX(26px); }

/* PWA BANNER - FIXNÝ DOLE */
#pwa-install-banner {
    position: fixed;
    bottom: 85px;
    left: 15px;
    right: 15px;
    background: #1f2024;
    border: 1px solid #333;
    padding: 10px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 90;
    animation: fadeIn 0.5s;
}
#pwa-install-banner.hidden { display: none !important; }

/* MODAL PRE VÝBER KLIENTA */
#client-directory-modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 250;
    display: flex; flex-direction: column; padding: 20px;
}
.client-list-item {
    display: flex; align-items: center; gap: 15px;
    padding: 15px; border-bottom: 1px solid #333; cursor: pointer;
}
.client-list-item:hover { background: #27272a; }