/* General body styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Styling for accordion content */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.accordion-content.open {
    max-height: 5000px; /* Adjust as needed */
    transition: max-height 0.25s ease-in;
}

.accordion-icon {
    transition: transform 0.2s ease-out;
}

.accordion-icon.open {
    transform: rotate(180deg);
}

/* Hanging indent for lists */
.hanging-indent {
    padding-left: 1.5em;
    text-indent: -1.5em;
}

/* Engagement item content styling */
.engagement-item .prose {
    font-size: 0.9rem;
    line-height: 1.5;
}

.engagement-item .prose h1,
.engagement-item .prose h2,
.engagement-item .prose h3,
.engagement-item .prose h4,
.engagement-item .prose h5,
.engagement-item .prose h6 {
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    font-weight: 600;
}

.engagement-item .prose a {
    color: #3863d8; /* Blue-700 */
    text-decoration: none;
}

.engagement-item .prose h1 {
    font-size: 1.5em;
}

.engagement-item .prose h2 {
    font-size: 1.3em;
}

.engagement-item .prose h3 {
    font-size: 1.1em;
}

.engagement-item .prose p {
    margin-bottom: 0.8em;
}

.engagement-item .prose ul {
    list-style-type: disc;
    margin-left: 1.5em;
    margin-bottom: 0.8em;
}

.engagement-item .prose ol {
    list-style-type: decimal;
    margin-left: 1.5em;
    margin-bottom: 0.8em;
}

.engagement-item .prose li {
    margin-bottom: 0.4em;
}

.engagement-item .prose blockquote {
    border-left: 4px solid #ccc;
    padding-left: 1.5em;
    margin-left: 0;
    font-size: 1.5em;
    font-family: serif;
    font-style: italic;
    color: #666;
}

.engagement-item .prose pre {
    background-color: #f5f5f5;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
}

.engagement-item .prose code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
    background-color: #f0f0f0;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

.engagement-item .prose pre code {
    background-color: transparent;
    padding: 0;
}

.engagement-asset {
    width: 320px;
    flex-shrink: 0;
}

.aspect-ratio-16-9 {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 9 / 16 * 100 */
}

.aspect-ratio-16-9 img,
.aspect-ratio-16-9 video,
.aspect-ratio-16-9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Assessment Plan styles */
.tab-content {
    margin-top: 20px;
}
.credits-warning {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { background-color: #fff; }
    50% { background-color: #ffe6e6; }
    100% { background-color: #fff; }
}

.credits-balanced {
    animation: success-fade 1s;
    background-color: #e6ffe6;
}

@keyframes success-fade {
    from { background-color: #98ff98; }
    to { background-color: #e6ffe6; }
}

.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

/* Custom tab styles */
.tab-btn {
    padding: 0.5rem 1rem;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    background-color: #f9fafb;
}

.tab-btn.active-tab {
    background-color: white;
    border-color: #d1d5db;
    border-bottom-color: white;
    margin-bottom: -1px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-top: none;
}

.loader {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
