/**
 * Admin styles for Stripe Subscription Manager
 */

/* Product meta box */
.strp-sub-product-settings {
    padding: 10px 0;
}

.strp-sub-product-settings p {
    margin: 15px 0;
}

.strp-sub-product-settings label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.strp-sub-product-settings select,
.strp-sub-product-settings input[type="text"] {
    width: 100%;
    max-width: 400px;
}

.strp-sub-product-settings .description {
    display: block;
    margin-top: 5px;
    font-style: italic;
    color: #666;
}

/* Admin subscriptions table */
.strp-sub-admin-cancel-subscription {
    padding: 4px 10px;
    font-size: 13px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.strp-sub-admin-cancel-subscription:hover {
    background: #b91c1c;
}

.strp-sub-admin-cancel-subscription:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Settings page */
.strp-sub-settings-section {
    margin-top: 20px;
}

.strp-sub-settings-section h2 {
    margin-bottom: 15px;
}

/* Webhook URL display */
.strp-sub-webhook-url {
    display: inline-block;
    padding: 8px 12px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: monospace;
    font-size: 13px;
}

/* Status badges */
.strp-sub-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.strp-sub-status-badge.active {
    background: #c6e1c6;
    color: #0e5c0e;
}

.strp-sub-status-badge.cancelled {
    background: #eba3a3;
    color: #761919;
}

/* RTL Support */
[dir="rtl"] .strp-sub-product-status {
    float: right;
    margin-left: 0;
    margin-right: 10px;
}

[dir="rtl"] .strp-sub-webhook-url-display {
    direction: ltr;
    text-align: left;
}
