/* Autotask Metrics Styling */
.autotask-metrics-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.autotask-metric-box {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.autotask-metric-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.autotask-metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.autotask-metric-header h3 {
    margin: 0;
    font-size: 18px;
    color: #23282d;
}

.autotask-period {
    font-size: 12px;
    color: #666;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
}

.autotask-metric-count {
    font-size: 48px;
    font-weight: bold;
    color: #0073aa;
    text-align: center;
    margin: 20px 0;
}

.autotask-metric-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
}

.autotask-metric-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.autotask-metric-details li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.autotask-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px 0;
}

/* Loading state */
.autotask-metric-box.loading .autotask-metric-count::after {
    content: "...";
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Responsive design */
@media (max-width: 768px) {
    .autotask-metrics-dashboard {
        grid-template-columns: 1fr;
    }
    
    .autotask-metric-count {
        font-size: 36px;
    }
}
