/* Score bar animation */
.score-bar {
    transition: width 0.6s ease-in-out;
}

/* HTMX loading indicator */
.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    display: inline-block;
}

/* Drag-and-drop zone */
.drop-zone {
    border: 2px dashed #d1d5db;
    transition: all 0.2s ease;
}
.drop-zone.drag-over {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

/* Smooth transitions for Alpine.js show/hide */
[x-cloak] {
    display: none !important;
}

/* Job description formatting */
.job-description p {
    margin-bottom: 0.75em;
}
.job-description ul,
.job-description ol {
    margin: 0.5em 0 0.75em 1.5em;
}
.job-description ul {
    list-style-type: disc;
}
.job-description ol {
    list-style-type: decimal;
}
.job-description li {
    margin-bottom: 0.25em;
}
.job-description h1, .job-description h2, .job-description h3,
.job-description h4, .job-description h5, .job-description h6 {
    font-weight: 600;
    color: #111827;
    margin: 1em 0 0.5em;
}
.job-description h1 { font-size: 1.25em; }
.job-description h2 { font-size: 1.15em; }
.job-description h3 { font-size: 1.05em; }
.job-description strong, .job-description b {
    font-weight: 600;
}
.job-description a {
    color: #2563eb;
    text-decoration: underline;
}
.job-description a:hover {
    color: #1d4ed8;
}
.job-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75em 0;
}
.job-description th, .job-description td {
    border: 1px solid #e5e7eb;
    padding: 0.4em 0.6em;
    text-align: left;
}
.job-description th {
    background: #f9fafb;
    font-weight: 600;
}
.job-description blockquote {
    border-left: 3px solid #d1d5db;
    padding-left: 1em;
    margin: 0.75em 0;
    color: #6b7280;
}
.job-description hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 1em 0;
}

/* Flash message auto-dismiss */
.flash-message {
    animation: fadeInOut 4s ease-in-out forwards;
}
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    10% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; }
}
