/* Custom styles to enhance the look and feel */
body {
    font-family: 'Inter', sans-serif;
    background-color: #1a202c; /* A deep, modern dark background */
}
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem; /* More rounded corners */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
.hero-title {
    font-weight: 900;
    font-size: 5rem;
    background: linear-gradient(90deg, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(244, 114, 182, 0.3);
}
#image-preview {
    max-height: 400px;
    object-fit: contain;
}
.file-input-bordered:hover {
    border-color: #a78bfa;
}
/* Style for the paragraphs and lists generated by marked.js */
#result-text p, #result-text ol {
    margin-bottom: 1rem;
}
#result-text p:last-child, #result-text ol:last-child {
    margin-bottom: 0;
}
#result-text li {
    margin-bottom: 0.75rem; /* Adds space between list items */
}
/* Ensure bold tags are always bold */
#result-text strong {
    font-weight: 900;
}
/* Certificate Badge styles */
#badge-section {
    border: 2px solid #a78bfa;
    background: linear-gradient(145deg, #2d3748, #1a202c);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}
#badge-image-container {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 4px solid #a78bfa;
    margin: 0 auto 1rem;
    background-size: cover; /* Ensure image covers the area */
    background-position: center; /* Center the image */
    background-repeat: no-repeat;
}
#custom-badge-score {
    position: relative;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 2rem;
    border: 4px solid #a78bfa;
    margin: 0 auto 1rem;
    overflow: hidden;
    color: #e2e8f0; /* base-content color */
    padding-top: 0.25rem; /* Adjust for vertical centering */
    padding-bottom: 0.25rem; /* Adjust for vertical centering */
}
#custom-badge-score-bg {
    position: absolute;
    inset: 0;
    background-color: rgba(167, 139, 250, 0.2); /* primary color with opacity */
    border-radius: 50%;
}
#badge-score-text {
    position: relative;
    z-index: 10;
    line-height: 1; /* Ensure no extra line height */
}
.factor-breakdown > div > div:first-child {
    margin-bottom: 0; /* Remove previous margin */
}
.custom-progress-bar {
    margin-top: 0.5rem; /* Add margin to the top of the bar */
    width: 100%;
    background-color: #4a5568; /* base-300/50 */
    border-radius: 9999px; /* full rounded */
    height: 0.75rem; /* h-3 */
    overflow: hidden;
}
.custom-progress-bar-fill {
    background-color: #a78bfa; /* primary color */
    height: 100%;
    border-radius: 9999px;
}