/* User Meeting Requests Styles */
/* Reuses expert meeting requests styles with user-specific adjustments */

.user-meeting-requests-tab {
    padding: 24px;
}

/* Stats Cards */
.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.stat-icon {
    width: 20px;
    height: 20px;
}

.stat-icon-primary { color: #6366f1; }
.stat-icon-warning { color: #f59e0b; }
.stat-icon-success { color: #10b981; }
.stat-icon-info { color: #6366f1; }

.stat-label {
    font-size: 13px;
    color: #666;
}

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

.stat-description {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* Search and Filters */
.search-filters-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.search-filters-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.search-filter-main-row {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.search-box-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #999;
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;
}

.filter-toggle-btn:hover {
    background: #f9fafb;
}

.filter-icon {
    width: 16px;
    height: 16px;
}

.filter-text {
    font-weight: 500;
}

.active-filter-indicator {
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    right: 8px;
}

.filter-buttons-expandable {
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.filter-buttons-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.filter-buttons-scroll::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-btn:hover {
    background: #f9fafb;
}

.filter-badge {
    background: #f59e0b;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 4px;
}

.active-filter {
    background: #6366f1 !important;
    color: white !important;
    border-color: #6366f1 !important;
}

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

/* Requests Container */
.requests-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

/* Table Header (Desktop) */
.requests-table-header {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1fr 0.8fr 0.8fr;
    gap: 16px;
    padding: 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

/* Loading State */
.requests-loading {
    padding: 60px;
    text-align: center;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.requests-loading p {
    margin-top: 16px;
    color: #666;
}

/* Requests List */
.requests-list {
    display: flex;
    flex-direction: column;
}

.request-item {
    border-bottom: 1px solid #e5e7eb;
}

.request-item:last-child {
    border-bottom: none;
}

/* Desktop Row */
.request-row-desktop {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr 1fr 0.8fr 0.8fr;
    gap: 16px;
    padding: 16px;
    align-items: center;
    font-size: 14px;
}

.request-col {
    min-width: 0;
}

.request-title {
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.request-id {
    font-size: 12px;
    color: #666;
}

/* User Info */
.user-info-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-avatar-placeholder-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.user-details-inline {
    min-width: 0;
}

.user-name-inline {
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-category-inline {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Product Badge */
.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #ede9fe;
    color: #6366f1;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.product-badge i {
    width: 14px;
    height: 14px;
}

/* Date */
.request-date {
    font-weight: 500;
    color: #1a1a1a;
}

.request-time {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* Amount */
.request-amount {
    font-weight: 600;
    color: #1a1a1a;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status-badge i {
    width: 12px;
    height: 12px;
}

.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-confirmed {
    background: #d1fae5;
    color: #059669;
}

.status-cancelled {
    background: #fee2e2;
    color: #dc2626;
}

/* Actions */
.request-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn i {
    width: 14px;
    height: 14px;
}

.action-view {
    background: #6366f1;
    color: white;
}

.action-view:hover {
    background: #4f46e5;
}

.action-remind {
    background: #f59e0b;
    color: white;
}

.action-remind:hover {
    background: #d97706;
}

.action-cancel {
    background: white;
    color: #dc2626;
    border: 1px solid #e5e7eb;
}

.action-cancel:hover {
    background: #fee2e2;
}

.action-join {
    background: #10b981;
    color: white;
}

.action-join:hover {
    background: #059669;
}

/* Mobile Card (Hidden on Desktop) */
.request-card-mobile {
    display: none;
}

/* Empty State */
.requests-empty {
    padding: 60px;
    text-align: center;
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon i {
    width: 40px;
    height: 40px;
    color: #9ca3af;
}

.requests-empty h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.requests-empty p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Request Details View - Full Application View (Not Modal) */
.request-details-view {
    width: 100%;
    background: #f9fafb;
    min-height: 100vh;
}

.request-details-wrapper {
    background: transparent;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.request-details-header {
    background: white;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #f9fafb;
}

.back-btn i {
    width: 16px;
    height: 16px;
}

.request-details-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.request-details-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    overflow-y: auto;
}

.request-details-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.details-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.expert-info-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.expert-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.expert-avatar-placeholder-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 24px;
}

.expert-details h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.expert-category {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.detail-label i {
    width: 16px;
    height: 16px;
}

.detail-value {
    font-size: 14px;
    color: #1a1a1a;
    text-align: right;
}

.message-content {
    text-align: left;
    background: #f9fafb;
    padding: 12px;
    border-radius: 6px;
    margin-top: 8px;
    width: 100%;
}

.action-panel {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.panel-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-secondary,
.btn-danger,
.btn-success,
.btn-primary {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary {
    background: white;
    color: #666;
    border: 1px solid #e5e7eb;
}

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

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

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

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-primary {
    background: #6366f1;
    color: white;
}

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

.details-actions {
    display: flex;
    gap: 12px;
}

.btn-primary-large,
.btn-danger-large,
.btn-success-large {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary-large {
    background: #6366f1;
    color: white;
}

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

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

.btn-danger-large:hover {
    background: #b91c1c;
}

.btn-success-large {
    background: #10b981;
    color: white;
}

.btn-success-large:hover {
    background: #059669;
}

.btn-primary-large i,
.btn-danger-large i,
.btn-success-large i {
    width: 18px;
    height: 18px;
}

/* Chat Sidebar */
.request-details-sidebar {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.chat-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.chat-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .user-meeting-requests-tab {
        padding: 16px;
    }
    
    .stats-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .stat-card {
        padding: 14px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .requests-table-header,
    .request-row-desktop {
        display: none !important;
    }
    
    .request-card-mobile {
        display: block !important;
        padding: 16px;
    }
    
    .request-item {
        background: white;
        border-radius: 16px;
        margin-bottom: 12px;
        border: 1px solid #e5e7eb;
        overflow: hidden;
    }
    
    .requests-list {
        padding: 0;
        background: transparent;
    }
    
    .requests-container {
        background: transparent;
        border: none;
    }
    
    .mobile-card-header {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-bottom: 16px;
        border-bottom: 1px solid #f3f4f6;
        margin-bottom: 16px;
    }
    
    .mobile-user-section {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }
    
    .mobile-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
    }
    
    .mobile-avatar-placeholder {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 18px;
        flex-shrink: 0;
    }
    
    .mobile-user-details {
        flex: 1;
        min-width: 0;
    }
    
    .mobile-user-name {
        font-size: 16px;
        font-weight: 600;
        color: #1a1a1a;
        margin-bottom: 4px;
    }
    
    .mobile-user-category {
        font-size: 13px;
        color: #6b7280;
        margin-bottom: 6px;
    }
    
    .mobile-request-id {
        font-size: 11px;
        color: #9ca3af;
        font-weight: 500;
    }
    
    .mobile-card-body {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .mobile-info-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        background: #f9fafb;
        border-radius: 10px;
        gap: 12px;
    }
    
    .mobile-amount-item {
        background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
        border: 1px solid #d1fae5;
    }
    
    .mobile-info-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        font-weight: 600;
        color: #6b7280;
        flex-shrink: 0;
    }
    
    .mobile-info-label i {
        width: 16px;
        height: 16px;
    }
    
    .mobile-info-value {
        text-align: right;
        font-size: 14px;
        font-weight: 600;
        color: #1a1a1a;
    }
    
    .mobile-time {
        font-size: 12px;
        color: #6b7280;
        font-weight: 400;
        margin-top: 2px;
    }
    
    .mobile-amount {
        font-size: 18px;
        font-weight: 700;
        color: #059669;
    }
    
    .mobile-card-actions {
        display: flex;
        gap: 8px;
        padding-top: 16px;
        border-top: 1px solid #f3f4f6;
        flex-wrap: wrap;
    }
    
    .mobile-action-btn {
        flex: 1;
        min-width: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 16px;
        border: none;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .mobile-action-btn i {
        width: 16px;
        height: 16px;
    }
    
    .mobile-view {
        background: #6366f1;
        color: white;
    }
    
    .mobile-remind {
        background: #f59e0b;
        color: white;
    }
    
    .mobile-join {
        background: #10b981;
        color: white;
    }
    
    .request-details-content {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .request-details-sidebar {
        order: -1;
        max-height: 400px;
    }
}
