/* ==========================================================================
   Reusable UI Components - Glass Cards, Badges, Buttons, Logs List
   ========================================================================== */

/* Premium Glassmorphic Card */
.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--bg-glass-border);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-premium), var(--shadow-inset);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Metrics Grid & Tiles */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.metric-tile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bg-glass-border);
}

.metric-icon svg {
    width: 24px;
    height: 24px;
}

.metric-icon.blue { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.25); color: #3b82f6; }
.metric-icon.red { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.25); color: #ef4444; }
.metric-icon.green { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.25); color: #10b981; }
.metric-icon.yellow { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.25); color: #f59e0b; }

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: #ffffff;
    line-height: 1.2;
    margin-top: 4px;
}

/* Dynamic Live Feed Split View */
.dashboard-split {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    flex-grow: 1;
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bg-glass-border);
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Scrollable Item Feed */
.scrollable-feed {
    max-height: 480px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 6px;
}

/* Moderation Log Row Item */
.log-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--border-radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.log-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.log-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 70%;
}

.log-type-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.log-type-icon svg {
    width: 18px;
    height: 18px;
    color: #94a3b8;
}

.log-content-preview {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.log-text {
    font-weight: 500;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}

/* Dynamic Status Badges */
.badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
}

.badge.safe { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.25); }
.badge.review { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.25); }
.badge.block { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.25); }

/* Premium Action Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
}

.btn-primary {
    background: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 4px 18px var(--primary-glow);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--accent-safe);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--accent-block);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Form Controls */
.textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--border-radius-md);
    color: #ffffff;
    padding: 14px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.25s ease;
}

.textarea:focus {
    outline: none;
    border-color: var(--primary);
}
