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;
}

.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;
}
.left-sidebar, .app-header {
    top: 0 !important;
}
.container-fluid {
    padding-top: 90px !important;
}

/* Task Index Page Responsive Styles */
@media (max-width: 767.98px) {
    .container-fluid {
        padding-top: 80px !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Make action buttons stack vertically on mobile */
    .btn-group-sm .btn {
        margin-bottom: 0.25rem;
        width: 100%;
    }

    .btn-group-vertical {
        width: 100%;
    }
}

/* Tablet styles (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container-fluid {
        padding-top: 85px !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Ensure Add Task button is visible and not hidden */
    .card-header .btn, .card-body .btn-primary {
        position: relative !important;
        z-index: 10 !important;
    }
}

/* Task table responsive improvements */
.task-management .table-responsive {
    border-radius: 0.375rem;
    overflow-x: auto;
}

.task-management .form-select-sm {
    font-size: 0.8125rem;
    padding: 0.25rem 0.5rem;
}

.task-management .btn-group-sm .btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
}

/* Ensure proper spacing in cards */
.task-management .card-body {
    padding: 0.75rem;
}

/* Stats cards layout */
@media (max-width: 575.98px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .stats-grid .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Filters responsive */
@media (max-width: 767.98px) {
    .filters-section .row {
        margin-bottom: 0;
    }

    .filters-section .col-12 {
        margin-bottom: 0.75rem;
    }
}

/* Modal z-index fixes for proper stacking - OVERRIDE ALL */
.modal {
    z-index: 99999 !important;
}

.modal-backdrop {
    z-index: 99990 !important;
}

.modal-dialog {
    z-index: 100000 !important;
}

/* Ensure modal content is above backdrop */
.modal.show .modal-dialog {
    z-index: 100000 !important;
}

/* Fix for modal content stacking */
.modal-content {
    position: relative;
    z-index: 100010 !important;
}

.modal-header,
.modal-body,
.modal-footer {
    position: relative;
    z-index: 100010 !important;
}

/* List group items in modal should be clickable */
.modal .list-group-item {
    cursor: pointer !important;
    position: relative;
    z-index: 100020 !important;
    pointer-events: auto !important;
}

.modal .list-group-item:hover {
    background-color: var(--bs-light);
}

/* Ensure buttons in modal are clickable */
.modal button,
.modal .btn {
    position: relative;
    z-index: 100020 !important;
    pointer-events: auto !important;
}

/* Force pointer events on modal elements */
.modal * {
    pointer-events: auto !important;
}

/* Override any conflicting pointer-events */
.modal-backdrop ~ * {
    pointer-events: none !important;
}

.modal {
    pointer-events: none !important;
}

.modal.show {
    pointer-events: auto !important;
}

/* Highlight animation for followup section */
.highlight-followup {
    animation: highlightPulse 2s ease-in-out;
}

@keyframes highlightPulse {
    0% {
        transform: scale(1);
        background-color: inherit;
    }
    50% {
        transform: scale(1.02);
        background-color: rgba(13, 110, 253, 0.1);
        border-radius: 10px;
        box-shadow: 0 0 15px rgba(13, 110, 253, 0.3);
    }
    100% {
        transform: scale(1);
        background-color: inherit;
    }
}

/* Followup timeline styling with theme alignment */
.timeline-message {
    margin: 0;
    line-height: 1.6;
    color: var(--bs-body-color);
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.avatar-circle span {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.timeline-panel {
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    border: none !important;
    transition: all 0.3s ease;
}

.timeline-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.timeline-badge {
    background: #fff;
    border: 4px solid #e9ecef;
}

.timeline-title {
    color: var(--bs-heading-color);
    margin-bottom: 8px;
}

.timeline-title .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-left: 8px;
}

/* Responsive improvements for timeline */
@media (max-width: 768px) {
    .avatar-circle {
        width: 28px;
        height: 28px;
    }

    .avatar-circle span {
        font-size: 12px;
    }

    .timeline-message {
        font-size: 0.95rem;
    }
}


