/* Additional Styles for StarPago Dashboard */

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-success {
    background: #c6f6d5;
    color: #22543d;
}

.status-pending {
    background: #feebc8;
    color: #744210;
}

.status-failed {
    background: #fed7d7;
    color: #c53030;
}

/* Currency flags */
.currency-flag {
    display: inline-block;
    width: 20px;
    height: 15px;
    background-size: cover;
    margin-right: 5px;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.flag-id {
    background-image: url('https://flagcdn.com/w20/id.png');
}

.flag-th {
    background-image: url('https://flagcdn.com/w20/th.png');
}

.flag-sg {
    background-image: url('https://flagcdn.com/w20/sg.png');
}

.flag-my {
    background-image: url('https://flagcdn.com/w20/my.png');
}

.flag-us {
    background-image: url('https://flagcdn.com/w20/us.png');
}

.flag-vn {
    background-image: url('https://flagcdn.com/w20/vn.png');
}

.flag-ph {
    background-image: url('https://flagcdn.com/w20/ph.png');
}

/* Loading animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}