/* 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(70vw, 400px);
}

/* Textarea styling - larger for authors */
#typed {
    min-height: 300px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.6;
}

/* Match highlighting - simplified for authors */
.matched-text {
    padding: 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
    font-family: Georgia, 'Times New Roman', serif;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.8;
    font-size: 16px;
    border-left: 4px solid #28a745;
}

mark {
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 500;
}

.highlight-match {
    background-color: #ffeb3b;
    color: #333;
    border: 1px solid #fbc02d;
}

/* Match cards - simplified styling */
.matched-sections .card {
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.match-info {
    background-color: #e8f5e8;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.match-info h6 {
    color: #28a745;
    margin-bottom: 8px;
}

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

/* Status alerts - friendlier styling */
.alert {
    margin-bottom: 25px;
    border-radius: 8px;
    font-size: 16px;
}

.alert h5 {
    margin-bottom: 10px;
}

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

/* Author-friendly improvements */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}

.btn-success {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
}

.card-header h4 {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Better visual hierarchy for results */
.results-summary {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.results-summary h5 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}