/* Settings Page Styles */
.gform-settings__content { 
    max-width: 100%; 
}

.asbfg-toolbar {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.asbfg-toolbar .button {
    margin-right: 10px;
}

.asbfg-count-badge {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: normal;
    margin-left: 8px;
}

.asbfg-settings-row { 
    margin-bottom: 30px; 
    border-bottom: 1px solid #ddd; 
    padding-bottom: 30px; 
}

.asbfg-settings-row:last-child { 
    border-bottom: none; 
}

.asbfg-settings-header { 
    margin-bottom: 15px; 
}

.asbfg-settings-header h4 { 
    margin: 0 0 5px 0; 
    font-size: 14px; 
    font-weight: 600; 
}

.asbfg-settings-header p { 
    margin: 0; 
    color: #666; 
    font-size: 13px; 
}

.asbfg-settings-fields { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
}

.asbfg-field-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    font-size: 13px; 
}

.asbfg-field-group textarea,
.asbfg-field-group input[type="text"] { 
    width: 100%; 
}

.asbfg-field-group textarea { 
    min-height: 120px; 
}

.asbfg-field-description { 
    color: #666; 
    font-size: 12px; 
    margin-top: 5px; 
    font-style: italic; 
}

.submit .button-primary { 
    background: #2271b1 !important; 
    border-color: #2271b1 !important; 
    color: #fff !important;
    text-shadow: none !important;
    font-size: 14px !important;
    padding: 8px 16px !important;
    height: auto !important;
    line-height: 1.5 !important;
}

.submit .button-primary:hover { 
    background: #135e96 !important; 
    border-color: #135e96 !important; 
}

.submit { 
    margin: 0 !important; 
    padding: 0 !important; 
}

/* Quick Block Button Styles */
.asbfg-quick-block-btn { 
    color: #b32d2e;
    text-decoration: none;
    cursor: pointer;
}

.asbfg-quick-block-btn:hover {
    color: #dc3232;
}

/* Stats Dashboard Styles */
.asbfg-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.asbfg-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 24px;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.asbfg-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.asbfg-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.asbfg-stat-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.asbfg-stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.asbfg-stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.asbfg-stat-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.asbfg-stat-icon {
    font-size: 36px;
    line-height: 1;
    margin-bottom: 12px;
    opacity: 0.9;
}

.asbfg-stat-content {
    position: relative;
    z-index: 1;
}

.asbfg-stat-card h3 {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.asbfg-stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.asbfg-stats-by-type {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.asbfg-stats-by-type h3 {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.asbfg-type-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.asbfg-type-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.asbfg-type-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.asbfg-type-icon {
    font-size: 28px;
    line-height: 1;
}

.asbfg-type-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.asbfg-type-label {
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.asbfg-type-count {
    font-size: 22px;
    font-weight: 700;
    color: #2271b1;
}

/* Logs Header */
.asbfg-logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 24px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.asbfg-logs-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.asbfg-header-actions {
    display: flex;
    gap: 10px;
}

.asbfg-header-actions form {
    margin: 0;
}

/* Empty State */
.asbfg-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.asbfg-empty-icon {
    font-size: 64px;
    margin-bottom: 60px;
}

.asbfg-empty-state h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
}

.asbfg-empty-state p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Logs Table */
.asbfg-logs-table-wrapper {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.asbfg-logs-table {
    margin: 0 !important;
    border: none !important;
}

.asbfg-logs-table thead th {
    background: #f9f9f9;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #666;
    padding: 12px 10px;
}

.asbfg-logs-table tbody td {
    padding: 12px 10px;
    vertical-align: middle;
}

.asbfg-logs-table .column-date {
    width: 140px;
}

.asbfg-logs-table .column-form {
    width: 150px;
}

.asbfg-logs-table .column-type {
    width: 120px;
}

.asbfg-logs-table .column-value {
    width: 200px;
}

.asbfg-logs-table .column-ip {
    width: 140px;
}

.asbfg-logs-table .column-email {
    width: auto;
}

.asbfg-time {
    color: #999;
    font-size: 12px;
}

.asbfg-na {
    color: #ccc;
    font-style: italic;
}

.asbfg-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.asbfg-badge-ip {
    background: #e3f2fd;
    color: #1976d2;
}

.asbfg-badge-email {
    background: #f3e5f5;
    color: #7b1fa2;
}

.asbfg-badge-domain {
    background: #fff3e0;
    color: #f57c00;
}

.asbfg-badge-country {
    background: #e8f5e9;
    color: #388e3c;
}

.asbfg-badge-text {
    background: #fce4ec;
    color: #c2185b;
}

/* Pagination */
.tablenav {
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
    clear: both;
    overflow: hidden;
}

.tablenav.top {
    border-top: none;
    border-bottom: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
}

.tablenav.bottom {
    border-radius: 0 0 8px 8px;
}

.tablenav-pages {
    float: right;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tablenav-pages .displaying-num {
    color: #666;
    font-size: 13px;
}

.tablenav-pages .pagination-links {
    display: flex;
    gap: 4px;
}

.tablenav-pages .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #2271b1;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s;
}

.tablenav-pages .page-numbers.current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    font-weight: 600;
}

.tablenav-pages .page-numbers:hover:not(.current):not(.dots) {
    background: #f0f0f0;
    border-color: #999;
}

.tablenav-pages .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

.tablenav-pages .page-numbers.prev,
.tablenav-pages .page-numbers.next {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1200px) {
    .asbfg-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 782px) {
    .asbfg-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .asbfg-logs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .asbfg-type-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .asbfg-stats-grid {
        grid-template-columns: 1fr;
    }
}
