/* .tasksFilteRow .filterIconBtn { width: 50px; height: 50px;} */
.text-align-middle td,
.text-align-middle th {
    vertical-align: middle;
}

.voice-note-container {
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    display: block; /* Changed to block to ensure new line */
}

.voice-note-player {
    height: 35px;
    width: 250px;
    outline: none;
}

/* Attachment container styles */
.attachment-container {
    margin: 10px 0;
    display: block; /* Ensure attachments are on new line */
}

.attachment-container img {
    max-width: 300px;
    max-height: 300px;
    border-radius: 8px;
    display: block;
}

/* Ensure proper spacing in the description row */
.tdCommentingDescriptionRow p {
    margin-bottom: 10px;
}

/* Hide unwanted audio controls for consistency */
.voice-note-player::-webkit-media-controls-mute-button,
.voice-note-player::-webkit-media-controls-volume-slider,
.voice-note-player::-webkit-media-controls-volume-control-container,
.voice-note-player::-webkit-media-controls-overflow-button {
    display: none !important;
}

/* For Firefox */
.voice-note-player::-moz-media-controls-mute-button,
.voice-note-player::-moz-media-controls-volume-slider {
    display: none !important;
}

/* Ensure only play button and timeline are visible */
.voice-note-player::-webkit-media-controls-panel {
    display: flex !important;
}

.voice-note-player::-webkit-media-controls-play-button {
    display: flex !important;
}

.voice-note-player::-webkit-media-controls-timeline {
    display: flex !important;
}

.voice-note-player::-webkit-media-controls-current-time-display,
.voice-note-player::-webkit-media-controls-time-remaining-display {
    display: flex !important;
}

#suggestions {
    position: absolute;
    top: 100%; /* Position it below the input field */
    left: 0;
    width: 100%;
    max-height: 200px; /* Adjust as needed for max visible items */
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Higher value to ensure it appears above other elements */
    display: none; /* Hidden by default */
    overflow-y: auto; /* Enables scrolling */
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}

/* Voice Recording Styles */
.voiceRecorder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.voiceRecorder:hover {
    background: #e1e8ed;
    transform: scale(1.05);
}

.voiceRecorder.recording {
    background: #ff4444;
    animation: pulse 1.5s infinite;
}

.voiceRecorder.recording:hover {
    background: #ff3333;
}

.voiceRecorder i {
    font-size: 18px;
    color: #4a5568;
}

.voiceRecorder.recording i {
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

/* Recording Timer */
.recordingTimer {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ff4444;
    font-size: 14px;
    font-weight: 500;
    margin-right: 10px;
}

.recordingDot {
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Audio Preview Styles */
.audioPreviewSection {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 10px;
    animation: slideIn 0.3s ease;
}

.audioPreviewSection audio {
    height: 32px;
    width: 200px;
}

/* Hide unwanted audio controls */
.audioPreviewSection audio::-webkit-media-controls-mute-button,
.audioPreviewSection audio::-webkit-media-controls-volume-slider,
.audioPreviewSection audio::-webkit-media-controls-volume-control-container,
.audioPreviewSection audio::-webkit-media-controls-overflow-button {
    display: none !important;
}

/* For Firefox */
.audioPreviewSection audio::-moz-media-controls-mute-button,
.audioPreviewSection audio::-moz-media-controls-volume-slider {
    display: none !important;
}

/* Ensure only play button and timeline are visible */
.audioPreviewSection audio::-webkit-media-controls-panel {
    display: flex !important;
}

.audioPreviewSection audio::-webkit-media-controls-play-button {
    display: flex !important;
}

.audioPreviewSection audio::-webkit-media-controls-timeline {
    display: flex !important;
}

.audioPreviewSection audio::-webkit-media-controls-current-time-display,
.audioPreviewSection audio::-webkit-media-controls-time-remaining-display {
    display: flex !important;
}

.deleteAudioBtn {
    background: transparent;
    color: #ff4444;
    border: 1px solid #ff4444;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.deleteAudioBtn:hover {
    background: #ff4444;
    color: white;
}

.deleteAudioBtn i {
    font-size: 14px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hidden class - important for toggling */
.hidden {
    display: none !important;
}

/* Adjust existing button styles */
.chatFormBtnArea {
    display: flex;
    align-items: center;
    gap: 10px;
}

.attactChatImg {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.attactChatImg svg {
    width: 20px;
    height: 20px;
}

/* CSS for notification page  */
.unread-notification {
    background-color: #fff3cd !important;
    font-weight: 500;
}

/* Optional: Slightly darker yellow on hover */
.unread-notification:hover {
    background-color: #ffc107 !important;
}

/* Optional: Add subtle animation when marking as read */
tr {
    transition: background-color 0.3s ease;
}

/* Optional: Add a visual indicator for unread status */
.unread-notification td:first-child::before {
    content: "•";
    color: #ff5722;
    font-size: 20px;
    margin-right: 5px;
    vertical-align: middle;
}

/* Dashboard UI design  */
.dashboard-card {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.data-box {
    flex: 0 0 calc(50% - 8px);
    padding: 16px 16px 50px;
    border-radius: 8px;
    background: #e3edf7;
}
.dashboard-page .card-status {
    display: flex;
    flex-wrap: wrap;
}
.dashboard-page .data-box .title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #000;
    font-weight: 600;
}
.dashboard-page .data-box .title img {
    margin-right: 10px;
}

.dashboard-page .stat-card {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    width: 23%;
    margin-right: 16px;
    margin-bottom: 16px;
}
.stat-card .count {
    font-size: 48px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}
.chard-card {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
    width: 20%;
}
.stat-card .card-heading {
    margin-bottom: 15px;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.stat-card h2 {
    font-size: 28px;
    margin: 0;
    font-weight: bold;
}

.badge {
    font-size: 12px;
    padding: 4px 8px;
}

/* hit ticket upload file zone */
.simple-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
}

.simple-filename {
    flex: 1;
    word-break: break-word;
    margin-right: 10px;
}

.simple-delete-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: background-color 0.2s;
}

.simple-delete-btn:hover {
    background-color: #dc3545;
}

#fileList {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dashboard-page .task-filter {
    margin: 30px 0 20px;
}
@media screen and (max-width: 1490px) {
    .dashboard-page .card-status {
        justify-content: space-between;
    }
    .dashboard-page .stat-card {
        width: 48%;
        margin: 0 0 16px;
    }
}
@media screen and (max-width: 576px) {
    .card-status {
        flex-wrap: wrap;
    }
    .stat-card {
        width: 48%;
        margin-right: 0;
        margin: 0 1% 30px;
    }
    .chard-card {
        margin-left: 0;
    }
}

/* Hit ticket nested options styles starts */
.checkListBox,
.addcheckListRow,
.fmsAddQusRow,
.fmsAddQusCol,
.entryChecklistRow,
.nested-wrapper,
.options-wrapper {
    position: relative;
    z-index: 1;
}

.sortable-chosen,
.sortable-ghost {
    z-index: 10 !important;
}

.button-group,
button[type="submit"].btn.light-green {
    position: relative;
    z-index: 9999;
}

.form-container {
    position: relative;
    z-index: 2;
}
.nested-wrapper {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.nested-options-container {
    margin-bottom: 15px;
}

.nested-option-row {
    position: relative;
    padding: 12px;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #2196f3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.nested-option-row:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.nested-option-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nested-children {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 2px solid #e0e0e0;
}

.btn-icon {
    padding: 5px 10px;
    border: none;
    background: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

.add-child-option {
    background: #e3f2fd;
}

.add-child-option:hover {
    background: #bbdefb;
}

.remove-nested-option {
    background: #ffebee;
}

.remove-nested-option:hover {
    background: #ffcdd2;
}

.btn-add-sibling-level {
    padding: 6px 12px;
    background: #e8f5e9;
    border: 1px solid #81c784;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-add-sibling-level:hover {
    background: #c8e6c9;
    border-color: #66bb6a;
    transform: translateX(2px);
}

.btn-add-sibling-level img {
    width: 14px;
    height: 14px;
}

.button-group {
    position: relative;
    z-index: 9999;
}

.checkListBox,
.fmsAddQusCol,
.fmsAddQusRow,
.nested-wrapper,
.options-wrapper {
    position: relative;
    z-index: 1;
}

.sortable-chosen,
.sortable-ghost {
    z-index: 10 !important;
}

.nested-option-row[data-level="0"] {
    border-left-color: #2196f3;
    border-left-width: 4px;
}

.nested-option-row[data-level="1"] {
    border-left-color: #4caf50;
    border-left-width: 3px;
}

.nested-option-row[data-level="2"] {
    border-left-color: #ff9800;
    border-left-width: 3px;
}

.nested-option-row[data-level="3"] {
    border-left-color: #9c27b0;
    border-left-width: 2px;
}
/* Hit ticket nested options styles ends */

.action-container-with-reason {
    display: flex;
    align-items: center; /* vertically align both items */
    gap: 8px; /* space between the two divs */
}

.extra-info {
    display: inline-block;
}

td.tablebtn.tdNoWrap .action-container-with-reason .dropdown-menu {
    width: 120px !important;
}

/* Fix for checklist popup overlay issue */
/* When a popup is active, elevate the entire checklist container */
.checkListBox {
    position: relative;
    z-index: 1;
}

/* Elevate the container when it has an active popup */
.checkListBox:has(.otherInfoChWrap[style*="display: block"]),
.checkListBox:has(.otherInfoChWrap[style*="display:block"]) {
    z-index: 9999 !important;
}

/* Ensure the popup itself has the highest z-index */
.otherInfoChWrap {
    position: absolute;
    z-index: 10000 !important;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Fallback for browsers that don't support :has() */
.checkListBox.popup-active {
    z-index: 9999 !important;
}
