/* Blacklist Modal Styles - Match Request Form Modal */
#blacklistModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5000;
    overflow: hidden;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#blacklistModal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.blacklist-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.blacklist-modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid #f0fceb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f0fceb 0%, #e8f5e0 100%);
    border-radius: 15px 15px 0 0;
}

.blacklist-modal-header h2 {
    color: #2d5016;
    font-size: 24px;
    margin: 0;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-modal:hover {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

.blacklist-modal-body {
    padding: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Tab Navigation - Match Request Form Style */
.blacklist-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e8d8;
    background: #fafcf9;
    padding: 0 30px;
}

.blacklist-tab {
    padding: 18px 28px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    top: 2px;
    font-family: 'Fredoka', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.blacklist-tab:hover {
    color: #5a7a45;
    background: rgba(90, 122, 69, 0.05);
}

.blacklist-tab.active {
    color: #2d5016;
    border-bottom-color: #5a7a45;
    background: white;
    font-weight: 600;
}

/* Tab Content */
.blacklist-tab-content {
    display: none;
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.blacklist-tab-content.active {
    display: block;
}

/* Interacted Users List */
.interacted-users-container h3,
.blacklisted-users-container h3 {
    color: #2d5016;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.interacted-users-list,
.blacklisted-users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f9faf8;
    border: 1px solid #e0e8d8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-item:hover {
    background: #f0f5ec;
    border-color: #5a7a45;
    transform: translateX(4px);
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 16px;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #2d5016;
    font-size: 1rem;
    margin-bottom: 4px;
}

.user-meta {
    font-size: 0.85rem;
    color: #666;
}

.user-action {
    margin-left: auto;
}

.add-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #5a7a45;
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 300;
    transition: all 0.2s ease;
}

.user-item:hover .add-icon {
    background: #4a6a35;
    transform: rotate(90deg);
}

/* Blacklisted Users */
.blacklisted-user-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin-bottom: 12px;
}

.blacklisted-user-item .user-avatar {
    opacity: 0.7;
}

.user-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.btn-report,
.btn-remove {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-report {
    background: #dc2626;
    color: white;
}

.btn-report:hover {
    background: #b91c1c;
}

.btn-remove {
    background: #e0e8d8;
    color: #2d5016;
}

.btn-remove:hover {
    background: #c5d4b8;
}

/* Report Form */
.report-form-container {
    max-width: 700px;
    margin: 20px auto;
    padding: 24px;
    background: #f9faf8;
    border: 1px solid #e0e8d8;
    border-radius: 8px;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.form-header h3 {
    color: #2d5016;
    font-size: 1.2rem;
    margin: 0;
}

.close-form-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-form-btn:hover {
    color: #dc2626;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #2d5016;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group label.required::after {
    content: ' *';
    color: #dc2626;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.reporting-user-display {
    padding: 12px;
    background: white;
    border: 1px solid #e0e8d8;
    border-radius: 6px;
}

.reporting-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reporting-user strong {
    color: #2d5016;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #5a7a45;
    color: white;
}

.btn-primary:hover {
    background: #4a6a35;
}

.btn-secondary {
    background: #e0e8d8;
    color: #2d5016;
}

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

/* Loading and Empty States */
.loading,
.empty-state,
.error-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 1rem;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.empty-state {
    color: #999;
}

.error-state {
    color: #dc2626;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blacklist-modal-content {
        width: 100%;
        max-height: 95vh;
        border-radius: 0;
    }
    
    .blacklist-tabs {
        padding: 0 12px;
    }
    
    .blacklist-tab {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .blacklist-tab-content {
        padding: 16px;
    }
    
    .user-item,
    .blacklisted-user-item {
        padding: 12px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .user-name {
        font-size: 0.95rem;
    }
    
    .user-meta {
        font-size: 0.8rem;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .btn-report,
    .btn-remove {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .report-form-container {
        padding: 16px;
        margin: 16px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}
