/* Custom styles for Elle TicimaxFeed Dashboard */

/* Smooth transitions */
* {
    transition: all 0.2s ease-in-out;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

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

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-success {
    background-color: #dcfce7;
    color: #166534;
}

.status-failed {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-running {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-warning {
    background-color: #fef3c7;
    color: #92400e;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card hover effect */
.dashboard-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Stats number animation */
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

/* Table alternating rows */
.table-striped tbody tr:nth-child(odd) {
    background-color: #f9fafb;
}

/* Form input focus */
.form-input:focus {
    border-color: #3b82f6;
    ring: 2px;
    ring-color: #3b82f6;
    ring-opacity: 0.5;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Responsive sidebar */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }
}
