* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #111b21;
    color: #e9edef;
    height: 100vh;
    overflow: hidden;
}

.hidden {
    display: none !important;
    pointer-events: none !important;
}

.layout-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.sidebar {
    width: 350px;
    background-color: #111b21;
    border-right: 1px solid #2a3942;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: 100%;
    z-index: 10;
}

.sidebar-header {
    background-color: #202c33;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #2a3942;
    flex-shrink: 0;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #00a884;
    color: #111b21;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.list-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.tabs-nav {
    display: flex;
    background-color: #202c33;
    border-top: 1px solid #2a3942;
    margin-top: auto;
    flex-shrink: 0;
}

.tab {
    flex: 1;
    background: none;
    border: none;
    color: #8696a0;
    padding: 13px 2px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-top: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab:hover {
    background-color: #2a3942;
    color: #e9edef;
}

.tab.active {
    color: #00a884;
    border-top: 3px solid #00a884;
}
.item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 4px;
}

.item:hover {
    background-color: #202c33;
}

.item.active {
    background-color: #2a3942;
}

.item.drag-over {
    border-top: 2px solid #00a884;
}

.badge {
    background-color: #00a884;
    color: #111b21;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    flex-shrink: 0;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #667781;
    display: inline-block;
}

.dot.on {
    background-color: #00a884;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #0b141a;
    position: relative;
    overflow: hidden;
    z-index: 5;
    height: 100%;
}

.panel-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.panel-header {
    background-color: #202c33;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2a3942;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    gap: 10px;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bubble {
    max-width: 68%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    position: relative;
}

.bubble.me {
    align-self: flex-end;
    background-color: #005c4b;
    color: #e9edef;
    border-top-right-radius: 0;
}
.bubble.other {
    align-self: flex-start;
    background-color: #202c33;
    color: #e9edef;
    border-top-left-radius: 0;
}

.bubble .sender {
    font-size: 12px;
    font-weight: 600;
    color: #00a884;
    margin-bottom: 2px;
}

.bubble .time {
    font-size: 10px;
    color: #8696a0;
    text-align: right;
    margin-top: 4px;
}

.read-tick {
    margin-left: 4px;
    color: rgba(255, 255, 255, 0.5);
}

.read-tick.read {
    color: #53bdeb;
}

.input-form {
    background-color: #202c33;
    padding: 10px 16px;
    display: flex;
    gap: 10px;
    align-items: center;
    border-top: 1px solid #2a3942;
    flex-shrink: 0;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
textarea,
select {
    background-color: #2a3942;
    border: 1px solid transparent;
    color: #e9edef;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    width: 100%;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #00a884;
}

.btn {
    background-color: #2a3942;
    color: #e9edef;
    border: none;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn:hover {
    background-color: #374852;
}

.btn-g {
    background-color: #00a884;
    color: #111b21;
}

.btn-g:hover {
    background-color: #06cf9c;
}

.btn-r {
    background-color: #ef4444;
    color: #ffffff;
}

.btn-r:hover {
    background-color: #dc2626;
}
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(11, 20, 26, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 16px;
}

.modal.fullscreen-modal {
    padding: 0;
    z-index: 950;
}

.modal.fullscreen-modal .card {
    max-width: 100vw;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
    padding: 0;
}

#pers-editor-m {
    z-index: 1050;
}

#share-m,
#invite-m,
#notif-m {
    z-index: 1150;
}

.card {
    background-color: #202c33;
    padding: 24px;
    border-radius: 12px;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid #2a3942;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-top: 10px;
}

.cal-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #8696a0;
    padding: 6px 0;
}

.cal-cell {
    background-color: #111b21;
    border: 1px solid #2a3942;
    border-radius: 8px;
    min-height: 85px;
    padding: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.15s;
}

.cal-cell:hover {
    border-color: #00a884;
}

.cal-cell.today {
    border-color: #00a884;
    background-color: rgba(0, 168, 132, 0.08);
}

.cal-cell.selected {
    border: 2px solid #00a884;
}

.cal-badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: #005c4b;
    color: #e9edef;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cal-badge.task-badge {
    background-color: #2a3942;
    border-left: 3px solid #eab308;
}

.cal-badge.done {
    opacity: 0.5;
    text-decoration: line-through;
}

.bottom-action-bar {
    background-color: #202c33;
    border-top: 1px solid #2a3942;
    padding: 12px 20px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    flex-shrink: 0;
}

.done-item {
    opacity: 0.65;
}

/* DROPDOWN MENÜS, KARTE & TOAST */
.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 6px;
    background-color: #233138;
    border: 1px solid #2a3942;
    border-radius: 8px;
    min-width: 200px;
    z-index: 100;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dropdown-menu button,
.dropdown-menu a {
    background: none;
    border: none;
    color: #e9edef;
    text-align: left;
    padding: 11px 14px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: block;
    width: 100%;
}

.dropdown-menu button:hover,
.dropdown-menu a:hover {
    background-color: #111b21;
}

.map-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 300px;
}

#map {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 18px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.mobile-back {
    display: none;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
    }
    .main-content {
        display: none;
        width: 100%;
    }
    body.in-chat .sidebar,
    body.in-myarea .sidebar {
        display: none;
    }
    body.in-chat .main-content,
    body.in-myarea .main-content {
        display: flex;
    }
    .mobile-back {
        display: inline-block;
    }
    .cal-cell {
        min-height: 62px;
        padding: 4px;
    }
}
