.letters-column {
    height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5rem;
    overflow: hidden;
}

.letter-item {
    font-size: clamp(1rem, 2vw, 1.8rem);
    font-weight: bold;
    text-align: center;
    padding: 0.25rem;
    margin: 0.5rem 0;
    border-radius: 0.25rem;
    background-color: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    cursor: pointer;
}

/* Fancy Select Box Styles */
.fancy-select {
    background-color: #343a40;
    color: white;
    border: 2px solid #6c757d;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    padding: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.fancy-select:focus {
    border-color: #17a2b8;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.5);
    outline: none;
}

.fancy-select option {
    background-color: #343a40;
    color: white;
    font-size: 1.1rem;
    padding: 10px;
}

/* Letter Pairs Styles */
.letter-pairs-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100vh - 90px);
    overflow-y: hidden;
    padding-right: 0.25rem;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.letter-pairs-container::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

.letter-pair-item {
    width: 100%;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    cursor: pointer;
    margin-bottom: 0.5rem;
    flex: 1;
    min-height: 0;
    padding-left: 1rem;
}

.pair-content {
    font-size: clamp(1rem, 4vh, 1.6rem);
    font-weight: bold;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.5rem;
}

.no-pairs {
    color: white;
    font-size: 1.4rem;
    padding: 2rem;
    text-align: center;
}

@media (max-width: 576px) {
    .letter-pairs-container {
        height: calc(100vh - 80px);
    }
    
    .letter-pair-item {
        padding-left: 0.5rem;
    }
    
    .pair-content {
        font-size: clamp(0.8rem, 3vh, 1.1rem);
        padding: 0.3rem;
    }
}

/* Modal styles */
.modal-content {
    background-color: #343a40;
    color: white;
}

.modal-header {
    border-bottom: 1px solid #495057;
}

.modal-footer {
    border-top: 1px solid #495057;
}

#pairContent {
    max-height: 60vh;
    overflow-y: auto;
}

#modalProgress {
    height: 100%;
}

.progress {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0;
    overflow: hidden;
    margin: 0;
}
