/* Advanced Geo Blocker Pro - Admin Styles */

.wfgb-admin-wrap {
    max-width: 1200px;
    margin: 20px 0;
}

/* License & Upgrade Page */
.wfgb-license-page {
    background: #f5f5f5;
    margin: -20px -20px 0 -22px;
    padding: 20px;
}

.wfgb-upgrade-container {
    max-width: 1000px;
    margin: 0 auto;
}

.wfgb-upgrade-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.wfgb-upgrade-hero h2 {
    font-size: 36px;
    margin: 0 0 10px;
    color: white;
}

.wfgb-upgrade-tagline {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.wfgb-price-box {
    background: rgba(255,255,255,0.15);
    padding: 30px;
    border-radius: 10px;
    display: inline-block;
    margin: 20px 0 30px;
    backdrop-filter: blur(10px);
}

.wfgb-price {
    font-size: 64px;
    font-weight: bold;
    line-height: 1;
}

.wfgb-price-label {
    font-size: 16px;
    margin-top: 10px;
    opacity: 0.9;
}

.wfgb-price-note {
    font-size: 14px;
    margin-top: 5px;
    opacity: 0.8;
}

.wfgb-upgrade-button {
    display: inline-block;
    background: #f18500;
    color: white !important;
    padding: 18px 40px;
    font-size: 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-weight: 600;
}

.wfgb-upgrade-button:hover {
    background: #d97400;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.wfgb-secure-note {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

/* Comparison Table */
.wfgb-features-comparison {
    background: white;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wfgb-comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.wfgb-comparison-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.wfgb-comparison-table th.premium-col {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.wfgb-comparison-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
}

.wfgb-comparison-table tr.premium-row {
    background: #f8f9ff;
}

.wfgb-comparison-table .free-check,
.wfgb-comparison-table .premium-check {
    text-align: center;
    font-size: 18px;
}

.wfgb-comparison-table .free-cross {
    text-align: center;
    font-size: 18px;
    opacity: 0.3;
}

/* Testimonials */
.wfgb-testimonials {
    background: white;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wfgb-testimonials h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

.wfgb-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.wfgb-testimonial {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.wfgb-stars {
    color: #f18500;
    font-size: 14px;
    margin-bottom: 10px;
}

.wfgb-testimonial p {
    font-style: italic;
    margin: 0 0 10px;
}

.wfgb-author {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

/* Activation Box */
.wfgb-activation-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wfgb-activation-box h3 {
    margin-top: 0;
    font-size: 24px;
}

.wfgb-help-text {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

/* FAQ */
.wfgb-faq {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wfgb-faq h3 {
    margin-top: 0;
    font-size: 24px;
    margin-bottom: 30px;
}

.wfgb-faq-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #dee2e6;
}

.wfgb-faq-item:last-child {
    border-bottom: none;
}

.wfgb-faq-item h4 {
    margin: 0 0 10px;
    color: #667eea;
}

.wfgb-faq-item p {
    margin: 0;
    color: #666;
}

/* Premium Active */
.wfgb-premium-active {
    max-width: 800px;
    margin: 0 auto;
}

.wfgb-success-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.wfgb-success-box h2 {
    color: #28a745;
    font-size: 32px;
    margin-top: 0;
}

.wfgb-license-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
}

.wfgb-license-key {
    display: inline-block;
    font-family: monospace;
    font-size: 18px;
    padding: 10px 20px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 5px;
    margin-top: 10px;
    color: #667eea;
    font-weight: bold;
}

.wfgb-premium-benefits {
    text-align: left;
    margin: 30px auto;
    max-width: 600px;
}

.wfgb-premium-benefits h3 {
    text-align: center;
    margin-bottom: 20px;
}

.wfgb-premium-benefits ul {
    list-style: none;
    padding: 0;
}

.wfgb-premium-benefits li {
    padding: 10px 0;
    font-size: 16px;
}

.wfgb-support-info {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #dee2e6;
}

/* Premium Badge in Menu */
.wfgb-premium-badge {
    background: #f18500;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    margin-left: 5px;
}

/* Supporter Badge */
.wfgb-supporter-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

/* Settings Container */
.wfgb-settings-container {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.wfgb-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.wfgb-card h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
}

.wfgb-card .form-table {
    margin-top: 20px;
}

.wfgb-card .form-table th {
    width: 200px;
    font-weight: 600;
}

/* Premium Feature Lock */
.wfgb-premium-feature {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.wfgb-premium-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.95);
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
    z-index: 10;
}

.wfgb-premium-lock-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.wfgb-premium-lock h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.wfgb-premium-lock p {
    margin: 0 0 15px;
    color: #666;
}

/* Logs */
.wfgb-logs-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

#wfgb-logs-container {
    overflow-x: auto;
}

.wfgb-logs-table {
    width: 100%;
    border-collapse: collapse;
}

.wfgb-logs-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.wfgb-logs-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #dee2e6;
}

.wfgb-logs-table tr:hover {
    background: #f8f9fa;
}

.wfgb-country-code {
    display: inline-block;
    padding: 3px 8px;
    background: #667eea;
    color: white;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.wfgb-ip {
    font-family: monospace;
    font-size: 13px;
}

.wfgb-url {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wfgb-user-agent {
    font-size: 12px;
    color: #666;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#wfgb-logs-pagination {
    display: flex;
    gap: 5px;
    margin-top: 20px;
    justify-content: center;
}

#wfgb-logs-pagination button {
    padding: 5px 10px;
}

#wfgb-logs-pagination button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Tools */
.wfgb-tool {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

#wfgb-test-result {
    padding: 15px;
    border-radius: 4px;
    display: none;
}

#wfgb-test-result.allowed {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

#wfgb-test-result.blocked {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.wfgb-test-info {
    margin-top: 10px;
    font-size: 14px;
}

.wfgb-test-info strong {
    display: inline-block;
    min-width: 100px;
}

/* Status badges */
.wfgb-status-enabled {
    display: inline-block;
    padding: 3px 10px;
    background: #d4edda;
    color: #155724;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.wfgb-status-disabled {
    display: inline-block;
    padding: 3px 10px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

/* Loading spinner */
.wfgb-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.wfgb-loading::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: wfgb-spin 1s linear infinite;
}

@keyframes wfgb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty state */
.wfgb-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.wfgb-empty-state .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    opacity: 0.3;
}

/* Notifications */
.wfgb-notice {
    padding: 12px 15px;
    margin: 15px 0;
    border-left: 4px solid;
    background: #fff;
}

.wfgb-notice-success {
    border-left-color: #00a32a;
    background: #f0f6fc;
}

.wfgb-notice-error {
    border-left-color: #dc3232;
    background: #fcf0f1;
}

.wfgb-notice-warning {
    border-left-color: #ffb900;
    background: #fcf9e8;
}

.wfgb-notice-info {
    border-left-color: #0073aa;
    background: #f0f6fc;
}

/* Responsive */
@media (max-width: 782px) {
    .wfgb-card .form-table th {
        width: 100%;
        padding-bottom: 10px;
    }
    
    .wfgb-tool {
        flex-direction: column;
    }
    
    .wfgb-logs-table {
        font-size: 12px;
    }
    
    .wfgb-logs-table th,
    .wfgb-logs-table td {
        padding: 8px;
    }
    
    .wfgb-upgrade-hero {
        padding: 40px 20px;
    }
    
    .wfgb-upgrade-hero h2 {
        font-size: 28px;
    }
    
    .wfgb-testimonial-grid {
        grid-template-columns: 1fr;
    }
}