/**
 * Google Ads Admin Styles
 *
 * Styles for Google Ads admin interface
 *
 * @package HT Easy GA4
 * @since 1.8.0
 */

/* Google Ads Settings Section */
.htga4-google-ads-header {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.htga4-google-ads-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.htga4-google-ads-header .htga4-badge {
    background: #0073aa;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: normal;
    text-transform: uppercase;
}

.htga4-google-ads-header .htga4-badge.free {
    background: #46b450;
}

/* Setup Steps */
.htga4-setup-steps {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.htga4-setup-step {
    flex: 1;
    min-width: 200px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 15px;
    position: relative;
}

.htga4-setup-step.completed {
    background: #edfaef;
    border-color: #46b450;
}

.htga4-setup-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #0073aa;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 10px;
}

.htga4-setup-step.completed .htga4-setup-step-number {
    background: #46b450;
}

.htga4-setup-step h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.htga4-setup-step p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Form Fields */
.htga4-form-group {
    margin-bottom: 20px;
}

.htga4-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.htga4-form-group input[type="text"],
.htga4-form-group input[type="number"] {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.htga4-form-group input[type="text"]:focus,
.htga4-form-group input[type="number"]:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

.htga4-form-help {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.htga4-form-help a {
    color: #0073aa;
    text-decoration: none;
}

.htga4-form-help a:hover {
    text-decoration: underline;
}

/* Checkboxes */
.htga4-checkbox-group {
    margin: 15px 0;
}

.htga4-checkbox-item {
    margin-bottom: 10px;
}

.htga4-checkbox-item label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.htga4-checkbox-item input[type="checkbox"] {
    margin: 0;
}

/* Pro Features Section */
.htga4-pro-features {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    color: #fff;
}

.htga4-pro-features h3 {
    color: #fff;
    margin-top: 0;
    font-size: 20px;
}

.htga4-pro-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.htga4-pro-feature {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.htga4-pro-feature-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.htga4-pro-feature h4 {
    color: #fff;
    margin: 0 0 8px 0;
    font-size: 16px;
}

.htga4-pro-feature p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 13px;
}

.htga4-pro-cta {
    text-align: center;
    margin-top: 20px;
}

.htga4-pro-cta .button {
    background: #fff;
    color: #764ba2;
    border: none;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.htga4-pro-cta .button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Stats Dashboard */
.htga4-stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.htga4-stat-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
}

.htga4-stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
}

.htga4-stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.htga4-stat-period {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Recent Conversions Table */
.htga4-conversions-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.htga4-conversions-table thead {
    background: #f8f9fa;
}

.htga4-conversions-table th,
.htga4-conversions-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #e5e5e5;
}

.htga4-conversions-table th {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.htga4-conversions-table td {
    font-size: 14px;
    color: #666;
}

.htga4-conversions-table .conversion-type {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.htga4-conversions-table .conversion-type.purchase {
    background: #edfaef;
    color: #46b450;
}

.htga4-conversions-table .conversion-type.add_to_cart {
    background: #fff5e1;
    color: #ff9800;
}

.htga4-conversions-table .conversion-type.form_submit {
    background: #e3f2fd;
    color: #2196f3;
}

/* Test Conversion Button */
.htga4-test-conversion {
    margin: 20px 0;
}

.htga4-test-conversion .button {
    background: #46b450;
    color: #fff;
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
}

.htga4-test-conversion .button:hover {
    background: #3d9142;
}

.htga4-test-conversion .button.testing {
    background: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.htga4-test-result {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.htga4-test-result.success {
    background: #edfaef;
    color: #46b450;
    border: 1px solid #46b450;
    display: block;
}

.htga4-test-result.error {
    background: #fef1f1;
    color: #dc3545;
    border: 1px solid #dc3545;
    display: block;
}

/* Upgrade Prompts */
.htga4-upgrade-prompt {
    background: linear-gradient(135deg, #ff6900 0%, #ff9500 100%);
    color: #fff;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.htga4-upgrade-prompt-icon {
    font-size: 32px;
}

.htga4-upgrade-prompt-content {
    flex: 1;
}

.htga4-upgrade-prompt h4 {
    color: #fff;
    margin: 0 0 5px 0;
}

.htga4-upgrade-prompt p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.htga4-upgrade-prompt .button {
    background: #fff;
    color: #ff6900;
    border: none;
    padding: 8px 20px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
}

.htga4-upgrade-prompt .button:hover {
    background: #f0f0f0;
}

/* Pro Badge */
.htga4-pro-badge {
    display: inline-block;
    background: #ff6900;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 5px;
    vertical-align: middle;
}

/* Locked Features */
.htga4-locked-feature {
    position: relative;
    opacity: 0.6;
    cursor: not-allowed;
}

.htga4-locked-feature::after {
    content: '🔒 PRO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .htga4-setup-steps {
        flex-direction: column;
    }

    .htga4-pro-features-grid {
        grid-template-columns: 1fr;
    }

    .htga4-stats-dashboard {
        grid-template-columns: 1fr;
    }

    .htga4-upgrade-prompt {
        flex-direction: column;
        text-align: center;
    }
}