/* Dashboard Styles */

/* Cards */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}

/* Statistics Cards */
.card .fs-1 {
    font-size: 3rem !important;
}

/* Activity Feed */
.activity-feed {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    transition: background-color 0.2s;
}

.activity-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 5px;
    padding: 10px;
    margin-left: -10px;
    margin-right: -10px;
}

.activity-icon {
    flex-shrink: 0;
}

/* Timeline */
.timeline {
    max-height: 450px;
    overflow-y: auto;
}

.timeline-item {
    position: relative;
}

.timeline-icon {
    flex-shrink: 0;
}

/* Progress bars */
.progress {
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Tables */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Button Groups */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Chart containers */
canvas {
    max-height: 300px;
}

/* Card headers */
.card-header {
    font-weight: 600;
}

/* Gradient backgrounds */
.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* List groups */
.list-group-flush .list-group-item {
    border-left: 0;
    border-right: 0;
}

.list-group-flush .list-group-item:first-child {
    border-top: 0;
}

.list-group-flush .list-group-item:last-child {
    border-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card .fs-1 {
        font-size: 2rem !important;
    }
    
    .activity-feed,
    .timeline {
        max-height: 300px;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Bootstrap subtle colors for badges */
.bg-primary-subtle {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-info-subtle {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

.bg-warning-subtle {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-danger-subtle {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.text-primary {
    color: #0d6efd !important;
}

.text-success {
    color: #198754 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* Custom scrollbar for activity feed and timeline */
.activity-feed::-webkit-scrollbar,
.timeline::-webkit-scrollbar {
    width: 6px;
}

.activity-feed::-webkit-scrollbar-track,
.timeline::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.activity-feed::-webkit-scrollbar-thumb,
.timeline::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.activity-feed::-webkit-scrollbar-thumb:hover,
.timeline::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animation for stats cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease-out;
}

/* Quick action buttons */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
