/* Frontend Styles */

.woo-subscriptions-dashboard {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.woo-subscriptions-dashboard h2 {
    margin-top: 0;
    color: #333;
}

.woo-subscriptions-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.woo-subscriptions-table th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.woo-subscriptions-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.woo-subscriptions-table tr:hover {
    background: #fafafa;
}

.subscription-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.subscription-status.active {
    background: #d4edda;
    color: #155724;
}

.subscription-status.paused {
    background: #fff3cd;
    color: #856404;
}

.subscription-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Buttons */
.btn-pause,
.btn-resume,
.btn-cancel {
    padding: 6px 12px;
    margin-right: 6px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-pause {
    background: #ffc107;
    color: #333;
}

.btn-pause:hover {
    background: #e0a800;
}

.btn-resume {
    background: #28a745;
    color: white;
}

.btn-resume:hover {
    background: #218838;
}

.btn-cancel {
    background: #dc3545;
    color: white;
}

.btn-cancel:hover {
    background: #c82333;
}

/* Subscription Notice in Cart/Checkout */
.woocommerce-subscription-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.woocommerce-subscription-notice h4 {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 16px;
}

.woocommerce-subscription-notice p {
    margin: 0 0 10px 0;
    color: #856404;
}

.woocommerce-subscription-notice ul {
    margin: 0;
    padding-left: 20px;
    color: #856404;
}

/* Cart item subscription badge */
.woocommerce-item-subscription-badge {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
}

/* ============================================
   Ultimate Member Account Tab Styles
   ============================================ */

.um-subscriptions-dashboard {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.um-subscriptions-dashboard h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.um-subscriptions-table-wrapper {
    overflow-x: auto;
}

.um-subscriptions-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    margin-top: 15px;
}

.um-subscriptions-table th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    font-size: 13px;
}

.um-subscriptions-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.um-subscriptions-table tr:hover {
    background: #fafafa;
}

.um-subscription-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.um-subscription-status.active {
    background: #d4edda;
    color: #155724;
}

.um-subscription-status.paused {
    background: #fff3cd;
    color: #856404;
}

.um-subscription-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.um-subscriptions-empty {
    padding: 30px;
    text-align: center;
    color: #666;
    font-style: italic;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* UM Button Overrides for Subscription Actions */
.um-subscriptions-table .um-btn-small {
    padding: 6px 12px;
    font-size: 11px;
    margin-right: 6px;
    margin-bottom: 4px;
}

.um-subscriptions-table .um-btn-warning {
    background: #ffc107;
    color: #333;
    border: none;
}

.um-subscriptions-table .um-btn-warning:hover {
    background: #e0a800;
}

.um-subscriptions-table .um-btn-success {
    background: #28a745;
    color: white;
    border: none;
}

.um-subscriptions-table .um-btn-success:hover {
    background: #218838;
}

.um-subscriptions-table .um-btn-danger {
    background: #dc3545;
    color: white;
    border: none;
}

.um-subscriptions-table .um-btn-danger:hover {
    background: #c82333;
}

/* Responsive */
@media (max-width: 768px) {
    .woo-subscriptions-dashboard {
        padding: 10px;
    }

    .woo-subscriptions-table {
        font-size: 12px;
    }

    .woo-subscriptions-table th,
    .woo-subscriptions-table td {
        padding: 8px;
    }

    .btn-pause,
    .btn-resume,
    .btn-cancel {
        padding: 4px 8px;
        font-size: 11px;
        margin-right: 4px;
    }
    
    .um-subscriptions-dashboard {
        padding: 10px;
    }
    
    .um-subscriptions-table th,
    .um-subscriptions-table td {
        padding: 8px;
        font-size: 11px;
    }
    
    .um-subscriptions-table .um-btn-small {
        padding: 4px 8px;
        font-size: 10px;
    }
}