/* SRT Ticket System - Tabler Custom Overrides */

/* Notification Dropdown */
.notification-dropdown {
    padding: 0;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--tblr-border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: var(--tblr-bg-surface-secondary);
}

.notification-item.unread {
    background-color: rgba(var(--tblr-primary-rgb), 0.04);
    border-left: 3px solid var(--tblr-primary);
}

.notification-badge {
    font-size: 0.65rem;
}

/* Ticket Description */
.ticket-description {
    background-color: var(--tblr-bg-surface-secondary);
    padding: 1rem;
    border-radius: var(--tblr-border-radius);
    margin-top: 1rem;
}

/* SLA Progress */
.sla-progress {
    height: 8px;
    border-radius: 4px;
}

/* Comments */
.comment-internal {
    background-color: rgba(var(--tblr-warning-rgb), 0.1);
    border-left: 3px solid var(--tblr-warning);
}

/* Charts */
canvas {
    max-height: 300px;
}

/* Text truncate multi-line */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animation */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

/* Print styles */
@media print {
    .navbar,
    .navbar-vertical,
    .btn,
    .notification-dropdown,
    .footer {
        display: none !important;
    }
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Status colors */
.status-open { color: var(--tblr-blue); }
.status-in_progress { color: var(--tblr-cyan); }
.status-pending { color: var(--tblr-yellow); }
.status-resolved { color: var(--tblr-green); }
.status-closed { color: var(--tblr-secondary); }

/* Priority indicators */
.priority-critical { border-left: 4px solid var(--tblr-red); }
.priority-high { border-left: 4px solid var(--tblr-orange); }
.priority-medium { border-left: 4px solid var(--tblr-yellow); }
.priority-low { border-left: 4px solid var(--tblr-green); }

/* Legend dot for dashboard charts */
.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Separated progress bar */
.progress-separated .progress-bar + .progress-bar {
    margin-left: 2px;
}

.progress-separated {
    border-radius: 6px;
    overflow: hidden;
}

/* Stat card hover effect */
.card:hover .stat-icon {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Responsive fixes */
@media (max-width: 991.98px) {
    .page-body .container-xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Stack stat cards on mobile */
    .row-deck > [class*="col-xl-"],
    .row-deck > [class*="col-lg-"] {
        margin-bottom: 0.75rem;
    }

    /* Notification dropdown full width on mobile */
    .notification-dropdown .card {
        width: 100vw !important;
        max-width: 380px;
    }
}

@media (max-width: 575.98px) {
    /* Full width cards on small screens */
    .row > [class*="col-md-"],
    .row > [class*="col-sm-6"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .page-header .row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .page-header .col-auto.ms-auto {
        margin-left: 0 !important;
    }
}
