/* Google Business Scraper Plugin Styles */

.google-scraper-admin {
    margin: 20px 0;
}

.google-scraper-dashboard {
    max-width: 1200px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f6ff;
}

.stat-icon .dashicons {
    font-size: 24px;
    color: #3c7abe;
}

.stat-content h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1d2327;
}

.stat-content p {
    margin: 4px 0 0;
    color: #646970;
    font-size: 14px;
}

/* Tabs */
.scraper-tabs {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin: 20px 0;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid #c3c4c7;
    background: #f6f7f7;
}

.tab-btn {
    padding: 15px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #646970;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #1d2327;
}

.tab-btn.active {
    color: #3c7abe;
    border-bottom-color: #3c7abe;
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.tab-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f1;
}

.tab-header h2 {
    margin: 0 0 5px;
    font-size: 20px;
    color: #1d2327;
}

.tab-header p {
    margin: 0;
    color: #646970;
}

.tab-actions {
    display: flex;
    gap: 10px;
}

/* Forms */
.scraper-form,
.whatsapp-form {
    max-width: 600px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #1d2327;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 3px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3c7abe;
    box-shadow: 0 0 0 1px #3c7abe;
    outline: none;
}

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

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.input-group {
    display: flex;
}

.input-group input {
    border-radius: 3px 0 0 3px;
    border-right: none;
}

.input-group .toggle-password {
    border-radius: 0 3px 3px 0;
    border-left: none;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

/* Connection Status */
.connection-status {
    margin-bottom: 30px;
    padding: 15px;
    background: #f6f7f7;
    border-radius: 4px;
    border-left: 4px solid #dc3232;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.connected {
    background-color: #00a32a;
}

.status-dot.disconnected {
    background-color: #dc3232;
}

.status-text {
    font-weight: 500;
    color: #1d2327;
}

/* Results */
.results-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.results-filters input {
    flex: 1;
    max-width: 300px;
}

.results-table {
    overflow-x: auto;
}

.results-table table {
    width: 100%;
}

.loading-results,
.no-results,
.error-message {
    text-align: center;
    padding: 40px;
    color: #646970;
}

.spinner.is-active {
    display: inline-block;
    margin-right: 10px;
}

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.badge.sponsored {
    background-color: #fcf9e8;
    color: #8a6914;
}

.badge.organic {
    background-color: #edfaef;
    color: #1e4620;
}

/* Pagination */
.results-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f1;
}

.page-info {
    color: #646970;
    font-size: 14px;
}

/* Progress */
.scraping-progress {
    background: #f0f6ff;
    border: 1px solid #c9e6ff;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
}

.progress-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-details {
    margin-left: 30px;
    margin-top: 10px;
    color: #646970;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-nav {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
    }
    
    .results-pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions,
    .tab-actions {
        flex-direction: column;
    }
}

/* Notices */
.notice {
    position: relative;
    margin: 5px 0 15px;
    padding: 1px 12px;
    border-left: 4px solid #72aee6;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

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

.notice-warning {
    border-left-color: #dba617;
}

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

.notice p {
    margin: 0.5em 0;
    padding: 2px;
}

.notice-dismiss {
    position: absolute;
    top: 0;
    right: 1px;
    border: none;
    margin: 0;
    padding: 9px;
    background: none;
    cursor: pointer;
    color: #787c82;
}

.notice-dismiss:hover {
    color: #d63638;
}

.notice-dismiss:before {
    content: '\f153';
    font-family: dashicons;
    font-size: 16px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    display: block;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    word-wrap: normal !important;
    border: 0;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    width: 1px;
}
