html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.login-card {
    max-width: 800px;
    width: 100%;
    padding: 2rem;
    background: white;
    border-radius: .375rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.sort-link {
    cursor: pointer;
    text-decoration: none;
    text-decoration-color: unset;
}

.sort-icon {
    font-size: 1rem;
}

.table-clickable-row {
    cursor: pointer;
}

    .table-clickable-row:hover td {
        background-color: #a9d4ff;
    }

/* Hover effect voor menu-items */
.navbar .nav-link {
    border: 2px solid transparent;
    border-radius: .375rem; /* zelfde radius als Bootstrap btn-outline */
    transition: all 0.2s ease-in-out;
    padding: .35rem .75rem;
    margin-right: 1rem;
    color: #0d6efd;
}

    /* Hover highlight zoals outline-button */
    .navbar .nav-link:hover {
        border-color: #0d6efd; /* primaire Bootstrap kleur */
        background-color: rgba(13, 110, 253, 0.05);
    }

    /* Actieve link behoudt outline */
    .navbar .nav-link.active {
        color: #0d6efd;
        border-color: #0d6efd;
        background-color: rgba(13, 110, 253, 0.05);
    }

/* Verwijder standaard bootstrap caret van dropdown-toggle */
.user-dropdown .dropdown-toggle::after {
    display: none !important;
}

.fi {
    width: 20px;
    height: 15px;
    background-size: cover;
    display: inline-block;
}

/* CHAT */
.chat-btn {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    transition: background-color 0.3s ease;
}

    /* highlight bij nieuw bericht */
    .chat-btn.new-message {
        background-color: #dc3545 !important; /* rood */
        animation: shake 0.4s ease-in-out 2; /* beweeg 2x */
    }

/* shake animatie */
@keyframes shake {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-3px, 0);
    }

    50% {
        transform: translate(3px, 0);
    }

    75% {
        transform: translate(-3px, 0);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Chat button highlight bij nieuwe berichten */
#open-chat.new-message {
    background-color: #dc3545 !important; /* rood */
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Nieuwe berichten in de lijst */
.chat-message.new {
    background-color: #e7f1ff !important; /* lichtblauw */
    transition: background-color 1s ease;
}

/* Bij openen: fade-out */
.chat-message.read {
    background-color: white !important;
    transition: background-color 1.5s ease;
}

/* TASKS */

.task-card {
    cursor: grab;
    border-left: 4px solid #0d6efd; /* standaard blauwe accent */
    transition: box-shadow 0.2s;
}

    .task-card.dragging {
        opacity: 0.7;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    .task-card .drag-handle {
        cursor: grab;
        color: #6c757d;
        display: flex;
        align-items: center;
    }

        .task-card .drag-handle:hover {
            color: #0d6efd;
        }

    /* Status kleuren (voorbeeld) */
    .task-card.status-pending {
        border-left-color: #ffc107;
    }

    .task-card.status-inprogress {
        border-left-color: #0dcaf0;
    }

    .task-card.status-completed {
        border-left-color: #198754;
    }


/* highlight animation for realtime changes */
.realtime-highlight {
    animation: rtFlash 1.6s ease-in-out;
}

@keyframes rtFlash {
    0% {
        background-color: rgba(51, 153, 255, 0.18);
    }

    50% {
        background-color: rgba(51, 153, 255, 0.30);
        transform: scale(1.01);
    }

    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

/* small list flash */
.realtime-list-flash {
    animation: listFlash 0.9s ease-in-out;
}

@keyframes listFlash {
    0% {
        box-shadow: 0 0 0 rgba(0,0,0,0);
    }

    50% {
        box-shadow: 0 8px 30px rgba(51,153,255,0.15);
    }

    100% {
        box-shadow: none;
    }
}
