/**
 * ParseHub by Элвис
 * Website: https://ofdev.net
 * Telegram: @elvisofdev
 * Generated: 2025-11-15
 */

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

:root {
    --success-green: #90EE90;
    --danger-red: #FFB6B6;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --border-light: #e0e0e0;
    --selected-blue: #E3F2FD;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
}

body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #3B82F6;
    height: 100vh;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 28px;
}

.login-box p {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: #3B82F6;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    background: #2563EB;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.3);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: var(--white);
    color: #667eea;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.btn-icon:hover {
    background: #f8f9fa;
    border-color: #667eea;
    transform: translateY(-1px);
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.login-info {
    text-align: center;
    margin-top: 20px;
    color: var(--text-gray);
    font-size: 13px;
}

.dashboard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: var(--white);
    padding: 12px 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
}

.header h1 {
    font-size: 20px;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-nav {
    display: flex;
    gap: 20px;
    margin: 0 auto;
}

.header-nav a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.header-nav a:hover {
    background: var(--bg-light);
}

.header-nav a.active {
    background: #3B82F6;
    color: var(--white);
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.user-info {
    color: var(--text-gray);
    font-size: 14px;
}

.btn-logout {
    background-color: #dc3545;
    color: var(--white);
    padding: 10px 20px;
    font-size: 14px;
}

.btn-logout:hover {
    background-color: #c82333;
}

.main-content {
    flex: 1;
    display: flex;
    padding: 10px;
    gap: 15px;
    max-width: 1600px;
    margin: 0 0 0 auto;
    width: 100%;
}

.profile-section {
    flex: 2;
    max-width: 850px;
}

.profile-card {
    background: var(--white);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid var(--border-light);
}

.profile-layout {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-left {
    flex-shrink: 0;
}

.photo-main {
    width: 280px;
    height: 280px;
    background-color: #d3d3d3;
    border-radius: 16px;
    overflow: hidden;
}

.photo-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.profile-right-photos {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.photo-small {
    width: 135px;
    height: 135px;
    background-color: #d3d3d3;
    border-radius: 12px;
    overflow: hidden;
}

.photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    margin-bottom: 16px;
}

.profile-info h2 {
    font-size: 18px;
    margin-bottom: 4px;
    font-weight: 600;
}

.profile-info .username {
    color: var(--text-gray);
    font-size: 15px;
    margin-bottom: 8px;
}

.profile-links-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(131, 58, 180, 0.3);
}

.profile-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(131, 58, 180, 0.4);
}

.profile-link svg {
    flex-shrink: 0;
}

.profile-link.threads-link {
    background: #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.profile-link.threads-link:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.profile-info .bio {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.profile-info .website {
    color: #4A90E2;
    text-decoration: none;
    font-size: 16px;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
    display: block;
}

.bio-link-external {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #00376b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s;
    line-height: 1.5;
}

.bio-link-external:hover {
    opacity: 0.7;
}

.bio-link-external svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #00376b;
}

.bio-link-external span {
    word-break: break-word;
}

.bio-links {
    color: #00376b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: opacity 0.2s;
    vertical-align: middle;
    line-height: 1;
}

.bio-links:hover {
    opacity: 0.7;
}

.bio-links svg {
    flex-shrink: 0;
    color: #00376b;
    display: inline-block;
    vertical-align: middle;
}

.bio-mention {
    color: #00376b;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.bio-mention:hover {
    opacity: 0.7;
}

.bio-threads {
    color: #000000;
}

.bio-threads svg {
    color: #000000;
}

.bio a {
    word-break: break-word;
    overflow-wrap: break-word;
}

.profile-info .bio {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.bio-links-container {
    margin-top: 8px;
}

.bio-links-expanded {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 8px;
}

.bio-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.2s;
}

.bio-link-item:hover {
    background: #f1f3f5;
}

.bio-link-item svg {
    flex-shrink: 0;
    color: #00376b;
}

.bio-link-item .link-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.bio-link-item .link-url {
    font-size: 13px;
    color: #64748b;
    word-wrap: break-word;
    word-break: break-all;
}

.profile-info .website:hover {
    text-decoration: underline;
}

.profile-stats {
    display: flex;
    gap: 24px;
    padding: 12px 0;
    margin-bottom: 16px;
}

.profile-stats-compact {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    margin: 8px 0 12px 0;
}

.profile-stats-compact .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
}

.profile-stats-compact .stat-item svg {
    color: var(--text-gray);
    flex-shrink: 0;
}

.profile-stats-compact .stat-value {
    font-weight: 600;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    margin-left: 5px;
}

.profile-meta {
    margin-top: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-dark);
}

.profile-meta-item svg {
    color: var(--text-gray);
    flex-shrink: 0;
}

.profile-meta-label {
    color: var(--text-gray);
    font-weight: 500;
    min-width: 60px;
}

.profile-meta-value {
    font-weight: 500;
    color: var(--text-dark);
}

.status-badge-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge-meta.pending {
    background: #FFF3CD;
    color: #856404;
}

.status-badge-meta.approved {
    background: #D4EDDA;
    color: #155724;
}

.status-badge-meta.rejected {
    background: #F8D7DA;
    color: #721C24;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.keyboard-shortcuts {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.keyboard-shortcuts kbd {
    display: inline-block;
    padding: 4px 8px;
    font-family: monospace;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    min-width: 28px;
    text-align: center;
}

.loading-more {
    padding: 16px;
    text-align: center;
    color: #666;
    font-size: 13px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 8px;
}

.btn-yes,
.btn-no,
.btn-next {
    flex: 1;
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-yes {
    background-color: var(--success-green);
    color: var(--text-dark);
}

.btn-yes:hover {
    background-color: #7FD87F;
}

.btn-yes:before {
    content: "●";
    color: #22BB33;
    font-size: 20px;
}

.btn-no {
    background-color: var(--danger-red);
    color: var(--text-dark);
}

.btn-no:hover {
    background-color: #FFA5A5;
}

.btn-no:before {
    content: "●";
    color: #DD4444;
    font-size: 20px;
}

.btn-next {
    background-color: #E3F2FD;
    color: var(--text-dark);
}

.btn-next:hover {
    background-color: #BBDEFB;
}

.btn-next:before {
    content: "→";
    color: #3B82F6;
    font-size: 20px;
}

.users-section {
    flex: 1;
    min-width: 0;
    max-width: 400px;
}

.users-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.panel-header {
    padding: 8px 8px 6px 8px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btn-export {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
}

.folder-info {
    text-align: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
}

.folder-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 3px;
}

.folder-meta {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.folder-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.folder-meta-item svg {
    width: 12px;
    height: 12px;
    opacity: 0.7;
}

.folder-status {
    display: flex;
    justify-content: center;
    margin: 6px 0 8px 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.status-badge:hover {
    background: #e8eaed;
    border-color: #d0d0d0;
    transform: translateY(-1px);
}

.status-badge.processed {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.status-badge.processed:hover {
    background: #c8e6c9;
}

.status-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.status-badge.processed .status-icon {
    stroke: #4caf50;
}

.status-badge:hover .status-icon {
    transform: scale(1.1);
}

.filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group {
    position: relative;
    flex: 1;
    min-width: 150px;
}

.filter-group select {
    width: 100%;
    padding: 12px 35px 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    background: var(--white);
    cursor: pointer;
    appearance: none;
}

.filter-group select:focus {
    outline: none;
    border-color: #4A90E2;
}

.filter-group:after {
    content: "▼";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: var(--text-gray);
    pointer-events: none;
}

.users-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    max-height: calc(100vh - 180px);
}

.folder-group {
    margin-bottom: 15px;
}

.folder-header {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    padding: 12px 8px 8px 8px;
}

.user-item {
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 3px;
    cursor: pointer;
    transition: background-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.user-item:hover {
    background-color: #f8f9fa;
}

.user-item.active {
    background-color: var(--selected-blue);
}

.user-item-info {
    flex: 1;
    min-width: 0;
}

.user-item-username {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.user-item-meta {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-approved {
    background-color: #22BB33;
}

.status-rejected {
    background-color: #DD4444;
}

.status-pending {
    background-color: #FFA500;
}

.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
    color: var(--text-gray);
}

.empty-state-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 16px;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
    font-size: 16px;
}

.parser-panel {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid var(--border-light);
    margin-top: 30px;
}

.parser-panel h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.parser-panel textarea {
    min-height: 120px;
    resize: vertical;
    font-size: 14px;
}

.users-list::-webkit-scrollbar {
    width: 8px;
}

.users-list::-webkit-scrollbar-track {
    background: transparent;
}

.users-list::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}

.users-list::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

@media (max-width: 1400px) {
    .main-content {
        padding: 10px;
    }

    .profile-section {
        flex: 2;
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .btn-export {
        padding: 12px 16px;
        font-size: 14px;
    }

    .profile-layout {
        flex-direction: column;
    }

    .photo-main {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .profile-right-photos {
        justify-content: space-between;
    }

    .photo-small {
        flex: 1;
        max-width: calc(50% - 5px);
        height: auto;
        aspect-ratio: 1;
    }

    .profile-card {
        padding: 30px 24px;
    }

    .action-buttons {
        gap: 8px;
    }

    .btn-yes,
    .btn-no,
    .btn-next {
        padding: 16px 12px;
        font-size: 16px;
    }

    .btn-yes:before,
    .btn-no:before,
    .btn-next:before {
        font-size: 18px;
    }
}

@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
        padding: 10px;
    }

    .profile-section {
        flex: 1;
        width: 100%;
        max-width: 100%;
    }

    .users-section {
        max-width: 100%;
    }

    .users-panel {
        min-height: 500px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #1a1a1a;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
}

/**
 * ParseHub by Элвис
 * Website: https://ofdev.net
 * Telegram: @elvisofdev
 * Generated: 2025-11-15
 */


/* Users Page - New Design */
.filters-stats-block {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filters-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filters-row .filter-group {
    flex: 1;
    min-width: 200px;
}

.filters-row .filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filters-row select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.filters-row select:hover {
    border-color: #3B82F6;
}

.filters-row select:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.stats-row {
    display: flex;
    gap: 25px;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.stat-item .stat-label {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}

.stat-item .stat-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.actions-row {
    display: flex;
    gap: 10px;
}

.actions-row .btn {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-secondary {
    background: #f5f5f5;
    color: var(--text-dark);
    border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
    background: #e8e8e8;
}

/* Users Table Block */
.users-table-block {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.users-table-wrapper {
    overflow-x: auto;
    max-height: calc(100vh - 400px);
    overflow-y: auto;
}

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

.users-table thead {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 10;
}

.users-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
}

.users-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s;
}

.users-table tbody tr:hover {
    background: #f8f9fa;
}

.users-table tbody tr.selected {
    background: var(--selected-blue);
}

.users-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-dark);
}

.users-table .user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-cell .online-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
}

.user-cell .user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-info .user-name {
    font-weight: 600;
    color: var(--text-dark);
}

.user-info .user-link {
    font-size: 12px;
    color: var(--text-gray);
}

.users-table .loading {
    text-align: center;
    padding: 40px;
    color: var(--text-gray);
}

.users-table .status-approved {
    color: #10b981;
}

.users-table .status-rejected {
    color: #ef4444;
}

.users-table .status-pending {
    color: #f59e0b;
}

/* Responsive */
@media (max-width: 1024px) {
    .filters-row {
        flex-direction: column;
    }

    .filters-row .filter-group {
        min-width: 100%;
    }

    .stats-row {
        flex-wrap: wrap;
    }

    .actions-row {
        flex-wrap: wrap;
    }
}

/* Users Page Grid Layout */
.users-page {
    height: calc(100vh - 60px);
    overflow: hidden;
}

.users-grid {
    display: grid;
    grid-template-columns: 1fr 300px 300px;
    gap: 16px;
    height: 100%;
    padding: 16px;
}

.profile-section,
.filters-section,
.users-section {
    height: 100%;
    overflow: hidden;
}

/* Filters Panel */
.filters-panel {
    background: white;
    border-radius: 12px;
    padding: 16px;
    height: 100%;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}


.filter-group {
    margin-bottom: 14px;
}

.filter-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.select-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.select-input:hover {
    border-color: #3B82F6;
}

.select-input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.age-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.age-input {
    flex: 1;
    min-width: 0;
    max-width: 80px;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.2s;
}

.age-input:hover {
    border-color: #3B82F6;
}

.age-input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.age-input::placeholder {
    color: #999;
}

.age-separator {
    color: #999;
    font-weight: 500;
}

.stats-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 14px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.stat-item:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

.stat-item .stat-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.stat-item .stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.stat-item.stat-success .stat-value {
    color: #22BB33;
}

.stat-item.stat-danger .stat-value {
    color: #DD4444;
}

.folder-info-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 14px;
}

.folder-info-box .folder-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
}

.status-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.status-btn.processed {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
}

.status-btn svg {
    width: 14px;
    height: 14px;
}

.btn-export {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: #3B82F6;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-export:hover {
    background: #2563EB;
}

.btn-export svg {
    width: 16px;
    height: 16px;
}

/* Users Panel */
.users-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
    will-change: scroll-position;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.users-list {
    display: flex;
    flex-direction: column;
    min-height: min-content;
}

.user-item {
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 3px;
    cursor: pointer;
    transition: background-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.user-item:hover {
    background-color: #f8f9fa;
}

.user-item.active {
    background-color: var(--selected-blue);
}

.user-item-info {
    flex: 1;
    min-width: 0;
}

.user-item-username {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.user-item-meta {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.users-list .loading {
    text-align: center;
    padding: 40px;
    color: var(--text-gray);
}

.users-list::-webkit-scrollbar {
    width: 8px;
}

.users-list::-webkit-scrollbar-track {
    background: transparent;
}

.users-list::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}

.users-list::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}

.status-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.status-approved {
    background-color: #22BB33;
}

.status-indicator.status-rejected {
    background-color: #DD4444;
}

.status-indicator.status-pending {
    background-color: #FFA500;
}

.empty-state-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.empty-state-panel .empty-state {
    text-align: center;
    padding: 40px 20px;
}

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

.empty-state-panel .empty-state p {
    color: #999;
    font-size: 13px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1400px) {
    .users-grid {
        grid-template-columns: 1fr 280px 280px;
    }
}

@media (max-width: 1200px) {
    .users-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
        gap: 12px;
    }

    .profile-section,
    .filters-section {
        height: auto;
        max-height: 400px;
    }
}

.ai-analysis-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.ai-controls {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-analyze, .btn-stop {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-analyze {
    background: #3B82F6;
    color: white;
}

.btn-analyze:hover {
    background: #2563EB;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-stop {
    background: #EF4444;
    color: white;
}

.btn-stop:hover {
    background: #DC2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.analysis-progress {
    margin-top: 12px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 13px;
}

.progress-text {
    color: #666;
    font-weight: 500;
}

.progress-percent {
    color: #3B82F6;
    font-weight: 700;
    font-size: 14px;
}

.progress-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.detail-item {
    font-size: 12px;
    color: #666;
}

.detail-item strong {
    color: #1a1a1a;
    font-weight: 600;
}

.stat-info {
    background: #EFF6FF;
    border-left: 3px solid #3B82F6;
}

.stat-warning {
    background: #FEF3C7;
    border-left: 3px solid #F59E0B;
}

.stat-primary {
    background: #F0F9FF;
    border-left: 3px solid #0EA5E9;
}
