/**
 * HesabPay Payment Gateway - Admin Stylesheet
 * 
 * @package     WooCommerce_HesabPay
 * @subpackage  Assets
 * @category    Admin CSS
 * @version     1.0.2
 * @author      HesabPay Development Team
 * @copyright   © 2024 HesabPay Financial Services
 * @license     GPL-3.0-or-later
 *
 * This stylesheet contains all admin-facing visual styles for the
 * HesabPay WooCommerce payment gateway extension.
 */

/* ==========================================================================
   TABLE OF CONTENTS
   ========================================================================== */

/*
 * 1.0 ADMIN FORM ELEMENTS
 *   1.1 Webhook URL Field
 *   1.2 Copy Button States
 * 2.0 ADMIN COMPONENTS
 *   2.1 Settings Panel
 *   2.2 Status Indicators
 * 3.0 RESPONSIVE ADJUSTMENTS
 */

/* ==========================================================================
   1.0 ADMIN FORM ELEMENTS
   ========================================================================== */

/* 1.1 Webhook URL Field
   -------------------------------------------------------------------------- */
.hesabpay-webhook-url-field {
    background-color: #f8f9fa !important;
    cursor: text !important;
    font-family: monospace;
    font-size: 13px;
    padding: 8px 12px;
}

.hesabpay-webhook-url-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    padding: 5px 0;
}

/* 1.2 Copy Button States
   -------------------------------------------------------------------------- */
.hesabpay-copy-btn {
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 5px 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.hesabpay-copy-btn:hover {
    background: #135e96;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.hesabpay-copy-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

.hesabpay-copy-btn.copied {
    background: #4ab866;
    animation: pulseGreen 0.5s ease;
}

/* ==========================================================================
   2.0 ADMIN COMPONENTS
   ========================================================================== */

/* 2.1 Settings Panel
   -------------------------------------------------------------------------- */
.hesabpay-settings-panel {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
}

/* 2.2 Status Indicators
   -------------------------------------------------------------------------- */
.hesabpay-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 13px;
}

.hesabpay-status-active {
    background: #e6f2e6;
    color: #4ab866;
}

.hesabpay-status-inactive {
    background: #f8e8e8;
    color: #d63638;
}

/* ==========================================================================
   3.0 RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 782px) {
    .hesabpay-webhook-url-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hesabpay-copy-btn {
        width: 100%;
        padding: 8px;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(74, 184, 102, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(74, 184, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 184, 102, 0); }
}

.hesabpay-badge-pro {
    background: #00aeef;
    color: #fff;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
    margin-right: 0;
    vertical-align: middle;
    line-height: 1.6;
    letter-spacing: 0.2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    font-family: inherit;
}

.hesabpay-badge-pro .dashicon {
    font-size: 13px;
    vertical-align: middle;
    margin-right: 2px;
}
.woocommerce table.form-table th label {
    position: relative;
    display: flex !important;
    align-items: center !important;
}
tr[data-plugin*="woocommerce-hesabpay"] .plugin-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
tr[data-plugin*="woocommerce-hesabpay"] .plugin-title strong::after {
    content: "Lite";
    position: static;
    font-size: 10px;
    background: #2271b1;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: normal;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}
/* Remove the star from the plugin title */
/* tr[data-plugin*="woocommerce-hesabpay"] .plugin-title::before { display: none; } */

.hesabpay-upgrade-star {
    float: none !important;
    vertical-align: middle;
    margin-right: 4px;
    font-size: 1.1em;
    line-height: 1;
    display: inline-block;
}
/* Partnership section styles for HesabPay settings page */
.hesabpay-partner-banner {
    background: #f4f8fb;
    border: 1px solid #e3eaf1;
    border-radius: 8px;
    padding: 10px 10px 10px 10px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hesabpay-partner-title {
    font-size: 17px;
    font-weight: 600;
    color: #00aeef;
    display: flex;
    align-items: center;
    gap: 7px;
}
.hesabpay-partner-badge {
    background: black;
    color: #fff;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.hesabpay-partner-logo {
    height: 30px;
    vertical-align: middle;
    display: block;
} 