/* Dashboard Custom Styles */

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    border: none;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    border: none;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
    border: none;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
    border: none;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%) !important;
    border: none;
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #5ee7df 0%, #b490ca 100%) !important;
    border: none;
}

.bg-gradient-light {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) !important;
    border: none;
}

/* Stats Cards */
.stats-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* Quick Actions */
.quick-action-box {
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    color: white !important;
}

.quick-action-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.quick-action-box .box-body {
    padding: 30px 20px;
    text-align: center;
}

.quick-action-box i {
    font-size: 36px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.quick-action-box h5 {
    font-weight: 600;
    margin-bottom: 5px;
}

.quick-action-box small {
    opacity: 0.8;
    font-size: 12px;
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Table Styles */
.table-hover tbody tr {
    cursor: pointer;
    transition: background-color 0.2s;
}

.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,0.02);
}

/* Status Badges */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Refresh Button */
.refresh-btn {
    position: relative;
    overflow: hidden;
}

.refresh-btn .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.refresh-btn.refreshing .spinner {
    opacity: 1;
}

.refresh-btn.refreshing .btn-text {
    opacity: 0;
}

/* Chart Containers */
.chart-container {
    position: relative;
    height: 300px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Modal Custom Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.modal-header {
    border-bottom: 1px solid #eee;
    border-radius: 15px 15px 0 0;
    padding: 20px 30px;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: 1px solid #eee;
    border-radius: 0 0 15px 15px;
    padding: 20px 30px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stats-card .box-body {
        padding: 15px;
    }
    
    .quick-action-box .box-body {
        padding: 20px 10px;
    }
    
    .quick-action-box i {
        font-size: 28px;
    }
}