body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    display: flex; 
    flex-direction: column;
    height: 98vh; 
    gap: 20px; 
    margin: 0; 
    padding: 0 20px;
    background: #f0f2f5; 
    color: #333;
}



#user-text {
    flex: 1;
    height: 80px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    resize: none;
    outline: none;
    transition: border-color 0.3s;
}

#user-text:focus { border-color: #2196f3; }

button {
    padding: 15px 25px;
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

button:hover { background: #1976d2; transform: translateY(-1px); }

.main-layout {
    display: flex;
    gap: 20px;
    flex: 1;
    min-height: calc(100vh - 400px);
}

#text-panel { 
    flex: 1.5; 
    background: white; 
    padding: 30px; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
    overflow-y: auto; 
    font-size: 20px; 
    line-height: 1.8; 
    /*white-space: pre-wrap;*/
}

#data-panel { 
    flex: 1; 
    background: white; 
    padding: 0; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
    overflow-y: auto; 
}

.letter { 
    display: inline-block;
    transition: all 0.2s; 
    border-radius: 3px; 
    padding: 0 0px;
    border-bottom: 2px solid transparent; 
}

.highlight { 
    background-color: #ffd54f; 
    color: #000; 
    font-weight: bold; 
    border-bottom: 2px solid #ff8f00; 
    transform: scale(1.1);
}

table { width: 100%; border-collapse: collapse; }
th { 
    background: #f8f9fa; 
    position: sticky; 
    top: 0; 
    padding: 15px; 
    text-align: left; 
    border-bottom: 2px solid #2196f3; 
    color: #1976d2; 
    z-index: 10;
    cursor: pointer;
}
td { padding: 12px 15px; border-bottom: 1px solid #eee; cursor: pointer; font-size: 15px; }
tr:hover { background-color: #f1f8fe; }
.active-row { background-color: #e3f2fd !important; font-weight: bold; border-left: 4px solid #2196f3; }






.top-bar {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
}



.analyze-btn {
    padding: 0 20px;
    height: auto;
    align-self: stretch;
    font-size: 16px;
}