/* Session History Browser Styles */

/* History Panel Overlay */
.history-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    animation: fadeIn 0.3s ease;
}

.history-panel.hidden {
    display: none;
}

/* History Container */
.history-container {
    background: var(--background);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* History Header */
.history-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.history-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.history-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: white;
}

.history-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.history-close-btn svg {
    stroke: white;
}

/* History Stats Bar */
.history-stats-bar {
    background: var(--surface);
    padding: var(--spacing-lg) var(--spacing-xl);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    border-bottom: 2px solid var(--border-color);
}

.history-stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(200, 90, 58, 0.05) 0%, rgba(232, 114, 90, 0.05) 100%);
    border: 2px solid rgba(200, 90, 58, 0.15);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.history-stat-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.history-stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.history-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* History Filter Tabs */
.history-filter-tabs {
    background: var(--surface);
    padding: var(--spacing-md) var(--spacing-xl);
    display: flex;
    gap: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
}

.history-filter-tab {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 8px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    color: var(--text-secondary);
}

.history-filter-tab:hover {
    border-color: var(--primary-light);
    background: rgba(200, 90, 58, 0.05);
}

.history-filter-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* History Content Area */
.history-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-xl);
    background: var(--background);
}

.history-content::-webkit-scrollbar {
    width: 8px;
}

.history-content::-webkit-scrollbar-track {
    background: transparent;
}

.history-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.history-content::-webkit-scrollbar-thumb:hover {
    background: #CCCCCC;
}

/* History Loading State */
.history-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    gap: var(--spacing-md);
}

.history-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(200, 90, 58, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* History Empty State */
.history-empty {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    color: var(--text-secondary);
}

.history-empty-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.5;
}

.history-empty-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.history-empty-message {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.history-empty-cta {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: var(--spacing-md) var(--spacing-xl);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-empty-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* History Session Cards */
.history-sessions-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    animation: staggerIn 0.5s ease;
}

@keyframes staggerIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.history-session-card {
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-lg);
}

.history-session-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-left-width: 6px;
}

.history-session-main {
    flex: 1;
    min-width: 0;
}

.history-session-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
    gap: var(--spacing-md);
}

.history-session-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.history-session-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.history-session-preview {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.history-session-stats {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.history-session-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.history-session-stat-icon {
    font-size: 1rem;
}

.history-session-stat-value {
    font-weight: 600;
    color: var(--primary-color);
}

/* History Session Detail View */
.history-detail {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.history-detail-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.history-back-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.history-back-btn:hover {
    border-color: var(--primary-color);
    background: rgba(200, 90, 58, 0.05);
}

.history-back-btn svg {
    stroke: var(--text-secondary);
}

.history-back-btn:hover svg {
    stroke: var(--primary-color);
}

.history-detail-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.history-detail-meta {
    display: flex;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    padding: var(--spacing-md) 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: var(--spacing-lg);
}

.history-detail-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-detail-meta-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-detail-meta-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.history-transcript {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.history-transcript-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

/* Reuse message bubble styles from main chat */
.history-message {
    display: flex;
    margin-bottom: var(--spacing-md);
    animation: slideIn 0.3s ease-out;
}

.history-message.user {
    justify-content: flex-start;
}

.history-message.assistant {
    justify-content: flex-end;
}

.history-message-bubble {
    max-width: 75%;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius);
    word-wrap: break-word;
    box-shadow: var(--shadow-sm);
}

.history-message.user .history-message-bubble {
    background: var(--surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.history-message.assistant .history-message-bubble {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.history-message-content {
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.history-message-time {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: var(--spacing-xs);
}

/* History Button in Header */
.history-button {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 10px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.history-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .history-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: var(--spacing-md);
    }

    .history-filter-tabs {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .history-content {
        padding: var(--spacing-md);
    }

    .history-session-card {
        padding: var(--spacing-md);
        flex-direction: column;
    }

    .history-session-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .history-detail-meta {
        gap: var(--spacing-md);
    }

    .history-message-bubble {
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .history-title {
        font-size: 1.4rem;
    }

    .history-stats-bar {
        grid-template-columns: 1fr;
    }

    .history-stat-value {
        font-size: 1.5rem;
    }

    .history-session-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* ========== LEARNING INSIGHTS STYLES ========== */

.history-insights-section {
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.insights-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.insights-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.insights-period {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(200, 90, 58, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.insights-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.insight-card {
    background: linear-gradient(135deg, rgba(200, 90, 58, 0.05) 0%, rgba(232, 114, 90, 0.08) 100%);
    border: 2px solid rgba(200, 90, 58, 0.15);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    text-align: center;
    transition: all 0.2s ease;
}

.insight-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.insight-card-primary {
    grid-column: span 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border-color: var(--primary-color);
}

.insight-card-icon {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-xs);
}

.insight-card-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.insight-card-primary .insight-card-value {
    color: white;
}

.insight-card-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.insight-card-primary .insight-card-label {
    color: rgba(255, 255, 255, 0.9);
}

.insight-card-detail {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.insights-velocity {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(200, 90, 58, 0.03);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.velocity-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.velocity-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.velocity-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.velocity-struggles .velocity-value {
    color: #e67e22;
}

.insights-templates {
    border-top: 2px solid var(--border-color);
    padding-top: var(--spacing-md);
}

.insights-templates-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 var(--spacing-sm) 0;
}

.insights-templates-list {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.insights-template-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.insights-template-icon {
    font-size: 1rem;
}

.insights-template-name {
    color: var(--text-primary);
    font-weight: 500;
}

.insights-template-count {
    color: var(--primary-color);
    font-weight: 600;
}

.insights-empty-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ========== LEARNING CHART STYLES ========== */

.history-chart-section {
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.chart-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.chart-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.chart-container {
    position: relative;
    height: 180px;
}

.chart-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
    gap: 4px;
    padding-bottom: 24px;
}

.chart-bar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
}

.chart-bar {
    width: 100%;
    max-width: 40px;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    position: relative;
    margin-top: auto;
}

.chart-bar:hover {
    background: linear-gradient(180deg, var(--primary-color) 0%, #a03927 100%);
    transform: scaleY(1.02);
}

.chart-bar.current {
    background: linear-gradient(180deg, #f39c12 0%, #e67e22 100%);
}

.chart-bar-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.chart-bar-label {
    position: absolute;
    bottom: -20px;
    font-size: 0.65rem;
    color: var(--text-secondary);
    white-space: nowrap;
    transform: rotate(-45deg);
    transform-origin: top left;
}

/* ========== SESSION HISTORY HEADER ========== */

.history-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.history-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.history-section-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 20px;
}

/* ========== ENHANCED SESSION CARDS ========== */

.session-title-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.session-template-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(200, 90, 58, 0.1) 0%, rgba(232, 114, 90, 0.15) 100%);
    border: 1px solid rgba(200, 90, 58, 0.3);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
}

.template-difficulty {
    background: rgba(255, 255, 255, 0.8);
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 0.65rem;
    text-transform: capitalize;
}

.template-difficulty.beginner {
    color: #27ae60;
}

.template-difficulty.intermediate {
    color: #f39c12;
}

.template-difficulty.advanced {
    color: #e74c3c;
}

.session-learning-stats {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.learning-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 16px;
}

.learning-stat.words {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.learning-stat.struggles {
    background: rgba(230, 126, 34, 0.1);
    color: #e67e22;
}

.learning-stat-icon {
    font-size: 0.9rem;
}

.session-card-arrow {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    opacity: 0.5;
    transition: all 0.2s ease;
}

.history-session-card:hover .session-card-arrow {
    opacity: 1;
    color: var(--primary-color);
    transform: translateX(4px);
}

/* ========== SESSION DETAIL ENHANCEMENTS ========== */

.session-detail-vocabulary,
.session-detail-grammar,
.session-detail-recommendation {
    background: var(--surface);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.vocabulary-section-title,
.grammar-section-title,
.recommendation-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--spacing-md) 0;
}

.vocabulary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--spacing-sm);
}

.vocabulary-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: all 0.2s ease;
}

.vocabulary-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.vocabulary-item.struggled {
    border-left: 3px solid #e67e22;
    background: rgba(230, 126, 34, 0.03);
}

.vocab-word {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.vocab-translation {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.vocab-struggled-badge {
    font-size: 0.7rem;
    color: #e67e22;
    background: rgba(230, 126, 34, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
    margin-top: 4px;
    display: inline-block;
    width: fit-content;
}

.grammar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.grammar-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(200, 90, 58, 0.08) 0%, rgba(232, 114, 90, 0.12) 100%);
    border: 1px solid rgba(200, 90, 58, 0.2);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.grammar-count {
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.session-detail-recommendation {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(52, 152, 219, 0.1) 100%);
    border-color: rgba(52, 152, 219, 0.3);
}

.recommendation-text {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */

@media (max-width: 768px) {
    .insights-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .insight-card-primary {
        grid-column: span 2;
    }

    .insights-velocity {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .chart-container {
        height: 140px;
    }

    .chart-bar-label {
        font-size: 0.55rem;
    }

    .vocabulary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .insights-cards {
        grid-template-columns: 1fr;
    }

    .insight-card-primary {
        grid-column: span 1;
    }

    .insight-card-value {
        font-size: 1.5rem;
    }

    .session-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .session-learning-stats {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}
