/* Base styling */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.footer {
    margin-top: auto;
}

/* Container styling */
.container {
    margin: 40px auto;
    width: max(60vw, 400px);
}

/* Textarea styling */
#typed {
    min-height: 200px;
    font-family: 'Courier New', Courier, monospace;
}

/* Match highlighting */
.matched-text {
    padding: 15px;
    border-radius: 5px;
    background-color: #f8f9fa;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
}

mark {
    padding: 0 2px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Match cards */
.matched-sections .card {
    transition: all 0.3s ease;
}

.matched-sections .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Tokens display */
#tokens pre {
    max-height: 150px;
    overflow-y: auto;
    background-color: #343a40;
    color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
}

/* Loading spinner */
.spinner-border {
    margin: 20px auto;
    display: block;
}

/* Status alerts */
.alert {
    margin-bottom: 20px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        width: 95%;
        margin: 20px auto;
    }
    
    .matched-text {
        padding: 10px;
        font-size: 14px;
    }
}

/* Toolip */
abbr {
  cursor:help;
  text-decoration:none;
  border-radius:8px;
  background-color: rgba(91,91,91,.9);
  font-size: 65%;
  line-height: 1.15rem;
  padding: .125rem .25rem;
}
