/* 
 * Feed Monitor Admin Styles
 * Version: 1.0.0
 */

/* =============================================
   BASE STYLES - RESPONSIVE
============================================= */
.samnala-monitor-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* =============================================
   HEADER SECTION
============================================= */
.samnala-monitor-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.samnala-monitor-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.samnala-monitor-header h1:before {
    content: "📊";
    font-size: 32px;
}

.samnala-monitor-subtitle {
    margin: 8px 0 0;
    opacity: 0.9;
    font-size: 15px;
}

/* =============================================
   STATS GRID - RESPONSIVE
============================================= */
.samnala-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.samnala-stat-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.samnala-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
}

.samnala-stat-card:nth-child(1) {
    border-top: 4px solid #4CAF50;
}
.samnala-stat-card:nth-child(2) {
    border-top: 4px solid #2196F3;
}
.samnala-stat-card:nth-child(3) {
    border-top: 4px solid #FF9800;
}
.samnala-stat-card:nth-child(4) {
    border-top: 4px solid #9C27B0;
}

.samnala-stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin: 10px 0;
    line-height: 1.2;
}

.samnala-stat-label {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.samnala-stat-icon {
    font-size: 24px;
    margin-bottom: 10px;
    opacity: 0.7;
}

/* =============================================
   TABLE STYLES - RESPONSIVE
============================================= */
.samnala-posts-table-wrapper {
    background: white;
    border-radius: 10px;
    border: 1px solid #ddd;
    overflow: hidden;
    margin: 25px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.samnala-posts-table {
    width: 100%;
    border-collapse: collapse;
}

.samnala-posts-table thead {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    border-bottom: 2px solid #e0e0e0;
}

.samnala-posts-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: #444;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.samnala-posts-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.samnala-posts-table tbody tr {
    transition: background 0.2s ease;
}

.samnala-posts-table tbody tr:hover {
    background: #f9f9f9;
}

.samnala-post-content {
    max-width: 300px;
    overflow: hidden;
}

.samnala-post-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    display: block;
}

.samnala-post-excerpt {
    color: #7f8c8d;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 4px;
}

.samnala-like-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 13px;
}

.samnala-like-count.has-likes {
    background: #ffeaea;
    color: #e91e63;
}

.samnala-like-count.no-likes {
    background: #f5f5f5;
    color: #999;
}

.samnala-users-count {
    font-size: 11px;
    color: #777;
    margin-top: 3px;
}

.samnala-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.samnala-status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.samnala-status-inactive {
    background: #f5f5f5;
    color: #757575;
}

/* =============================================
   ACTION BUTTONS
============================================= */
.samnala-actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.samnala-action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.samnala-action-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.samnala-action-btn-secondary {
    background: #f5f5f5;
    color: #444;
    border: 1px solid #ddd;
}

.samnala-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.samnala-action-btn:active {
    transform: translateY(0);
}

.samnala-table-btn {
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 6px;
    margin: 2px;
    min-width: 60px;
    text-align: center;
}

/* =============================================
   DEBUG & INFO PANELS
============================================= */
.samnala-debug-panel {
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.samnala-info-panel {
    background: linear-gradient(135deg, #f0f6fc 0%, #e3f2fd 100%);
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
    border: 1px solid #c3d9ff;
}

/* =============================================
   RESPONSIVE BREAKPOINTS
============================================= */
@media (max-width: 1200px) {
    .samnala-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 782px) {
    .samnala-monitor-header {
        padding: 20px;
    }
    
    .samnala-monitor-header h1 {
        font-size: 24px;
    }
    
    .samnala-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .samnala-stat-number {
        font-size: 32px;
    }
    
    .samnala-posts-table-wrapper {
        overflow-x: auto;
    }
    
    .samnala-posts-table {
        min-width: 700px;
    }
    
    .samnala-actions-grid {
        flex-direction: column;
    }
    
    .samnala-action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .samnala-monitor-header {
        padding: 15px;
        border-radius: 8px;
    }
    
    .samnala-monitor-header h1 {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .samnala-stat-card {
        padding: 20px;
    }
    
    .samnala-stat-number {
        font-size: 28px;
    }
    
    .samnala-posts-table th,
    .samnala-posts-table td {
        padding: 12px 15px;
    }
}

/* =============================================
   LOADING & EMPTY STATES
============================================= */
.samnala-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.samnala-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.samnala-empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* =============================================
   UTILITY CLASSES
============================================= */
.samnala-text-center {
    text-align: center;
}

.samnala-text-muted {
    color: #888;
    font-size: 13px;
}

.samnala-mb-20 {
    margin-bottom: 20px;
}

.samnala-mt-20 {
    margin-top: 20px;
}