/* Dashboard Container */
.xsr-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Card Styling */
.xsr-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Balance Card Specifics */
.xsr-balance-card {
    background: linear-gradient(135deg, #1a365d 0%, #2a4365 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.xsr-credit-count {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin: 10px 0;
}
.xsr-btn {
    background: #48bb78;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}
.xsr-btn:hover { background: #38a169; }

/* Table Styling */
.xsr-table-wrapper { overflow-x: auto; }
.xsr-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
.xsr-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #edf2f7;
    color: #4a5568;
}
.xsr-table td {
    padding: 12px;
    border-bottom: 1px solid #edf2f7;
}

/* Status Badges */
.xsr-status {
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
}
.status-sent { background: #c6f6d5; color: #22543d; }
.status-error, .status-failed { background: #fed7d7; color: #822727; }
.status-received { background: #e2e8f0; color: #2d3748; }

.xsr-feedback-card {
    border-left: 5px solid #ecc94b; /* Yellow warning color */
}

.xsr-feedback-item {
    background: #fffaf0;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    gap: 15px;
}

.xsr-feedback-date {
    font-weight: bold;
    color: #b7791f;
    min-width: 50px;
}

.xsr-feedback-text {
    margin: 0;
    color: #2d3748;
}

.xsr-empty-state {
    color: #718096;
    font-style: italic;
    padding: 10px 0;
}

.xsr-status-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.xsr-status-wrapper h3 {
    margin: 0;
}

.xsr-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background: rgba(72, 187, 120, 0.2); /* Soft Green */
    color: #c6f6d5; /* Light Green text for dark background */
}

.badge-error {
    background: rgba(245, 101, 101, 0.2); /* Soft Red */
    color: #fed7d7;
}


/* Review Choice buttons */
.xsr-choice-wrapper {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
}
.xsr-choice-heading {
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}
.xsr-button-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.xsr-card {
    flex: 1;
    background: #ffffff;
    border: 2px solid #eaeaea;
    border-radius: 16px;
    padding: 25px 15px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.xsr-card:hover {
    border-color: #0073aa;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}
.xsr-emoji {
    font-size: 50px;
    margin-bottom: 10px;
    display: block;
}
.xsr-label {
    color: #444;
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}
.xsr-card-positive:hover { border-color: #28a745; }
.xsr-card-negative:hover { border-color: #dc3545; }

@media (max-width: 400px) {
    .xsr-button-grid { flex-direction: column; }
}

.acf-form-submit {text-align:center;}
.acf-form-submit .acf-button {background-color:#28a745;border:none;border-radius:5px;color:#FFF;padding:0.7rem 2rem;font-size:1.2rem;}
.acf-form-submit .acf-button:hover, .acf-form-submit .acf-button:focus {background-color:#dc3545;color:#FFF;}

.text-bg-dark.active {background-color:#28a745 !important;}

/* For Dashboard */
.xsr-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.xsr-stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eef0f2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    text-align: center;
}
.xsr-stat-label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    color: #7f8c8d;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}
.xsr-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #2c3e50;
    display: block;
}
.xsr-stat-value.positive { color: #00b894; }
.xsr-stat-value.negative { color: #d63031; }

#message.updated {display:none;}


.footer-small-text {font-size:14px;color:#777;}
img.footer-small-logo { filter: grayscale(100%); -webkit-filter: grayscale(100%);width:auto;max-height:15px;opacity:0.7;}
a:hover img.footer-small-logo {filter:none; -webkit-filter:none;opacity:1;}
.business-logo-review {max-width:250px;max-height: 100px;width:auto;height: auto;}

.list-group-item.active {background-color:#EEE;border-color:#EEE;color:#000;}
.accordion-button:not(.collapsed) {color:#000;background-color:#F8F8F8;}
.accordion-button::after {filter:grayscale() !important;}