/* DirectiveOS Search Tracker Admin Styles */
.dos-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
}

.stat-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px;
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    color: white;
}

.stat-box h3 {
    margin: 0 0 6px 0;
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

/* Card layout for search history */
.dos-history-cards,
.dos-history {
    margin-top: 15px;
}

.dos-history-cards h3,
.dos-history h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 3px solid #667eea;
    padding-bottom: 8px;
}

.dos-cards-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dos-search-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-left: 4px solid #667eea;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.dos-search-card:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    border-left-color: #764ba2;
    transform: translateX(4px);
    background: #f8f9ff;
}

.dos-card-type {
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.3px;
}

.dos-card-query {
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
    word-break: break-word;
    line-height: 1.5;
    max-height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.dos-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #666;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
}

.dos-card-results {
    font-weight: 700;
    color: #667eea;
    background: #f0f4ff;
    padding: 2px 6px;
    border-radius: 3px;
}

.dos-card-date {
    color: #999;
    font-size: 10px;
}

.dos-type-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

/* Filters */
.dos-filters {
    background: linear-gradient(135deg, #f5f7ff 0%, #f0f4ff 100%);
    border: 1px solid #e0e6ff !important;
    border-radius: 6px !important;
    padding: 15px !important;
}

.dos-filters form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.dos-filters select,
.dos-filters input {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background: white;
}

.dos-filters select:focus,
.dos-filters input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Top searches */
.dos-top-searches {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    margin: 15px 0;
}

.dos-top-item {
    display: flex !important;
    justify-content: space-between !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid #f5f5f5 !important;
    transition: background 0.2s ease;
}

.dos-top-item:hover {
    background: #f8f9ff;
}

.dos-top-item:last-child {
    border-bottom: none !important;
}

.dos-top-item span:first-child {
    flex: 1;
    word-break: break-word;
    color: #333;
    font-size: 12px;
}

.dos-top-item span:last-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 3px 10px !important;
    border-radius: 12px !important;
    font-weight: 700;
    font-size: 11px;
    margin-left: 10px;
    flex-shrink: 0;
}

/* WordPress table overrides */
.widefat.striped {
    border-collapse: collapse;
    background: white;
}

.widefat.striped thead th {
    background: linear-gradient(135deg, #f5f7ff 0%, #f0f4ff 100%);
    border-bottom: 2px solid #667eea;
    padding: 12px 8px;
    font-weight: 700;
    color: #333;
    font-size: 12px;
}

.widefat.striped tbody tr {
    transition: background 0.2s ease;
}

.widefat.striped tbody tr:hover {
    background: #f8f9ff;
}

.widefat.striped tbody td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
}

/* Pagination */
.tablenav.bottom {
    border-top: 2px solid #667eea;
    padding-top: 15px;
}

.pagination-links .button {
    border-color: #667eea !important;
    color: #667eea !important;
    background: white !important;
    margin: 0 2px;
    padding: 5px 10px !important;
    font-size: 11px;
}

.pagination-links .button:hover {
    background: #f0f4ff !important;
}

/* Small screens */
@media (max-width: 600px) {
    .dos-stats {
        grid-template-columns: 1fr;
    }
    
    .dos-search-card {
        padding: 10px;
    }
    
    .dos-card-type {
        font-size: 9px;
    }
    
    .dos-card-query {
        font-size: 12px;
    }
    
    .dos-filters form {
        flex-direction: column;
    }
    
    .dos-filters select,
    .dos-filters input {
        width: 100%;
    }
}

