/* style.css */

:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(17, 24, 39, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.25);
    
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.25);
    
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.25);
    
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    position: relative;
}

.page-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Background Glowing Orbs Wrapper to prevent horizontal overflow */
.glow-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: -2;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #3b82f6 0%, rgba(59, 130, 246, 0) 70%);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #10b981 0%, rgba(16, 185, 129, 0) 70%);
    bottom: -150px;
    right: -100px;
}

/* Dashboard Layout */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2rem;
}

.logo-area h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.highlight {
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.pulse-dot.green {
    background-color: var(--accent);
}

.pulse-dot.green::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--accent);
    animation: pulse 1.5s infinite;
}

.status-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #ffffff !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Glassmorphism Card Style */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

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

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    font-size: 1.25rem;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    margin: 0.25rem 0;
}

.text-green { color: var(--accent); }
.text-red { color: var(--danger); }

.stat-description {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-card.spam-alert {
    box-shadow: inset 0 0 12px rgba(239, 68, 68, 0.05);
}
.stat-card.spam-alert .stat-value {
    color: var(--danger);
}

/* Main Layout Split */
.layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

@media (max-width: 1024px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Event Activity Stream */
.event-feed-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 480px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
}

.badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Custom Styled Tables */
.table-wrapper {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

th, td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.loading-placeholder, .empty-placeholder {
    text-align: center;
    color: var(--text-muted);
    padding: 4rem 1rem;
}

.type-tag {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Badge States */
.badge-neutral { background: rgba(255, 255, 255, 0.08); color: var(--text-primary); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #fde047; }
.badge-primary { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }

/* Control Console Section */
.control-panel-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.control-panel-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
}

.panel-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -0.75rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Button Styling */
.btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-primary:hover:not(:disabled) {
    background: #2563eb;
    box-shadow: 0 0 12px var(--primary-glow);
}

.btn-danger {
    background: var(--danger);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    box-shadow: 0 0 12px var(--danger-glow);
}

.btn-success {
    background: var(--accent);
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    box-shadow: 0 0 12px var(--accent-glow);
}

/* Logging Console Box */
.console-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    height: 180px;
    font-family: monospace;
    font-size: 0.75rem;
    padding: 0.75rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.console-line {
    word-break: break-all;
}

.console-line.system { color: #818cf8; }
.console-line.input { color: var(--text-muted); }
.console-line.success { color: var(--accent); }
.console-line.error { color: var(--danger); }

/* Details Table */
.bot-details {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.25rem;
}

.bot-details h3 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.detail-label {
    color: var(--text-muted);
}

.detail-val {
    font-weight: 600;
    word-break: break-all;
    max-width: 60%;
    text-align: right;
}

/* Footer Styling */
.main-footer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-content {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

/* Status Control Switch */
.logout-link {
    color: var(--danger);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    transition: text-shadow 0.2s ease;
}

.logout-link:hover {
    text-shadow: 0 0 8px var(--danger-glow);
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.05);
    transition: .3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .3s;
}

input:checked + .slider {
    background-color: var(--accent-glow);
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

input:checked + .slider:before {
    transform: translateX(22px);
    background-color: var(--accent);
}

.slider.round {
    border-radius: 22px;
}

.slider.round:before {
    border-radius: 50%;
}

.pulse-dot.red {
    background-color: var(--danger);
}

.pulse-dot.red::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--danger);
    animation: pulse 1.5s infinite;
}

/* Status Widget Styles */
.status-widget {
    background: rgba(17, 24, 39, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s ease;
}

.status-widget-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget-label {
    font-size: 0.8rem;
    color: #9ca3af !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-indicator-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.switch-label {
    font-size: 0.875rem;
    color: #f3f4f6 !important;
    font-weight: 600;
}

/* Tabs UI styling */
.tab-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.75rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-family: 'Space Grotesk', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: var(--accent);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: inset 0 0 8px rgba(16, 185, 129, 0.05);
}

/* Telegram Chat Simulator Window */
.chat-window {
    display: flex;
    flex-direction: column;
    height: 480px;
    background: rgba(10, 15, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    overflow: hidden;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(17, 24, 39, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.chat-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.chat-subtitle {
    font-size: 0.75rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.chat-shield-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column-reverse; /* Shows newest messages at the bottom, using flex-direction: column-reverse and v-for on a reversed array allows normal scroll dynamics or we can just render normal direction. If we render normal, flex-direction: column-reverse with reversed updates array is best for auto-scroll-to-bottom. */
    gap: 0.75rem;
    background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 0);
    background-size: 16px 16px;
}

.chat-message-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.sender-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.message-bubble {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 0 12px 12px 12px;
    padding: 0.6rem 0.8rem;
    max-width: 80%;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.message-bubble.spam-message {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

.message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.sender-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.message-time {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.message-text {
    font-size: 0.85rem;
    line-height: 1.4;
    word-break: break-word;
    color: var(--text-primary);
}

.message-text.blurred {
    filter: blur(4px);
    user-select: none;
    opacity: 0.4;
}

.spam-shield-banner {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.4rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.spam-shield-banner:hover {
    background: rgba(239, 68, 68, 0.25);
}

.chat-footer {
    padding: 0.5rem 1rem;
    background: rgba(17, 24, 39, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.typing-dots {
    display: flex;
    gap: 2px;
}

.typing-dots span {
    width: 4px;
    height: 4px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chat-system-msg {
    align-self: center;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    margin: 0.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.btn-loader {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Chat Selector Bar (Desktop Defaults) */
.chat-selector-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chat-selector-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.chat-selector-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chat-selector-select-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-selector-select {
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    padding: 0.5rem 2rem 0.5rem 1rem;
    border-radius: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    font-size: 1rem;
    min-width: 240px;
    -webkit-appearance: none;
}

.chat-selector-actions {
    display: flex;
    gap: 0.5rem;
}

.chat-selector-bar .btn {
    width: auto;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    margin-top: 0;
}

.btn-add-group {
    margin-top: 1rem !important; /* aligned with select input baseline */
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    .dashboard-container, .admin-wrapper {
        padding: 1rem 0.75rem;
        gap: 1.25rem;
    }
    
    .chat-selector-bar {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .chat-selector-inner {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 1rem;
    }
    
    .chat-selector-select {
        width: 100%;
        min-width: unset;
    }
    
    .chat-selector-actions {
        width: 100%;
    }
    
    .chat-selector-bar .btn {
        width: 100%;
        margin-top: 0 !important;
    }

    /* Mobile Table Card Layout */
    .responsive-table {
        display: block;
        width: 100%;
        border: none;
    }
    
    .responsive-table thead {
        display: none;
    }
    
    .responsive-table tbody {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .responsive-table tr {
        display: flex;
        flex-direction: column;
        background: rgba(30, 41, 59, 0.4);
        border: 1px solid var(--card-border);
        border-radius: 0.75rem;
        padding: 1rem;
        gap: 0.75rem;
        width: 100%;
        transition: border-color 0.2s ease;
    }
    
    .responsive-table tr:hover {
        border-color: rgba(255, 255, 255, 0.15);
    }
    
    .responsive-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        width: 100% !important;
        text-align: right !important;
        font-size: 0.85rem;
    }
    
    .responsive-table td:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
    
    .responsive-table td::before {
        content: "";
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        font-size: 0.7rem;
        letter-spacing: 0.5px;
        text-align: left;
        padding-right: 1rem;
        flex-shrink: 0;
    }

    .responsive-table td.empty-placeholder::before,
    .responsive-table td.loading-placeholder::before {
        content: none !important;
        display: none !important;
    }
    
    .responsive-table td.empty-placeholder,
    .responsive-table td.loading-placeholder {
        display: block !important;
        text-align: center !important;
        justify-content: center !important;
        border: none !important;
        padding: 3rem 1rem !important;
        width: 100% !important;
    }
    
    /* Column Labels for Events Table */
    .events-table td:nth-of-type(1)::before { content: "Time"; }
    .events-table td:nth-of-type(2)::before { content: "Sender"; }
    .events-table td:nth-of-type(3)::before { content: "Event"; }
    .events-table td:nth-of-type(4)::before { content: "Message"; }
    .events-table td:nth-of-type(5)::before { content: "Action"; }
    
    /* Column Labels for Spam Table */
    .spam-table td:nth-of-type(1)::before { content: "Received"; }
    .spam-table td:nth-of-type(2)::before { content: "Deleted"; }
    .spam-table td:nth-of-type(3)::before { content: "Sender"; }
    .spam-table td:nth-of-type(4)::before { content: "Message"; }
    .spam-table td:nth-of-type(5)::before { content: "Score"; }
    
    /* Column Labels for Phishing Pending Table */
    .phishing-pending-table td:nth-of-type(1)::before { content: "Detected"; }
    .phishing-pending-table td:nth-of-type(2)::before { content: "Profile"; }
    .phishing-pending-table td:nth-of-type(3)::before { content: "Bio"; }
    .phishing-pending-table td:nth-of-type(4)::before { content: "Latency / Photos"; }
    .phishing-pending-table td:nth-of-type(5)::before { content: "Risk Score"; }
    .phishing-pending-table td:nth-of-type(6)::before { content: "7d Activity"; }
    .phishing-pending-table td:nth-of-type(7)::before { content: "Action"; }
    
    /* Column Labels for Phishing Banned Table */
    .phishing-banned-table td:nth-of-type(1)::before { content: "Banned"; }
    .phishing-banned-table td:nth-of-type(2)::before { content: "Profile"; }
    .phishing-banned-table td:nth-of-type(3)::before { content: "Bio"; }
    .phishing-banned-table td:nth-of-type(4)::before { content: "Photos / Latency"; }
    .phishing-banned-table td:nth-of-type(5)::before { content: "Risk Score"; }
    .phishing-banned-table td:nth-of-type(6)::before { content: "7d Activity"; }
    .phishing-banned-table td:nth-of-type(7)::before { content: "Action"; }

    /* Column Labels for User Database Admin Table */
    .users-admin-table td:nth-of-type(1)::before { content: "ID"; }
    .users-admin-table td:nth-of-type(2)::before { content: "Email / Username"; }
    .users-admin-table td:nth-of-type(3)::before { content: "Status"; }
    .users-admin-table td:nth-of-type(4)::before { content: "Privilege"; }
    .users-admin-table td:nth-of-type(5)::before { content: "Created At"; }
    .users-admin-table td:nth-of-type(6)::before { content: "Action"; }
    
    .responsive-table td.col-user, 
    .responsive-table td.col-msg, 
    .responsive-table td.col-action {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        text-align: right;
    }
    
    .responsive-table td.col-user div,
    .responsive-table td.col-msg div,
    .responsive-table td.col-action div {
        text-align: right;
    }
}

@media (max-width: 600px) {
    .main-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        align-items: center;
    }
    
    .main-header .logo-area {
        justify-content: center;
    }
    
    .col-time {
        display: none !important; /* Hide time column inside tables for specific responsive cases */
    }

    .wizard-container {
        margin: 1.5rem auto !important;
        padding: 1.5rem 1rem !important;
        gap: 1.25rem !important;
    }
    
    .wizard-container h2 {
        font-size: 1.6rem !important;
    }
    
    .wizard-container p {
        font-size: 0.95rem !important;
    }
}

/* Tab Scrollability on Mobile */
.tab-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.tab-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.tab-btn {
    flex-shrink: 0;
}

/* Modal Actions Stacking */
.modal-actions {
    display: flex;
    gap: 1rem;
}

@media (max-width: 480px) {
    .modal-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-content {
        padding: 1.25rem 1rem !important;
        gap: 1rem !important;
    }
    
    .modal-content h2 {
        font-size: 1.25rem !important;
    }
}
