/* CSS Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 50;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.online-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.online {
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.offline {
    background-color: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.date-picker {
    position: relative;
}

.date-picker-input {
    cursor: pointer;
}

.action-btn {
    transition: all 0.2s ease;
}

.action-btn:hover {
    transform: scale(1.1);
}

.table-container {
    overflow-x: auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.stat-card {
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.chart-container {
    position: relative;
    height: 300px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #cddaf0ff;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

.progress-bar {
    width: 0%;
    transition: width 1s ease-in-out;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.card-hover {
    transition: all 0.3s ease;
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-overlay.active {
    display: flex;
}

@media (max-width: 768px) {
    .table-container {
        font-size: 0.875rem;
    }
    
    .action-btn-container {
        display: flex;
        gap: 0.5rem;
    }
}