.cursor-pointer { cursor: pointer; transition: transform 0.2s; }
.cursor-pointer:hover { transform: translateY(-5px); }

.view-content { animation: fadeIn 0.3s ease-in-out; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#chatWindow { scroll-behavior: smooth; }

.user-msg { 
    align-self: flex-end; 
    background-color: #0d6efd; 
    color: white; 
    max-width: 80%;
    margin-left: auto;
}

.assistant-msg { 
    align-self: flex-start; 
    background-color: white; 
    color: #333; 
    max-width: 80%;
}

.list-group-item { border: none; padding: 15px 1.25rem; border-bottom: 1px solid #eee; }
.list-group-item:last-child { border-bottom: none; }

.transition-transform { transition: transform 0.2s ease; }
.collapsed .transition-transform { transform: rotate(-90deg); }

/* --- FullCalendar Premium Custom Styling --- */
#jobsCalendar {
    font-family: inherit;
    font-size: 0.9rem;
}

.fc {
    --fc-border-color: #eef1f6 !important;
    --fc-button-bg-color: #0d6efd !important;
    --fc-button-border-color: #0d6efd !important;
    --fc-button-hover-bg-color: #0b5ed7 !important;
    --fc-button-hover-border-color: #0a58ca !important;
    --fc-button-active-bg-color: #0a58ca !important;
    --fc-button-active-border-color: #0a53be !important;
    --fc-today-bg-color: rgba(13, 110, 253, 0.04) !important;
}

.fc .fc-toolbar {
    margin-bottom: 1.5rem !important;
    gap: 10px;
    flex-wrap: wrap;
}

.fc .fc-toolbar-title {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    color: #2b303a;
    letter-spacing: -0.02em;
}

.fc .fc-col-header-cell {
    background-color: #f8f9fa;
    padding: 10px 0 !important;
    font-weight: 600 !important;
    color: #495057;
    border-bottom: 2px solid #dee2e6 !important;
}

.fc-event {
    border-radius: 6px !important;
    padding: 3px 6px !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04) !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.2s ease-in-out !important;
}

.fc-event:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08) !important;
    filter: brightness(0.95);
}

.fc-daygrid-event-dot {
    display: none !important;
}

.fc-daygrid-day-number {
    font-weight: 600;
    color: #495057;
    text-decoration: none !important;
    padding: 8px !important;
}

.fc-daygrid-day.fc-day-today {
    background-color: rgba(13, 110, 253, 0.05) !important;
}

/* Site visits aesthetics */
#visitList .list-group-item {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s;
}

#visitList .list-group-item:hover {
    background-color: rgba(13, 110, 253, 0.02);
}

#visitList .list-group-item:last-child {
    border-bottom: none;
}

/* --- Global Loading Overlay --- */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loadingOverlay.d-none {
    display: none !important;
}

.spinner-container {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* --- Chat Loading Animation --- */
.chat-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-style: italic;
    color: #666;
}

.chat-loading .spinner-grow {
    width: 0.8rem;
    height: 0.8rem;
}

/* --- Financial Reporting & Customer Profile Custom Styles --- */
.bg-light-primary {
    background-color: rgba(13, 110, 253, 0.05) !important;
}
.bg-light-success {
    background-color: rgba(25, 135, 84, 0.05) !important;
}
.bg-light-danger {
    background-color: rgba(220, 53, 69, 0.05) !important;
}
.bg-light-warning {
    background-color: rgba(255, 193, 7, 0.05) !important;
}

.progress {
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
}

.table th {
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

/* Hover effects for tables linked to view functions */
.table-hover tbody tr.cursor-pointer:hover {
    background-color: rgba(13, 110, 253, 0.03) !important;
}

/* Responsive table styling details */
.font-monospace {
    font-family: var(--bs-font-monospace);
    font-size: 0.9em;
}

