/* Main Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Card styling */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
}

.card-header {
    border-bottom: 1px solid rgba(0,0,0,.125);
    background-color: #f8f9fa;
}

/* Table styling */
.table {
    background-color: white;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Notification styling */
.notification-item.unread {
    background-color: rgba(0, 123, 255, 0.1);
    border-left: 3px solid #007bff !important;
}

/* Badge customization */
.badge {
    font-weight: 500;
}

/* Form styling */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Sidebar for dashboard */
.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Dashboard cards */
.dashboard-card {
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Status badges */
.badge-status-open { background-color: #6c757d; }
.badge-status-active { background-color: #28a745; }
.badge-status-pending { background-color: #ffc107; color: #212529; }
.badge-status-on_hold { background-color: #dc3545; }
.badge-status-closed { background-color: #17a2b8; }

/* Priority indicators */
.priority-high { border-left: 4px solid #dc3545; }
.priority-medium { border-left: 4px solid #ffc107; }
.priority-low { border-left: 4px solid #28a745; }

/* Case timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #007bff;
    border: 2px solid white;
}

/* Dashboard Specific Styles */
.dashboard-stats-card {
    transition: transform 0.3s;
    border-radius: 10px;
    overflow: hidden;
}

.dashboard-stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.timeline-item {
    padding: 0.75rem;
    border-radius: 8px;
    background: #f8f9fa;
    margin-bottom: 10px;
    border-left: 4px solid #4e73df;
}

.timeline-item:hover {
    background: #e9ecef;
}

.case-priority-high {
    border-left-color: #e74a3b;
}

.case-priority-medium {
    border-left-color: #f6c23e;
}

.case-priority-low {
    border-left-color: #1cc88a;
}

/* Chart containers */
.chart-container {
    position: relative;
    height: 300px;
}

.quick-action-btn {
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s;
}

.quick-action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Status badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Notification bell animation */
.notification-bell {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
        padding-top: 0;
    }
    
    .sidebar-sticky {
        height: auto;
    }
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 0;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 2rem;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 40px;
    bottom: -2rem;
    width: 2px;
    background-color: #dee2e6;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid white;
    background-color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #dee2e6;
}

.timeline-marker.bg-success {
    background-color: #28a745;
}

.timeline-marker.bg-warning {
    background-color: #ffc107;
}

.timeline-marker.bg-info {
    background-color: #17a2b8;
}

.timeline-marker.bg-primary {
    background-color: #007bff;
}

.timeline-marker.bg-danger {
    background-color: #dc3545;
}

.timeline-content {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    border-left: 3px solid #dee2e6;
}

.timeline-content h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.timeline-content .small {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Status badges */
.badge-pending {
    background-color: #6c757d;
}

.badge-in-progress {
    background-color: #007bff;
}

.badge-completed {
    background-color: #28a745;
}

.badge-overdue {
    background-color: #dc3545;
}

.badge-cancelled {
    background-color: #343a40;
}
