/* בסיס */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0d1f16;
    color: #f4fff6;
}

header {
    background: linear-gradient(120deg, #0b8755, #11a86a);
    text-align: center;
    padding: 10px 5px;
    color: #e6fff3;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

.subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    opacity: 0.9;
}

/* ניווט עליון */
#main-nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 6px 8px;
    background: #102820;
    border-bottom: 1px solid #1a3b2d;
}

#main-nav button {
    flex-shrink: 0;
    background: #19a664;
    border: none;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

#main-nav button:hover {
    background: #23c177;
}

main {
    min-height: calc(100vh - 130px);
}

/* פאנלים */
.panel {
    display: none;
    padding: 10px 10px 60px;
}

.panel.active {
    display: block;
}

/* כרטיסים */
.card {
    background: #173528;
    border-radius: 10px;
    padding: 8px 10px;
    margin: 8px 0;
    box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

.scroll {
    max-height: 220px;
    overflow-y: auto;
}

/* מפה */
#map {
    width: 100%;
    height: 55vh;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #1e4433;
    margin-bottom: 10px;
}

#mapFilters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    margin-bottom: 6px;
    font-size: 13px;
}

#mapFilters button {
    background: #147c4b;
    border: none;
    border-radius: 999px;
    padding: 4px 10px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
}

#mapFilters span {
    margin-left: 5px;
}

/* דמו אוטובוסים */
#busDemo {
    margin-top: 5px;
    font-size: 13px;
}

#busDemo input {
    width: 60px;
}

.hint {
    font-size: 11px;
    opacity: 0.8;
}

/* טפסים */
label {
    display: block;
    margin: 4px 0;
    font-size: 13px;
}

input, textarea, select {
    width: 100%;
    margin-top: 2px;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #284737;
    background: #0f241a;
    color: #f4fff6;
    font-size: 13px;
}

textarea {
    min-height: 60px;
    resize: vertical;
}

button {
    cursor: pointer;
}

/* צ'אט */
#chatMessages {
    min-height: 140px;
}

.chatInputRow {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.chatInputRow input {
    flex: 1;
}

/* מצלמה */
.cameraCard {
    position: relative;
    height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

#cameraVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

#cameraOverlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

#countdown {
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    margin-top: 15px;
    text-shadow: 0 0 10px #000;
}

#tickerText {
    background: rgba(0,0,0,0.6);
    color: #00ff99;
    font-weight: bold;
    font-size: 14px;
}

.cameraControls {
    display: flex;
    gap: 6px;
    margin: 8px 0;
}

.cameraControls button {
    flex: 1;
    background: #19a664;
    border: none;
    border-radius: 999px;
    padding: 8px 0;
    color: #fff;
}

/* פוסטים / מודעות */
.postItem {
    border-bottom: 1px solid #244533;
    padding: 5px 0;
    font-size: 13px;
}

/* מפגשים */
.meetItem {
    border-bottom: 1px solid #244533;
    padding: 5px 0;
    font-size: 13px;
}

.meetItem button {
    margin-top: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    border: none;
    background: #19a664;
    color: #fff;
}

/* פרופיל */
#profileSummary {
    margin-top: 8px;
    font-size: 14px;
}

/* אדמין */
#adminLog {
    font-size: 12px;
}

/* פוטר */
footer {
    text-align: center;
    padding: 6px;
    font-size: 11px;
    background: #06140e;
    border-top: 1px solid #1a3b2d;
}

/* התאמות מובייל */
@media (min-width: 800px) {
    main {
        max-width: 900px;
        margin: 0 auto;
    }
}
