@font-face {
    font-family: 'Poppins';
    src: url('/static/fonts/Poppins-Regular.woff2') format('woff2'),
         url('/static/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* Global Styles */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    font-family: 'Poppins', sans-serif;
}

.container {
    width: 100%;
    max-width: 1000px;
    /* background: #fff;
    padding: 20px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1); */
}

/* Headings */
h1 {
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    font-size: 24px;
    font-weight: bold;
    text-align: left;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Input Section */
.input-section {
    margin-bottom: 20px;
}

/* Textarea Styling */
textarea {
    width: 100%;
    height: 200px;
    padding: 20px;
    font-size: 16px;
    font-family: monospace;
    line-height: 1.5;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
    overflow-x: auto;
    margin-bottom: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

textarea:focus {
    border-color: #4A90E2;
    box-shadow: 0px 5px 15px rgba(74, 144, 226, 0.2);
}

/* Display Box for Read-only Content */
.display-box {
    background: #eeeeee;
    width: 100%;
    height: 200px;
    padding: 20px;
    font-size: 16px;
    font-family: monospace;
    line-height: 1.5;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
    overflow-x: auto;
    margin-bottom: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

#article-display, #summary-display {
    white-space: pre-wrap;
}

/* Button Styling */
button {
    width: 100%;
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

button:hover {
    background: linear-gradient(135deg, #357ABD, #2A5FA8);
    transform: scale(1.02);
}

button:disabled {
    background: #eeeeee;
    color: #aaa;
    cursor: not-allowed;
}

/* Compact HHEM Output Card */
.hhem-output-card {
    margin-top: 30px;
    padding: 20px 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 30px auto 0;
}

.hhem-output-card .output-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hhem-output-card .label {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: bold;
}

.hhem-output-card .value {
    font-size: 20px;
    font-weight: bold;
}

/* Summary Sentence Styling */
.summary-sentence {
    margin: 5px 0;
    padding: 5px;
}

.sentence-highlight {
    display: inline;
    padding: 0 0;
    border-radius: 3px;
  }

/* Tooltip Styling */
.token-tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}