/* Bot Tracker Dashboard Styles */

.skybot-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.skybot-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.skybot-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.skybot-stat-icon {
    font-size: 32px !important;
    width: 32px !important;
    height: 32px !important;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skybot-stat-icon.purple {
    background-color: #f3e8ff;
    color: #7c3aed;
}

.skybot-stat-icon.blue {
    background-color: #e0f2fe;
    color: #0284c7;
}

.skybot-stat-icon.red {
    background-color: #fee2e2;
    color: #dc2626;
}

.skybot-stat-icon.orange {
    background-color: #ffedd5;
    color: #ea580c;
}

.skybot-stat-body {
    display: flex;
    flex-direction: column;
}

.skybot-stat-body strong {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.skybot-stat-body span {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

/* Toolbar */
.skybot-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.skybot-toolbar-left {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-grow: 1;
    max-width: 600px;
}

.skybot-filter-select, 
#skybot-search-input {
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    color: #334155;
    background-color: #ffffff;
}

#skybot-search-input {
    flex-grow: 1;
    padding: 0 12px;
}

#skybot-search-input:focus,
.skybot-filter-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 1px #6366f1;
    outline: none;
}

/* Table styles */
.skybot-table {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.skybot-table th {
    background-color: #f1f5f9 !important;
    font-weight: 600 !important;
    color: #334155 !important;
    padding: 12px 10px !important;
}

.skybot-table td {
    padding: 12px 10px !important;
    vertical-align: middle !important;
}

.skybot-row-details-btn {
    cursor: pointer;
    color: #64748b;
    transition: color 0.15s ease;
}

.skybot-row-details-btn:hover {
    color: #4f46e5;
}

.skybot-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.skybot-badge.badge-known-bot {
    background-color: #dcfce7;
    color: #15803d;
}

.skybot-badge.badge-scraper {
    background-color: #ffedd5;
    color: #c2410c;
}

.skybot-badge.badge-404-probing {
    background-color: #fee2e2;
    color: #b91c1c;
}

.skybot-badge.badge-rate-limit {
    background-color: #f3e8ff;
    color: #6d28d9;
}

.skybot-badge.badge-other {
    background-color: #f1f5f9;
    color: #475569;
}

/* Expanded Details Row */
.skybot-details-row {
    background-color: #f8fafc !important;
}

.skybot-details-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    border-left: 3px solid #6366f1;
}

.skybot-details-item {
    display: flex;
    gap: 12px;
}

.skybot-details-label {
    font-weight: 600;
    min-width: 120px;
    color: #334155;
}

.skybot-details-value code {
    background-color: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    color: #0f172a;
}

/* Pagination */
.skybot-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.skybot-pagination a,
.skybot-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s ease;
}

.skybot-pagination a:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.skybot-pagination span.current {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
    font-weight: 600;
}

.skybot-pagination span.dots {
    border: none;
    background: transparent;
}

.skybot-row-removing {
    opacity: 0;
    transform: scale(0.98);
    transition: all 0.3s ease;
}

/* Action buttons */
.skybot-delete-btn {
    color: #ef4444;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}

.skybot-delete-btn:hover {
    background-color: #fee2e2;
}
