.amwal-dashboard { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; color: #2d3748; background: #fdfdfd; padding: 0; margin-top: 10px; }
.amwal-section { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 20px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.amwal-section-header { padding: 12px 18px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; gap: 8px; }
.amwal-section-header h3 { margin: 0; font-size: 13px; font-weight: 600; color: #4a5568; text-transform: uppercase; letter-spacing: 0.025em; display: flex; align-items: center; gap: 8px; }
.amwal-section-body { padding: 18px; }

.amwal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.amwal-field { display: flex; flex-direction: column; gap: 4px; }
.amwal-field-label { font-size: 11px; font-weight: 500; color: #718096; text-transform: uppercase; }
.amwal-field-value { font-size: 13px; font-weight: 500; color: #1a202c; }

/* Enhanced Banner Styles */
.amwal-banner { 
    display: flex; 
    flex-direction: column;
    padding: 20px; 
    background: #fff; 
    border: 1px solid #e2e8f0; 
    border-left: 5px solid #cbd5e0;
    border-radius: 12px; 
    margin-bottom: 25px; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: relative;
}
.amwal-banner-success { border-left-color: #10b981; }
.amwal-banner-fail, .amwal-banner-failed, .amwal-banner-error { border-left-color: #ef4444; }
.amwal-banner-pending { border-left-color: #f59e0b; }
.amwal-banner-refunded { border-left-color: #3b82f6; }

.amwal-banner-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.amwal-banner-status-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amwal-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.amwal-status-pill-success { background: #ecfdf5; color: #059669; border: 1px solid #d1fae5; }
.amwal-status-pill-fail, .amwal-status-pill-failed, .amwal-status-pill-error { background: #fef2f2; color: #dc2626; border: 1px solid #fee2e2; }
.amwal-status-pill-pending { background: #fffbeb; color: #d97706; border: 1px solid #fef3c7; }

.amwal-banner-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.amwal-banner-row {
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.4;
}
.amwal-banner-label {
    width: 100px;
    color: #64748b;
    font-weight: 500;
    flex-shrink: 0;
}
.amwal-banner-value {
    color: #1e293b;
    font-weight: 600;
    word-break: break-all;
}
.amwal-banner-id-box {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background: #f8fafc;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    color: #475569;
}

.amwal-banner-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.amwal-btn-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.amwal-btn-header:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.amwal-btn-header:active {
    transform: translateY(0);
}

.amwal-btn-header .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    color: #94a3b8;
    transition: color 0.2s;
}

.amwal-btn-header:hover .dashicons {
    color: #64748b;
}

/* Specific Style for Resend Webhook */
.amwal_webhook_retrigger {
    color: #0d9488;
    border-color: #ccfbf1;
    background: #f0fdfa;
}

.amwal_webhook_retrigger:hover {
    background: #ccfbf1;
    border-color: #99f6e4;
    color: #0f766e;
}

.amwal_webhook_retrigger .dashicons {
    color: #5eead4;
}

.amwal_webhook_retrigger:hover .dashicons {
    color: #2dd4bf;
}

/* Badges */
.amwal-badge { padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.amwal-badge-success { background: #def7ec; color: #03543f; }
.amwal-badge-fail, .amwal-badge-failed { background: #fde8e8; color: #9b1c1c; }
.amwal-badge-pending { background: #fef3c7; color: #92400e; }

/* Item Table */
.amwal-items-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.amwal-items-table th { text-align: left; padding: 10px; border-bottom: 2px solid #edf2f7; font-size: 11px; color: #718096; text-transform: uppercase; }
.amwal-items-table td { padding: 12px 10px; border-bottom: 1px solid #edf2f7; font-size: 12px; }

/* Financial Totals */
.amwal-totals { display: flex; flex-direction: column; gap: 8px; max-width: 300px; margin-left: auto; border-top: 1px solid #edf2f7; padding-top: 15px; }
.amwal-total-row { display: flex; justify-content: space-between; font-size: 12px; }
.amwal-total-final { font-size: 16px; font-weight: 700; color: #1d2b64; border-top: 2px solid #edf2f7; padding-top: 10px; margin-top: 5px; }

/* Webhook Logs Table */
.amwal-log-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.amwal-log-table th { text-align: left; background: #f8fafc; padding: 10px; border-bottom: 1px solid #e2e8f0; color: #64748b; font-weight: 600; }
.amwal-log-table td { padding: 10px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.amwal-btn-sm { padding: 4px 10px; font-size: 11px; border-radius: 4px; cursor: pointer; border: 1px solid #e2e8f0; background: #fff; color: #4a5568; transition: all 0.2s; }
.amwal-btn-sm:hover { background: #f7fafc; border-color: #cbd5e0; }

/* Modal */
#amwal-log-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 99999; backdrop-filter: blur(2px); }
#amwal-log-modal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; width: 80%; max-width: 700px; border-radius: 12px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); z-index: 100000; flex-direction: column; overflow: hidden; }
.amwal-modal-header { padding: 16px 20px; border-bottom: 1px solid #edf2f7; display: flex; justify-content: space-between; align-items: center; background: #f8fafc; }
.amwal-modal-body { padding: 20px; max-height: 70vh; overflow-y: auto; background: #fff; font-family: monospace; white-space: pre-wrap; font-size: 12px; color: #1a202c; }
