/* Dashboard */
.dashboard-heading {
    font-size: 18px;
    font-weight: bold;
}

/* Stat Icon Box */
.stat-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    flex-shrink: 0;
}

.stat-icon-box svg {
    width: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    margin-left: -3px !important;
    margin-top: -3px !important;
}

.icon-bg-green {
    background-color: #e6f4ea;
    color: #1e8e3e;
}

.icon-bg-teal {
    background-color: #e0f2f1;
    color: #00897b;
}

.icon-bg-red {
    background-color: #fce8e6;
    color: #d93025;
}

.icon-bg-blue {
    background-color: #e8f0fe;
    color: #1a73e8;
}

.icon-bg-orange {
    background-color: #fef7e0;
    color: #e37400;
}

/* Ensure Polaris cards stay white if not in dark mode container */
.Polaris-Card {
    background-color: white !important;
    color: var(--p-color-text) !important;
}

/* Sync Pulse Animation */
@keyframes sync-pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.quick-action-card:hover {
    border-color: var(--p-color-border-hover) !important;
    background-color: var(--p-color-bg-surface-hover) !important;
    box-shadow: var(--p-shadow-100);
}

.sync-pulse {
    animation: sync-pulse 2s infinite;
}

/* Custom Badges */
.custom-badge {
    display: inline-flex;
    align-items: center;
    gap: 0px;
    padding: 5px 14px 5px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    border: 1px solid transparent;
    font-weight: 600;
}

.custom-badge span {
    margin-bottom: -3px !important;
}

.custom-badge-failed {
    background-color: rgba(255, 82, 82, 0.15);
    border-color: rgba(255, 82, 82, 0.3);
    color: #CF3636;
}

.custom-badge-success {
    background-color: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
    color: #259F73;
}

.custom-badge-partial {
    background-color: rgba(255, 152, 0, 0.15);
    border-color: rgba(255, 152, 0, 0.3);
    color: #F59A0E;
}

.custom-badge svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Dashboard Sections */
.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--p-shadow-100);
    border: 1px solid var(--p-color-border);
    height: 100%;
}

/* Transfer Health */
.transfer-health-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-bar-container {
    height: 6px;
    background-color: #f1f1f1;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 6px;
    width: 100%;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
}

.progress-bar-fill.success {
    background-color: #30c78d;
}

.progress-bar-fill.warning {
    background-color: #ffc96b;
}

.progress-bar-fill.critical {
    background-color: #ff5252;
}

/* Today's Stats */
.stat-mini-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #f1f1f1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-mini-card.success {
    background: #f0fdf4;
    border-color: #dcfce7;
}

.stat-mini-card.failed {
    background: #fef2f2;
    border-color: #fee2e2;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 8px;
}

.stat-label {
    font-size: 13px;
    color: #616161;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Custom Pagination Styles */
.custom-pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination-button {
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #202223;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination-button:hover:not(:disabled) {
    background-color: #f6f6f7;
    border-color: #c9cccf;
}

.pagination-button.active {
    background-color: #00bfa5;
    color: #ffffff;
    border-color: #00bfa5;
}

.pagination-button:disabled {
    background-color: #f1f2f3;
    color: #8c9196;
    border-color: #e1e3e5;
    cursor: not-allowed;
}

.recent-activity-list-container {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Direction Toggle */
.direction-toggle-container {
    display: flex;
    background: #f1f2f3;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
    border: 1px solid #e1e3e5;
}

.direction-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #616161;
    transition: all 0.2s ease;
}

.direction-toggle-btn.active {
    background: white;
    color: #00897b;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.direction-toggle-btn:hover:not(.active) {
    background: rgba(0, 0, 0, 0.05);
}

.direction-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.direction-toggle-btn.active svg {
    color: #00897b;
}