/**
 * iFlows Admin Dashboard Styles
 *
 * @package iFlows_for_WooCommerce
 * @since 1.0.0
 */

.iflows-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.iflows-dashboard-cards .card {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    padding: 20px;
    border-radius: 4px;
    transition: box-shadow 0.2s ease;
}

.iflows-dashboard-cards .card:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.iflows-dashboard-cards .card h3 {
    margin: 0 0 15px 0;
    color: #23282d;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.iflows-dashboard-cards .number {
    font-size: 32px;
    font-weight: 600;
    color: #0073aa;
    line-height: 1;
    margin-bottom: 5px;
}

.iflows-dashboard-cards .status {
    font-size: 18px;
    font-weight: 600;
}

.iflows-dashboard-cards .status.connected {
    color: #46b450;
}

.iflows-dashboard-cards .status.error {
    color: #dc3232;
}

.iflows-dashboard-cards .time {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

.iflows-quick-actions,
.iflows-recent-activity {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.iflows-quick-actions h2,
.iflows-recent-activity h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.iflows-quick-actions .button {
    margin-right: 5px;
    margin-bottom: 5px;
}

/* ========================================
   Progress Modal Styles
   ======================================== */

.iflows-progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.iflows-progress-content {
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    min-width: 400px;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.iflows-progress-content h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
    text-align: center;
}

.iflows-progress-message {
    text-align: center;
    margin-bottom: 16px;
    font-size: 14px;
    color: #50575e;
    min-height: 20px;
}

.iflows-progress-bar {
    width: 100%;
    height: 28px;
    background: #f0f0f1;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.iflows-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1 0%, #135e96 100%);
    border-radius: 14px;
    transition: width 0.5s ease;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.3);
}

.iflows-progress-percent {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #2271b1;
}

/* Success and Error states */
.iflows-progress-content.success {
    border-top: 4px solid #46b450;
}

.iflows-progress-content.success .iflows-progress-message {
    color: #46b450;
    font-weight: 600;
}

.iflows-progress-content.success .iflows-progress-fill {
    background: linear-gradient(90deg, #46b450 0%, #2e7d32 100%);
}

.iflows-progress-content.error {
    border-top: 4px solid #d63638;
}

.iflows-progress-content.error .iflows-progress-message {
    color: #d63638;
    font-weight: 600;
}

.iflows-progress-content.error .iflows-progress-fill {
    background: linear-gradient(90deg, #d63638 0%, #b71c1c 100%);
}

/* Responsive */
@media screen and (max-width: 600px) {
    .iflows-progress-content {
        min-width: auto;
        width: 90%;
        padding: 24px;
    }
}