html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}


body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.875rem; /* 14px */
    line-height: 1.4;
}

/* === Fix Chrome form alignment issues === */
.form-control,
.form-select,
.btn {
    font-size: 0.875rem; /* match body */
    line-height: 1.4;
    height: 38px; /* Bootstrap default */
    padding: 0.375rem 0.75rem;
}


@media (min-width: 768px) {

    #drop-zone {
        max-width: 600px;
    }

    .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;
    }


    body {
        margin-bottom: 60px;
    }

    .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;
    }

    #drop-zone {
        border: 2px dashed #0d6efd;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: #0d6efd;
        min-height: 100px;
        border-radius: .5rem;
    }

    #audioPlayback {
        width: 100%; /* Ensures the audio control stretches across the full width */
        display: block; /* Ensures no unwanted inline spacing */
    }

    /* Make the circle border darker when not checked */
    .form-check-input {
        border: 2px solid black; /* Darker border */
    }

        /* When checked, use the default styling */
        .form-check-input:checked {
            border: 2px solid #0d6efd; /* Bootstrap primary color or any other */
        }

    .dot-container {
        display: flex;
        justify-content: center; /* centers horizontally */
        align-items: center; /* optional: centers vertically */
        height: 50px; /* or whatever height you need */
    }

    .recording-indicator {
        display: none;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background-color: red;
        box-shadow: 0 0 0 rgba(255, 0, 0, 0.4);
        animation: pulse 1.5s infinite;
    }

        .recording-indicator.visible {
            display: block !important;
        }

    .scribe-page .container {
        max-width: 100% !important;
        width: 100% !important;
    }

    .scribe-page main {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
        }

        70% {
            box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
        }
    }

    .scribe-notes-panel {
        max-height: 65vh;
        overflow-y: auto;
        white-space: pre-wrap;
        padding-right: .5rem;
    }

    .template-preview-body {
        white-space: pre-wrap; /* preserves line breaks */
        word-break: break-word; /* prevents overflow */
        font-family: inherit;
        line-height: 1.5;
        max-height: calc(100vh - 220px);
        overflow-y: auto;
    }

    /* All prompt names look clickable */
    .prompt-link {
        cursor: pointer;
        text-decoration: underline;
    }

    /* When parent list item is active */
    .list-group-item.active .prompt-link {
        color: #fff !important; /* force white */
        text-decoration: none; /* no underline for active */
    }

    /* Muted public prompts (non-owned) */
    .prompt-link.text-muted {
        text-decoration: underline;
        opacity: 0.75;
    }

    .template-name {
        cursor: pointer;
        text-decoration: underline;
        color: #000;
    }

    .template-default {
        font-weight: 700;
    }

    .template-previewed {
        background-color: #f8f9fa; /* subtle gray */
    }

    .template-preview-body {
        white-space: pre-wrap !important;
    }

    .search-row {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .scribe-actions {
        width: 1%;
        white-space: nowrap;
    }

    .scribe-actions .btn {
        padding: 0.25rem 0.4rem;
        font-size: 0.8rem;
    }

    .scribe-actions .btn i {
        margin: 0;
    }

    .patient-cell {
        width: 99%;
    }
    /* --- Scribe action buttons --- */
    .scribe-actions .btn {
        padding: 0.25rem 0.45rem;
        border-radius: 0.375rem;
        transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    }

    /* Change (blue) */
    .scribe-actions .btn-outline-primary:hover {
        background-color: #0d6efd;
        color: #fff;
        border-color: #0d6efd;
    }

    /* Delete (red) */
    .scribe-actions .btn-outline-danger:hover {
        background-color: #dc3545;
        color: #fff;
        border-color: #dc3545;
    }

    /* Regenerate (gray) */
    .scribe-actions .btn-outline-secondary:hover {
        background-color: #6c757d;
        color: #fff;
        border-color: #6c757d;
    }

    /* Lock scribe row height */
    #scribesTable tr {
        height: 56px;
    }

    /* Prevent text wrapping inside rows */
    #scribesTable td {
        vertical-align: middle;
    }

    /* Patient cell text control */
    .patient-cell {
        line-height: 1.2;
        max-height: 48px;
        overflow: hidden;
    }

    .patient-cell small {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .scribe-actions {
        opacity: 0.4;
    }

    #scribesTable tr:hover .scribe-actions {
        opacity: 1;
    }

    /* Emphasize card headers (section titles) */
    .card-header {
        font-weight: 600; /* semi-bold (not shouty) */
        font-size: 0.95rem; /* slightly larger than body */
        letter-spacing: 0.2px; /* subtle clarity */
        background-color: #fff; /* keep clean */
    }

}


