/* !!!!prompt/styles.css */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #e5e7eb; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #9ca3af; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #6b7280; }
.step-section { display: none; }
.step-section.active { display: block; }

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 12px 24px;
    color: white;
    border-radius: 0.375rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    font-size: 0.9rem;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast.error { background-color: #ef4444; }
.toast.success { background-color: #22c55e; }
.toast.info { background-color: #3b82f6; }

.main-loader {
     border: 4px solid #3b82f6;
    border-top: 4px solid #bfdbfe;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1.2s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
textarea:focus, input[type="text"]:focus, input[type="file"]:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
    border-color: #3b82f6;
}

.content-card, .prompt-card-item, .category-selection-block {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}
.prompt-card-item {
     background-color: #f9fafb;
}
.category-selection-block .category-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    color: #3b82f6;
    flex-shrink: 0;
}
.section-header {
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #d1d5db;
}
.section-header h2 {
    color: #1e3a8a;
    font-weight: 600;
}
.file-input-label {
    cursor: pointer;
    padding: 0.625rem 1.25rem;
    border-radius: 0.375rem;
    background-color: #3b82f6;
    color: white;
    transition: background-color 0.2s;
    font-weight: 500;
}
.file-input-label:hover {
    background-color: #2563eb;
}
#fileNameDisplay {
    margin-top: 0.5rem;
    font-style: italic;
    color: #6b7280;
}

.markdown-content h1, .markdown-content h2, .markdown-content h3 { color: #1e3a8a; margin-bottom: 0.5em; margin-top: 0.8em; }
.markdown-content h1 { font-size: 1.5em; font-weight:bold; }
.markdown-content h2 { font-size: 1.3em; font-weight:bold; }
.markdown-content h3 { font-size: 1.15em; font-weight:bold; }
.markdown-content p { margin-bottom: 0.75em; line-height: 1.6; color: #374151; }
.markdown-content ul, .markdown-content ol { margin-left: 1.5em; margin-bottom: 0.75em; list-style-position: outside; color: #374151; }
.markdown-content li { margin-bottom: 0.3em; }
.markdown-content strong { font-weight: bold; color: #1f2937; }
.markdown-content em { font-style: italic; }
.markdown-content code { background-color: #e5e7eb; padding: 0.2em 0.4em; border-radius: 0.25em; font-family: monospace; color: #1e3a8a; }
.markdown-content pre { background-color: #f3f4f6; border: 1px solid #e5e7eb; padding: 0.75em; border-radius: 0.375em; overflow-x: auto; margin-bottom: 0.75em; }
.markdown-content pre code { background-color: transparent; padding: 0; color: #1e3a8a;}
.markdown-content blockquote { border-left: 4px solid #3b82f6; padding-left: 1em; margin-left: 0; margin-bottom: 0.75em; color: #4b5563; font-style: italic; }
.markdown-content a { color: #3b82f6; text-decoration: underline; }
.markdown-content a:hover { color: #2563eb; }
.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.markdown-content th, .markdown-content td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.875rem;
}
.markdown-content th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}
.markdown-content tr:nth-child(even) td {
    background-color: #f9fafb;
}
.markdown-content tr:hover td {
    background-color: #eff6ff;
}

/* Step Indicator Bar Styles */
.step-indicator-bar {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 2rem;
    overflow-x: auto;
    white-space: nowrap;
}
.step-indicator {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
}
.step-indicator .step-icon {
    margin-right: 0.5rem;
    width: 18px; height: 18px;
    color: #9ca3af;
}
.step-indicator:hover:not(.active):not(.disabled) {
    color: #3b82f6;
    border-bottom-color: #93c5fd;
}
.step-indicator.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 600;
    cursor: default;
}
.step-indicator.active .step-icon {
    color: #2563eb;
}
.step-indicator.completed {
     color: #3b82f6;
}
.step-indicator.completed .step-icon {
    color: #3b82f6;
}
.step-indicator.disabled {
    color: #9ca3af;
    cursor: not-allowed;
    border-bottom-color: transparent !important;
}
.step-indicator.disabled .step-icon {
    color: #d1d5db;
}
.step-indicator.disabled:hover {
    color: #9ca3af;
    border-bottom-color: transparent;
}

.app-footer {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.875rem;
    color: #6b7280;
}
.app-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}
.app-footer .footer-links .menu-item {
     padding: 0.25rem 0.5rem;
     font-size: 0.85rem;
     color: #4b5563;
}
 .app-footer .footer-links .menu-item:hover {
    background-color: #f0f0f0;
    color: #1f2937;
 }
#footerLanguageMenuPopup {
    position: relative;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    padding: 1rem;
    z-index: 1000;
    width: 280px;
    margin-top: 0.5rem;
}


.skeleton-loader {
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}
.skeleton-line {
    height: 1rem;
    background-color: #e5e7eb;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
    animation: pulse 1.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.long { width: 100%; }
.skeleton-title { height: 1.5rem; width: 40%; margin-bottom: 1rem; }
.skeleton-card {
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.score-circle {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem; font-weight: bold;
    color: white;
    margin-right: 1rem;
    flex-shrink: 0;
}
.score-circle.high-score { background-color: #10b981; } /* Emerald 500 */
.score-circle.medium-score { background-color: #f59e0b; } /* Amber 500 */
.score-circle.low-score { background-color: #ef4444; } /* Red 500 */

#initialScoreCard {
    border-left: 4px solid #3b82f6; /* Blue 600 */
    background-color: #eff6ff; /* Blue 50 */
}
/* New styles for Misunderstanding Risk Meter */
.risk-meter-display {
    margin-top: 1rem;
}
.risk-meter-bar-container {
    width: 100%;
    background-color: #e5e7eb; /* Gray 200 */
    border-radius: 0.375rem; /* rounded-md */
    padding: 2px;
    height: 28px;
    display: flex;
    align-items: center;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}
.risk-meter-bar {
    height: 100%;
    border-radius: 0.25rem; /* rounded-sm */
    transition: width 0.5s ease-in-out, background-color 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-weight: 600; /* Semibold */
    font-size: 0.75rem; /* text-xs */
    padding: 0 8px;
    box-sizing: border-box;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}
.risk-meter-bar.low {
    background-color: #10b981; /* Emerald 500 */
    width: 33%;
}
.risk-meter-bar.medium {
    background-color: #f59e0b; /* Amber 500 */
    width: 66%;
}
.risk-meter-bar.high {
    background-color: #ef4444; /* Red 500 */
    width: 100%;
}
/* End of New Styles */

.final-prompt-score-section-incard {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background-color: #e0f2fe; /* Light blue for score section */
    border: 1px solid #7dd3fc; /* Sky 300 */
    border-radius: 0.375rem;
}
 .final-prompt-score-section-incard .score-badge {
    padding: 0.25em 0.75em;
    font-size: 0.8em;
    border-radius: 9999px; /* pill shape */
}