* { box-sizing: border-box; }
/* Firemní barvy: Oranžová a Bílá */
:root { --primary: #f39c12; --primary-dark: #d68910; --bg-body: #f8f9fa; --bg-card: #ffffff; --text-main: #333; --border: #eee; --gold: #ffd700; --danger: #ff5252; --link-blue: #00acc1; }

body { font-family: sans-serif; background: var(--bg-body); margin: 0; padding-bottom: 80px; color: var(--text-main); overflow-x: hidden; width: 100vw; height: 100vh; }

/* Bílá hlavička s oranžovým textem */
header { 
    background: #ffffff !important; 
    color: var(--primary) !important; 
    padding: 10px 15px; 
    display: flex; justify-content: space-between; align-items: center; 
    border-bottom: 3px solid var(--primary); /* Oranžová linka dole */
    position: sticky; top: 0; z-index: 100; width: 100%; height: 60px; 
}
#appTitle { color: var(--primary) !important; font-weight: bold; }
.menu-btn, .bell-btn { color: var(--primary) !important; }
input, textarea, select { user-select: text; -webkit-user-select: text; }

header { background: var(--primary); color: white; padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--primary-dark); position: sticky; top: 0; z-index: 100; width: 100%; height: 60px; }
.menu-btn, .bell-btn { font-size: 24px; border: none; background: none; color: white; cursor: pointer; position: relative; }
.notif-badge { position: absolute; top: 0; right: 0; background: red; width: 10px; height: 10px; border-radius: 50%; display: none; border: 1px solid white; }
.notif-badge.active { display: block; }
h1 { margin: 0; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Sjednocené menu */
.sidebar { height: 100%; width: 250px; position: fixed; top: 0; left: -250px; background: #ffffff; border-right: 1px solid #eee; transition: 0.3s; padding-top: 60px; z-index: 500; overflow-y:auto; }
.sidebar.open { left: 0; }
.sidebar a { padding: 15px; display: block; color: var(--text-main) !important; text-decoration: none; border-bottom: 1px solid #eee; font-weight: 500; transition: all 0.3s; }
.sidebar a:hover { background: #fff3e0; color: var(--primary-dark) !important; }
.sidebar a.active { background: var(--primary); color: white !important; font-weight: bold; }
.sidebar a i, .sidebar a span.icon { color: var(--primary) !important; filter: none !important; }
.sidebar a.active i, .sidebar a.active span.icon { color: white !important; }

.sidebar-link-dynamic { color: var(--link-blue) !important; font-weight: bold; border-left: 3px solid transparent; }
.sidebar-link-dynamic:hover { background: #333; border-left-color: var(--link-blue); }

.version-tag { color: #888; font-size: 12px; padding: 20px 15px; text-align: center; border-top: 1px solid #eee; margin-top: auto; font-style: italic; line-height: 1.4; }
.overlay { display: none; position: fixed; width: 100%; height: 100%; top: 0; left: 0; background: rgba(0,0,0,0.5); z-index: 400; }

.screen { display: none; padding: 10px; max-width: 600px; margin: 0 auto; width: 100%; height: calc(100vh - 70px); }
.screen.active { display: block; }

@media (min-width: 800px) { #screen-chat, #screen-wiki, #screen-board, #screen-attendance, #screen-training, #screen-games, #screen-reconstructions, #screen-deals { max-width: 1000px; } .modal-content { max-width: 600px; } }

.card { background: var(--bg-card); padding: 15px; border-radius: 15px; margin-bottom: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); width: 100%; overflow: hidden; position: relative; transition: transform 0.2s; border: 1px solid #eee; }
.reorder-controls { display: none; position: absolute; top: 5px; right: 5px; z-index: 50; background: rgba(255,255,255,0.9); padding: 2px; border-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.card.editing .reorder-controls { display: flex; gap: 5px; }
.reorder-btn { border: 1px solid #ccc; background: white; width: 25px; height: 25px; border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; }
.reorder-btn:hover { background: #eee; }

.chat-card { height: 95%; display: flex; flex-direction: column; padding: 10px; }

.btn-primary { background: var(--primary); color: white; border: none; padding: 12px; width: 100%; border-radius: 8px; font-weight: bold; cursor: pointer; margin-top: 5px; transition: 0.3s; }
.btn-secondary { background: #e0e0e0; color: #333; border: none; padding: 10px; width: 100%; border-radius: 8px; margin-top: 5px; cursor: pointer; transition: 0.3s; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-action { padding: 5px 10px; border-radius: 5px; font-size: 14px; margin-left: 5px; border: none; cursor: pointer;}
.btn-edit { background: #ffcc80; color: #333; }
.btn-delete { background: #ff5252; color: white; }
.btn-done-modal { background: #4caf50; color: white; border: none; padding: 10px; border-radius: 8px; font-weight: bold; cursor: pointer; margin-top: 0; flex: 1; }

.btn-send { width: 45px; height: 45px; border-radius: 50%; background: var(--primary); color: white; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; font-size: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); margin-left: 5px; }
.btn-send:active { transform: scale(0.95); }
.btn-send:disabled { background: #ccc; cursor: not-allowed; transform: none; }

.load-more-btn { background: #f0f0f0; border: 1px solid #ddd; color: #666; width: 100%; padding: 6px; border-radius: 8px; cursor: pointer; margin-bottom: 5px; font-size: 11px; flex-shrink: 0; }
.load-more-btn:hover { background: #e0e0e0; }

input, select { width: 100%; padding: 10px; border: 2px solid #eee; border-radius: 8px; margin-bottom: 10px; max-width: 100%; }
textarea { width: 100%; padding: 10px; border: 2px solid #eee; border-radius: 8px; margin-bottom: 10px; max-width: 100%; resize: none; font-family: sans-serif; }
.chat-textarea { width: 100%; padding: 10px; border: 2px solid #eee; border-radius: 20px; margin-bottom: 0; height: 45px; min-height: 45px; max-height: 100px; overflow-y: auto; line-height: 1.4; font-size: 14px; transition: 0.2s; flex-grow: 1; }
.chat-textarea:focus { border-color: var(--primary); height: 60px; outline: none; }

.chat-input-area { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; background: #fff; padding-top: 5px; width: 100%; }
.chat-tools { display: flex; gap: 8px; align-items: center; width: 100%; }
.chat-text-row { display: flex; gap: 5px; align-items: flex-end; width: 100%; }

.hidden-file { display: none; }
.file-label { display: block; background: #f0f0f0; border: 1px dashed #999; padding: 10px; text-align: center; border-radius: 8px; cursor: pointer; font-size: 13px; margin-bottom: 10px; }

.manage-list-item { padding: 10px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.user-info { display: flex; align-items: center; gap: 10px; overflow: hidden; }
.mini-avatar { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; border: 1px solid #ccc; flex-shrink: 0; }
#editUserArea { background: #fafafa; padding: 15px; border: 2px dashed var(--primary); border-radius: 10px; margin-bottom: 20px; display: none; }

.task-item, .recon-item, .deal-item { padding: 15px; background: white; border-left: 5px solid var(--primary); border-radius: 8px; margin-bottom: 10px; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; }
.task-item.done, .recon-item.done { opacity: 0.6; text-decoration: line-through; border-left-color: #ccc; background: #f9f9f9; }
.task-content { flex-grow: 1; }
.task-meta { font-size: 12px; color: #666; margin-top: 5px; display: flex; flex-direction: column; gap: 2px;}
.task-date-created { font-size: 10px; color: #999; font-style: italic; }
.task-btn-done { background: none; border: 1px solid #eee; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; margin-left: 10px; flex-shrink: 0; }
.task-filters { display: flex; gap: 5px; margin-bottom: 15px; flex-wrap: wrap; }
.task-search { flex-grow: 1; margin: 0 !important; min-width: 120px; }
.task-select { width: auto !important; margin: 0 !important; flex-shrink: 0; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.team-member { text-align: center; background: white; border: 1px solid #eee; border-radius: 12px; padding: 15px 5px; cursor: pointer; position: relative; transition: 0.2s; overflow: hidden; margin-bottom: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.team-member:active { transform: scale(0.95); }

.my-status-widget { display: flex; flex-direction: column; align-items: center; gap: 15px; border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-bottom: 15px; }
.my-photo-wrapper { flex-shrink: 0; width: 100px; height: 100px; cursor: pointer; transition: transform 0.2s; }
.my-photo-wrapper:active { transform: scale(0.95); }
.my-photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--primary); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.status-controls { flex-grow: 1; width: 100%; text-align: center; }

.avatar { width: 55px; height: 55px; border-radius: 50%; object-fit: cover; border: 3px solid white; box-shadow: 0 3px 6px rgba(0,0,0,0.15); }
.status-dot { position: absolute; top: 50px; right: 25%; background: white; border-radius: 50%; width: 20px; height: 20px; font-size: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 5px rgba(0,0,0,0.3); border: 2px solid #fff; }
.member-name { font-size: 12px; font-weight: bold; color: var(--text-main); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 10px; }
.msg-badge { position: absolute; top: 0; left: 5px; background: #ff5252; color: white; border-radius: 50%; width: 24px; height: 24px; font-size: 14px; display: none; align-items: center; justify-content: center; border: 2px solid white; box-shadow: 0 2px 4px rgba(0,0,0,0.3); z-index: 20; animation: bounce 0.5s infinite alternate; }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-3px); } }

.reaction-bar { display: flex; justify-content: center; gap: 2px; margin-top: 8px; flex-wrap: wrap; }
.reaction-btn { font-size: 10px; background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 2px 3px; cursor: pointer; user-select: none; min-width: 22px; margin-bottom: 2px;}
.reaction-btn:active { background: #eee; transform: scale(0.9); }

.team-checkbox-group { text-align: left; background: #fff; border: 1px solid #eee; padding: 10px; border-radius: 8px; margin-bottom: 10px; max-height: 150px; overflow-y: auto; }
.team-check-item { display: flex; align-items: center; margin-bottom: 5px; font-size: 14px; }
.team-check-item input { margin-right: 8px; width: auto; }

.assign-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; justify-content: center; }
.assign-avatar-wrapper { text-align: center; cursor: pointer; width: 60px;}
.assign-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 3px solid #eee; transition: 0.2s; }
.assign-avatar.selected { border-color: #4caf50; box-shadow: 0 0 10px #4caf50; transform: scale(1.1); }
.assign-name { font-size: 10px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.icon-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-bottom: 10px; }
.icon-opt { padding: 10px; text-align: center; border: 1px solid #eee; border-radius: 5px; cursor: pointer; font-size: 20px; }
.icon-opt.selected { background: #ffecb3; border-color: orange; }

.cal-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: bold; color: var(--primary); }
.cal-nav-btn { background: none; border: 1px solid #eee; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; font-weight: bold; color: #555; }
.cal-nav-btn:hover { background: #f0f0f0; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 2px; }
.cal-header { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-weight: bold; font-size: 12px; margin-bottom: 5px; color: #555; }
.cal-day { padding: 5px 2px; border-radius: 5px; cursor: pointer; position: relative; border: 1px solid transparent; font-size: 14px; display: flex; flex-direction: column; align-items: center; min-height: 60px; justify-content: flex-start;}
.cal-day:hover { background: #f0f0f0; border: 1px solid var(--primary); }
.cal-day.empty { background: transparent; border: none; cursor: default; } 
.task-dot-marker { width: 10px; height: 10px; background: var(--primary); border-radius: 50%; margin-top: 4px; flex-shrink: 0; box-shadow: 0 1px 2px rgba(0,0,0,0.2); border: 2px solid white;}
.cal-day.has-task { font-weight: bold; background: #fff8e1; border: 1px solid #ffe0b2; }
.cal-day.today .date-num { background: var(--primary); color: white; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.name-day-text { font-size: 9px; color: #aaa; font-weight: normal; margin-top: 2px; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; text-align: center;}

.home-tasks-list { margin-top: 10px; border-top: 2px dashed #eee; padding-top: 10px; }
.home-task-item { padding: 10px; background: #fff; border-left: 4px solid var(--primary); border-radius: 5px; margin-bottom: 5px; font-size: 13px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); cursor: pointer; transition: 0.2s;}
.home-task-item:active { transform: scale(0.98); background: #f0f0f0; }
.home-task-item.indef { border-left-color: #ff5252; }

.chat-window { flex-grow: 1; min-height: 0; overflow-y: scroll; border: 1px solid #eee; padding: 10px; margin-bottom: 5px; border-radius: 10px; background: #f9f9f9; display: flex; flex-direction: column; gap: 10px; -ms-overflow-style: none; scrollbar-width: none; scroll-behavior: auto !important; }
.chat-window::-webkit-scrollbar { display: none; }

.msg-row { display: flex; align-items: flex-end; gap: 8px; width: 100%; }
.msg-row.me { flex-direction: row-reverse; }
.msg-row.them { flex-direction: row; }
.msg-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid #ccc; flex-shrink: 0; background: #ddd; }
.msg-content { display: flex; flex-direction: column; max-width: 75%; }
.msg-bubble { padding: 10px 14px; border-radius: 18px; font-size: 14px; word-wrap: break-word; box-shadow: 0 1px 3px rgba(0,0,0,0.1); position: relative; white-space: pre-wrap; }
.msg-row.me .msg-bubble { background: white; border: 2px solid var(--primary); color: #333; border-bottom-right-radius: 2px; }
.msg-row.them .msg-bubble { background: white; border: 1px solid #eee; color: #333; border-bottom-left-radius: 2px; }
.msg-author-name { font-size: 10px; color: #888; margin-bottom: 2px; margin-left: 5px; }
.msg-row.me .msg-author-name { display: none; }
.msg-actions { display: flex; gap: 8px; margin-top: 2px; font-size: 12px; opacity: 0.7; }
.msg-row.me .msg-actions { justify-content: flex-end; }
.msg-action-btn { cursor: pointer; transition: 0.2s; }
.msg-action-btn:hover { opacity: 1; transform: scale(1.1); }
.msg-liked { color: red; font-weight: bold; }

.chat-image-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 2px; margin-top: 5px; border-radius: 10px; overflow: hidden; width: 100%; max-width: 250px; }
.chat-image-gallery.count-1 { display: block; max-width: 220px; }
.chat-image-gallery.count-2 { grid-template-columns: 1fr 1fr; }
.chat-image-gallery.count-3, .chat-image-gallery.count-4 { grid-template-columns: 1fr 1fr; }
.chat-image-gallery .chat-img-wrapper { width: 100%; height: 100px; margin: 0; border-radius: 0; border: none; }
.chat-image-gallery.count-1 .chat-img-wrapper { height: auto; max-height: 250px; border-radius: 10px; }

.chat-img-wrapper, .chat-media-wrapper { width: 100%; height: 100%; background: #f0f0f0; border-radius: 10px; margin-top: 5px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; border: 1px solid #eee; }
.chat-media-wrapper { background: #000; width: 200px; height: 200px; }
.chat-img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; opacity: 0; transition: opacity 0.3s; }
.chat-img.loaded { opacity: 1; }
.chat-video { width: 100%; height: 100%; object-fit: contain; display: block; }
.chat-file-wrapper { height: 45px; width: 200px; background: #eee; border-radius: 10px; margin-top: 5px; display: flex; align-items: center; padding: 0 10px; overflow: hidden; }
.img-spinner { position: absolute; border: 3px solid #ccc; border-top: 3px solid var(--primary); border-radius: 50%; width: 20px; height: 20px; animation: spin 1s linear infinite; }
.file-link { display: inline-flex; align-items: center; text-decoration: none; color: #333; font-weight: bold; font-size: 12px; gap: 5px; width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.download-btn-sm { background: var(--primary); color: white; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 14px; margin-left: 5px; border:none; cursor: pointer; flex-shrink: 0;}

.audio-wrapper { display: flex; align-items: center; gap: 10px; min-width: 180px; padding: 5px 0; }
.audio-btn { width: 35px; height: 35px; border-radius: 50%; background: var(--primary); color: white; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.audio-track { flex-grow: 1; display: flex; flex-direction: column; gap: 4px; }
.audio-progress-bg { height: 4px; background: #ddd; border-radius: 2px; width: 100%; overflow: hidden; position: relative; }
.audio-progress-fill { height: 100%; background: var(--primary); width: 0%; transition: width 0.1s linear; position: absolute; left: 0; top: 0; }
.audio-time { font-size: 10px; color: #888; font-family: monospace; display: flex; justify-content: space-between; }

.msg-time { font-size: 9px; color: #aaa; text-align: right; margin-top: 3px; }
.like-names { font-size: 9px; color: #999; margin-left: 4px; font-style: italic; }

.reply-context { background: #f0f0f0; border-left: 3px solid var(--primary); padding: 5px 10px; font-size: 12px; color: #666; margin-bottom: 5px; border-radius: 4px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-row.me .reply-context { background: #eee; color: #555; border-left-color: #999; }
.chat-search-input { width: auto; margin:0; margin-left:5px; padding:6px; border-radius:5px; font-size:13px; border:1px solid #ddd; max-width:120px; }

#replyBar, #privReplyBar { display: none; background: #fff3e0; padding: 8px; border-top: 1px solid var(--primary); justify-content: space-between; align-items: center; font-size: 12px; border-radius: 10px 10px 0 0; margin-bottom: -5px; z-index: 5; color: var(--primary-dark);}

.btn-round { width: 45px; height: 45px; border-radius: 50%; border: none; background: #eee; font-size: 22px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: 0.2s; }
.btn-round.recording { background: #ff5252; color: white; animation: pulse 1s infinite; box-shadow: 0 0 10px #ff5252; }
.btn-round.ready { background: #4caf50; color: white; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

#wikiAdminArea { display:none; background:#f9f9f9; padding:10px; border-radius:8px; margin-bottom:15px; border:1px dashed #ccc; }
.wiki-item { padding: 15px; background: #fafafa; border: 1px solid #eee; border-radius: 8px; margin-bottom: 8px; cursor: pointer; display: flex; justify-content: space-between; align-items: center;}
.wiki-content-text { white-space: pre-wrap; line-height: 1.6; color: #444; word-wrap: break-word; }
.wiki-folder { margin-bottom: 10px; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; background: #fff; }
.wiki-folder summary { padding: 12px; background: #f0f0f0; cursor: pointer; font-weight: bold; list-style: none; display: flex; align-items: center; outline: none; }
.wiki-folder summary::before { content: '📁 '; margin-right: 5px; }
.wiki-folder[open] summary { background: #e0e0e0; border-bottom: 1px solid #ddd; }
.wiki-folder[open] summary::before { content: '📂 '; }
.wiki-folder-content { padding: 10px; }

.checkbox-container { display: flex; align-items: center; margin-bottom: 10px; justify-content: center; }
.checkbox-container input { width: auto; margin: 0 10px 0 0; }

.modal-overlay { display: none; position: fixed !important; top: 0; left: 0; bottom: 0; right: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 10000; align-items: center; justify-content: center; }
.modal-content { background: white; width: 90%; max-width: 450px; padding: 20px; border-radius: 15px; max-height: 90vh; overflow-y: auto; position: relative; }
.close-modal { position: absolute; top: 15px; right: 15px; font-size: 24px; cursor: pointer; border: none; background: none; }
.comments-section { margin-top: 20px; border-top: 1px solid #eee; padding-top: 10px; }

.emoji-bar { display: flex; gap: 8px; padding: 10px 5px; overflow-x: auto; background: #fff; border-bottom: 1px solid #eee; margin-bottom: 5px; border-radius: 5px; -ms-overflow-style: none; scrollbar-width: none; flex-shrink: 0; cursor: grab; user-select: none; }
.emoji-bar::-webkit-scrollbar { display: none; }
.emoji-bar:active { cursor: grabbing; }

#notification-toast { visibility: hidden; min-width: 250px; background-color: #ff5252; color: #fff; text-align: center; border-radius: 10px; padding: 16px; position: fixed; z-index: 3000; left: 50%; top: 20px; transform: translateX(-50%); font-size: 15px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); border: 2px solid white; cursor: pointer; }
#notification-toast.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 4.5s; }
@keyframes fadein { from {top: 0; opacity: 0;} to {top: 20px; opacity: 1;} }
@keyframes fadeout { from {top: 20px; opacity: 1;} to {top: 0; opacity: 0;} }

.notif-item { padding: 12px; border-bottom: 1px solid #eee; font-size: 14px; cursor: pointer; transition: background 0.2s; }
.notif-item:hover { background: #f0f0f0; }
.notif-item:last-child { border: none; }

.report-item { background: #fff; border: 1px solid #ddd; padding: 15px; margin-bottom: 10px; border-radius: 8px; position: relative; }
.report-header { display:flex; justify-content:space-between; margin-bottom:5px; font-weight:bold; font-size:13px; color:#555;}
.report-text { font-size: 14px; line-height: 1.5; color: #333; margin-bottom: 15px; }
.delete-report-btn { border: none; background: none; color: #ff5252; cursor: pointer; font-size: 18px; }

.lightbox { display: none; position: fixed; z-index: 20000; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); }
.lightbox-content { margin: auto; display: block; width: 80%; max-width: 700px; border-radius: 10px; animation: zoom 0.6s; }
.lightbox-close { position: absolute; top: 10px; right: 20px; color: #f1f1f1; font-size: 50px; font-weight: bold; cursor: pointer; z-index: 20001; padding: 10px; }
.lightbox-down-btn { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 20px; font-size: 16px; cursor: pointer; z-index: 20002; }

@keyframes zoom { from {transform:scale(0)} to {transform:scale(1)} }

.comment-bubble { background: #f0f0f0; padding: 8px; border-radius: 8px; margin-bottom: 5px; font-size: 13px; white-space: pre-wrap; word-wrap: break-word; }

.loader-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.85); z-index: 30000; justify-content: center; align-items: center; flex-direction: column; color: var(--primary); font-weight: bold; }
.spinner { border: 6px solid #f3f3f3; border-top: 6px solid var(--primary); border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; margin-bottom: 15px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.channel-bar { display: flex; gap: 8px; overflow-x: auto; padding: 5px 0 10px 0; margin-bottom: 5px; flex-shrink: 0; -webkit-overflow-scrolling: touch; -ms-overflow-style: none; scrollbar-width: none; cursor: grab; user-select: none; }
.channel-bar::-webkit-scrollbar { display: none; }
.channel-bar:active { cursor: grabbing; }

.channel-btn { white-space: nowrap; padding: 8px 15px; border-radius: 20px; border: 1px solid #ccc; background: #fff; cursor: pointer; font-size: 13px; font-weight: 500; flex-shrink: 0; transition: 0.2s; position: relative; }
.channel-btn:hover { background: #eee; }
.channel-btn.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.channel-badge { position: absolute; top: -5px; right: -5px; background: red; color: white; border-radius: 50%; width: 18px; height: 18px; font-size: 10px; display: none; align-items: center; justify-content: center; border: 2px solid white; animation: bounce 0.5s infinite alternate; }

.status-scroll-wrapper { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 5px 0; overflow-x: visible; width: 100%; cursor: default; }
.status-item-btn { padding: 5px 12px; border: 1px solid #eee; border-radius: 15px; background: white; cursor: pointer; white-space: nowrap; font-size: 13px; display: flex; align-items: center; gap: 5px; transition: 0.2s; flex-shrink: 0; }
.status-item-btn:hover { background: #fafafa; }
.status-item-btn.active { background: #ffcc80; border-color: orange; color: #333; font-weight: bold; }

.hall-header { text-align: center; margin-bottom: 20px; position: relative; }
.winner-grid { display: grid; gap: 15px; margin-bottom: 30px; }
.winner-card { background: linear-gradient(135deg, #fffbeb, #fff); border: 2px solid var(--gold); border-radius: 15px; padding: 20px; text-align: center; position: relative; box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2); transition: 0.3s; }
.winner-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3); }
.trophy-icon { font-size: 30px; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: white; padding: 0 10px; border-radius: 20px; border: 1px solid var(--gold); }
.winner-photo { width: 80px; height: 80px; border-radius: 50%; border: 4px solid var(--gold); object-fit: cover; margin: 10px auto; display: block; }
.winner-title { font-weight: bold; color: #b8860b; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.winner-name { font-size: 18px; font-weight: bold; color: #333; margin-bottom: 5px; }
.winner-desc { font-size: 12px; color: #666; font-style: italic; }

.history-list { margin-top: 20px; border-top: 2px dashed #eee; padding-top: 15px; }
.history-item { background: white; border-radius: 8px; padding: 10px; margin-bottom: 8px; border: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.history-month { font-weight: bold; color: var(--primary); }

#hofAdminPanel { display: none; background: #fff3cd; padding: 15px; border-radius: 10px; border: 1px solid #ffeeba; margin-bottom: 20px; }

.unread-dashboard-chip { display: inline-flex; align-items: center; gap: 5px; background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; padding: 8px 12px; border-radius: 20px; font-size: 13px; font-weight: bold; cursor: pointer; transition: 0.2s; animation: pulse 1.5s infinite; }
.unread-dashboard-chip:hover { background: #ffcdd2; }

.links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.link-card { background: #e0f7fa; color: #006064; border: 1px solid #b2ebf2; border-radius: 10px; padding: 15px; text-align: center; cursor: pointer; text-decoration: none; font-weight: bold; font-size: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: 0.2s; }
.link-card:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.link-card-icon { font-size: 24px; margin-bottom: 5px; }

.contact-card { background: white; border: 1px solid #eee; border-radius: 10px; padding: 15px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.contact-details h4 { margin: 0 0 5px 0; font-size: 15px; }
.contact-details p { margin: 0; color: #666; font-size: 13px; }
.call-btn { background: #4caf50; color: white; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 18px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }

.board-note { background: #fff9c4; padding: 15px; border-radius: 2px; margin-bottom: 15px; box-shadow: 0 3px 6px rgba(0,0,0,0.1); position: relative; border-left: 5px solid #fbc02d; transform: rotate(-1deg); transition: 0.3s; }
.board-note:nth-child(even) { transform: rotate(1deg); background: #e1f5fe; border-left-color: #0288d1; }
.board-note:hover { transform: rotate(0deg) scale(1.02); z-index: 5; }
.board-date { font-size: 10px; color: #888; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.board-text { font-size: 14px; line-height: 1.5; color: #333; white-space: pre-wrap; }
.delete-note-btn { position: absolute; top: 5px; right: 5px; color: #aaa; cursor: pointer; background: none; border: none; font-size: 16px; }

.poll-bubble { background: #e3f2fd; border-radius: 15px; padding: 15px; margin-bottom: 10px; border: 1px solid #90caf9; }
.poll-question { font-weight: bold; margin-bottom: 10px; display: block; font-size: 15px; }
.poll-option { background: white; border: 1px solid #ccc; padding: 8px 12px; border-radius: 20px; margin-bottom: 5px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: 0.2s; font-size: 13px; }
.poll-option:hover { background: #f5f5f5; }
.poll-option.voted { background: #c8e6c9; border-color: #4caf50; font-weight: bold; }
.poll-count { font-size: 11px; color: #666; background: #eee; padding: 2px 6px; border-radius: 10px; }

/* Dochazka */
.attendance-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; margin-bottom: 15px; }
.attendance-table th, .attendance-table td { padding: 8px; border-bottom: 1px solid #eee; }
.attendance-table th { background: #f0f0f0; }
.vacation-item { display: flex; justify-content: space-between; background: white; border: 1px solid #ddd; padding: 10px; border-radius: 8px; margin-bottom: 5px; flex-direction: column; }
.status-pending { color: orange; font-weight: bold; }
.status-approved { color: green; font-weight: bold; }
.status-rejected { color: red; font-weight: bold; }
.btn-edit-att { font-size: 10px; background: #eee; border: 1px solid #ccc; border-radius: 4px; padding: 2px 5px; margin-left: 5px; cursor: pointer; }

/* TESTY (Kvíz) */
.quiz-q { font-weight: bold; margin-top: 15px; margin-bottom: 5px; font-size: 15px; color: var(--primary); }
.quiz-opt { display: flex; align-items: center; background: white; padding: 12px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 5px; cursor: pointer; transition: 0.2s; font-size: 14px; }
.quiz-opt:hover { background: #f9f9f9; border-color: #ccc; }
.quiz-opt input { margin: 0 10px 0 0; width: auto; transform: scale(1.2); }
.quiz-result-row { display: flex; justify-content: space-between; padding: 10px; border-bottom: 1px solid #eee; font-size: 14px; }

/* PIŠKVORKY */
.ttt-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; max-width: 350px; margin: 20px auto; background: #ddd; padding: 5px; border-radius: 10px; }
.ttt-cell { aspect-ratio: 1; background: #fff; border-radius: 5px; font-size: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: bold; transition: 0.2s; }
.ttt-cell:hover { background: #fff3e0; }
.ttt-x { color: #ff5252; }
.ttt-o { color: #00acc1; }
.ttt-status { text-align: center; font-size: 16px; font-weight: bold; margin-bottom: 10px; color: #555; }
.ttt-leaderboard-row { display: flex; justify-content: space-between; padding: 10px; border-bottom: 1px dashed #eee; font-size: 14px; }
/* MĚKČÍ A ELEGANTNĚJŠÍ DESIGN (Tlumení bílé) */
:root {
    --bg-body: #f0f2f5 !important;   /* Měkká, krémovější šedá místo agresivní bílé */
    --border: #e4e6eb !important;    /* Jemnější ohraničení */
}

/* Pozadí těla aplikace */
body { background: var(--bg-body) !important; }

/* Karty teď hezky vystoupí z pozadí */
.card {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important; /* Luxusnější, měkčí stín */
}

/* Hlavička s lehkým stínem pro oddělení od zbytku */
header {
    background: #ffffff !important;
    color: var(--primary) !important;
    border-bottom: 3px solid var(--primary) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important; 
}

/* Jemné podbarvení formulářových políček, aby nesplývala s kartou */
input, textarea, select {
    background: #f8f9fa !important;
    border: 1px solid #ced4da !important;
    transition: all 0.3s;
}

/* Když do políčka klikneš, rozsvítí se */
input:focus, textarea:focus, select:focus {
    background: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 5px rgba(243, 156, 18, 0.2) !important;
    outline: none !important;
}

/* Tým a seznamy - lehčí oddělení */
.team-member, .recon-item, .task-item, .deal-item {
    border: 1px solid var(--border) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}
/* MĚKČÍ A ELEGANTNĚJŠÍ DESIGN (Teplá béžová) */
:root {
    --bg-body: #fff6eb !important;   /* Jemná, teplá béžovo-oranžová barva */
    --border: #f0e6d2 !important;    /* Lehce teplejší ohraničení, aby ladilo k pozadí */
}
/* Náhledy souborů před odesláním v chatu */
.preview-bar {
    display: none;
    gap: 10px;
    padding: 10px 5px;
    overflow-x: auto;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
}
.preview-item {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #f0f0f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid #ddd;
}
.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.preview-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff5252;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
/* Speciální široký box pro náhled hlasovky před odesláním */
.preview-item.audio-preview {
    width: 100%;
    max-width: 350px;
    height: 60px;
    padding: 0 10px;
    background: #e3f2fd;
    border-color: #90caf9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* Roztažení samotného přehrávače, aby se na něj dalo dobře klikat */
.preview-item.audio-preview audio {
    width: calc(100% - 25px); /* Necháme místo na křížek vpravo */
    height: 40px;
    outline: none;
}
/* Upravená pozice křížku pro hlasovku (aby nebyl useknutý) */
.preview-item.audio-preview .preview-remove {
    position: relative;
    top: 0;
    right: 0;
    flex-shrink: 0;
}