@font-face {
    font-family: "bwgradualmedium";
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/Bw_Gradual_Medium/BwGradual-Medium.woff2) format("woff2"),
         url(../fonts/Bw_Gradual_Medium/BwGradual-Medium.woff) format("woff");
}

body {
    font-family: 'bwgradualmedium';
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Backgrounds */
[data-bs-theme="light"] body {
    background-color: #f8f9fa;
    color: #212529;
}

[data-bs-theme="dark"] body {
    background-color: #121212;
    color: #ddd;
}

/* Animations */
@keyframes fadeHighlightLight {
    0% { background-color: #ffffff; }
    50% { background-color: #f8f9fa; }
    100% { background-color: #ffffff; }
}

@keyframes fadeHighlightDark {
    0% { background-color: #333333; }
    50% { background-color: #444444; }
    100% { background-color: #333333; }
}

tr.active-time-entry, tr.active-time-entry td {
    animation: fadeHighlightLight 2.5s infinite alternate ease-in-out !important;
}

[data-bs-theme="dark"] tr.active-time-entry, 
[data-bs-theme="dark"] tr.active-time-entry td {
    animation: fadeHighlightDark 2.5s infinite alternate ease-in-out !important;
}

.kanban-task.recording {
    animation: fadeHighlightDark 2.5s infinite alternate ease-in-out !important;
}

.kanban-board {
    width: calc(100% - 80px);
    hyphens: auto;
}

.kanban-ghost {
    opacity: 0.5;
    background: #444;
    border: 2px dashed #999;
}

.kanban-dragging {
    opacity: 0.8;
    background-color: #333 !important;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.kanban-column {
    background-color: rgba(230, 230, 230, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1%;
    max-height: calc(100vh - 105px);
    overflow-y: auto;
    transition: background-color 0.3s ease;
}

[data-bs-theme="light"] .kanban-column {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
}

.kanban-tasks {
    min-height: calc(100vh - 300px);
}

.kanban-tasks img.rounded-circle {
    background-color: #fff;
    border: 2px solid #eee;
}

[data-bs-theme="dark"] .kanban-tasks img.rounded-circle {
    background-color: #333;
    border: 2px solid #555;
}

.mention {
    color: #0d6efd;
    font-weight: 600;
}

.mention-dropdown {
    max-height: 200px;
    overflow-y: auto;
}

.mention-item {
    padding: 8px 12px;
    cursor: pointer;
}

.mention-item:hover,
.mention-item.active {
    background-color: #f0f0f0;
}

[data-bs-theme="dark"] .mention-item:hover,
[data-bs-theme="dark"] .mention-item.active {
    background-color: #333;
}

.dark-mode .activity-entry {
    padding: 12px 0;
    border-bottom: 1px solid #333;
}

.dark-mode .avatar-sm {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
}

.bubble {
    background: #222;
    border-radius: 10px;
    padding: 10px 12px;
    max-width: 100%;
    color: #ddd;
    transition: background-color 0.3s ease;
}

.bubble-comment {
    background: #2c2c2c;
}

.bubble-log {
    background: #1e1e1e;
    font-style: italic;
    color: #aaa;
}

.mention-with-avatar {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mention-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

#liveStatus.live .dot {
    background-color: #28a745;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

#liveStatus.offline .dot {
    background-color: #dc3545;
}

#liveStatus.loading .dot {
    background-color: #ffc107;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

#kanbanFilterPanel {
    background-color: rgb(33, 37, 41);
    border-right: 1px solid #2a2a2a;
    min-height: 100vh;
}

#kanbanFilterPanel button.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

#kanbanFilterPanel img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border 0.2s;
}

#kanbanFilterPanel button.active img {
    border-color: #fff;
}

#kanbanFilters {
    background-color: rgba(230, 230, 230, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 60px;
}

[data-bs-theme="light"] #kanbanFilters {
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
}

.filter-icon {
    width: 40px;
    height: 40px;
    padding: 0.25rem;
    border: none;
    background: none;
    position: relative;
    border-radius: 50%;
    opacity: 0.5;
}

.filter-icon:hover {
    opacity: 1;
    border: 1px rgba(200, 200, 200, 0.25) solid;
}

.filter-icon .avatar-bg {
    background-color: rgba(250, 250, 250, 0.8);
    border-radius: 50%;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.filter-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.filter-icon.active {
    outline: 2px solid #0d6efd;
    box-shadow: 0 0 4px #0d6efd;
    opacity: 1;
}

.filter-icon.active::after {
    content: "\f26e";
    font-family: bootstrap-icons;
    position: absolute;
    bottom: -12px;
    right: -6px;
    font-size: 1rem;
    color: #0d6efd;
}

#kanbanFilterSidebar {
    width: 80px;
    background-color: rgba(0, 0, 0, 0.25);
}

#userFilters {
    border-bottom: 1px rgba(200, 200, 200, 0.25) solid;
    border-top: 1px rgba(200, 200, 200, 0.25) solid;
    padding-top: 20px;
    margin-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.fallbackavatar {
    font-weight: 600;
    text-transform: uppercase;
    user-select: none;
}

#themeToggle {
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 999;
}


.calendar-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    position: relative;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    min-height: 120px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #444;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Lightmode Border */
[data-bs-theme="light"] .calendar-day {
    border: 1px solid #ccc;
}

/* Zahlen & Beschriftungen */
.day-number { 
    font-size: 24px; 
    font-weight: bold; 
}

.day-week { 
    font-size: 12px; 
    color: gray; 
}

[data-bs-theme="dark"] .day-week {
    color: #aaa;
}

.day-info { 
    font-size: 14px; 
}

/* Status-Styles */
.regular { background-color: #d1e7dd; }  /* Grünlich */
.holiday { background-color: #f8d7da; }  /* Rötlich */
.absent { background-color: #ffeeba; }   /* Gelblich */
.weekend { 
    background-color: #000; 
    color: #fff; 
}

[data-bs-theme="light"] .weekend {
    background-color: #f0f0f0; 
    color: #000; 
}

.empty { 
    background-color: transparent; 
    border: none; 
}

/* Überstunden-Label */
.overtime-label {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}

.overtime-positive { background-color: #28a745; }  /* Grün */
.overtime-negative { background-color: #dc3545; }  /* Rot */

.dimmed { 
    opacity: 0.5; 
}