/* IndexNow Plugin Admin Styles */

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

.stat-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #0073aa;
}

.stat-card.success .stat-value {
    color: #46b450;
}

.stat-card.error .stat-value {
    color: #dc3232;
}

.stat-card .stat-label {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #23282d;
}

.form-control {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

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

.checkbox-label input {
    width: auto;
}

.help-text {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.key-display {
    display: inline-block;
    padding: 8px 12px;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    word-break: break-all;
}

/* Search Engines List */
#search-engines-list {
    margin-bottom: 10px;
    max-width: 500px;
}

.engine-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.engine-row .form-control {
    flex: 1;
}

.remove-engine {
    background: #dc3232;
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
}

.remove-engine:hover {
    background: #a00;
}

/* Buttons */
.button-primary,
.button-secondary {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    border: none;
}

.button-primary {
    background: #0073aa;
    color: #fff;
}

.button-primary:hover {
    background: #005a87;
}

.button-secondary {
    background: #f1f1f1;
    color: #555;
    border: 1px solid #ddd;
}

.button-secondary:hover {
    background: #e5e5e5;
}

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

/* Logs Table */
.logs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.logs-table th {
    background: #f8f9fa;
    font-weight: 600;
}

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

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

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-success {
    background: #c6e0c6;
    color: #155724;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
}

.log-success {
    background-color: rgba(70, 180, 80, 0.05);
}

.log-error {
    background-color: rgba(220, 50, 50, 0.05);
}

/* Logs Actions */
.logs-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* Info Box */
.info-box {
    background: #f0f6fc;
    border-left: 4px solid #0073aa;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.info-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Tools Cards */
.tool-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.tool-card h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.status-list {
    list-style: none;
    padding: 0;
}

.status-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* Footer */
.mb-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.mb-version {
    font-weight: bold;
}