body {
    font-family: 'Fira Sans', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
}

.title.has-text-centered,
.title.is-1,
.title.is-2 {
    color: #333;
}

.box {
    background-color: white !important;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Header Styles */
.page-header {
    background-color: #00BCD4;
    color: white;
    padding: 1.5rem;
    margin-bottom: 0.3rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-header.is-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.back-arrow {
    color: white;
    font-size: 1.2rem;
    padding: 0.5rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.back-arrow:hover {
    opacity: 0.8;
    color: white;
}

.page-header .title {
    color: white;
    margin: 0;
}

.page-header .subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.title-card {
    background-color: #00BCD4;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.full-width-header .title {
    color: white;
}

@media (max-width: 768px) {
    position: fixed;
    bottom: 80px;  /* Above the bottom nav bar */
    right: 20px;
    z-index: 999;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    font-size: 1.5rem;
}

.table-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table {
    background-color: white;
    color: #333;
}

.table th {
    background-color: #e9ecef !important;
    color: #333 !important;
    border: 1px solid #dee2e6 !important;
}

.table td {
    border: 1px solid #dee2e6 !important;
    color: #333;
}

.table tr:hover {
    background-color: #f8f9fa !important;
}

.button.is-primary {
    background-color: #00BCD4 !important;
    color: white !important;
    box-shadow: none !important;
    border: none !important;
}

.button.is-primary:hover {
    background-color: #008ba3 !important;
    box-shadow: none !important;
    transform: none !important;
}

.button.is-danger {
    background-color: #dc3545 !important;
    color: white !important;
    box-shadow: none !important;
}

.button.is-danger:hover {
    background-color: #c82333 !important;
    box-shadow: none !important;
    transform: none !important;
}

.button.is-info {
    background-color: #17a2b8 !important;
    color: white !important;
}

.button.is-info:hover {
    background-color: #138496 !important;
}

.button {
    transition: none !important;
    border-radius: 4px !important;
}

.input, .select select {
    background-color: white !important;
    color: #333 !important;
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
}

.input:focus, .select select:focus {
    border-color: #00BCD4 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 188, 212, 0.25) !important;
    background-color: white !important;
}

/* Input loading indicator */
.input.is-loading {
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="8" fill="none" stroke="%2300BCD4" stroke-width="2" stroke-dasharray="50" stroke-dashoffset="38"><animateTransform attributeName="transform" type="rotate" from="0 10 10" to="360 10 10" dur="0.8s" repeatCount="indefinite"/></circle></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px !important;
}

/* Student Search Results Styles */
#students-results {
    margin-top: 1rem;
    transition: opacity 0.3s ease;
}

.search-results-box {
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.search-results-title {
    color: #00BCD4;
    font-size: 1.2rem;
    border-bottom: 2px solid #00BCD4;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem !important;
}

.student-result-item {
    transition: all 0.2s ease;
    border-left: 3px solid #00BCD4;
    padding-left: 1rem;
}

.student-result-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.2);
    border-left-color: #008ba3;
}

.student-result-name {
    font-size: 1.1rem;
    color: #333;
}

.student-result-id {
    font-size: 0.9rem;
}

.student-result-id .tag {
    font-size: 0.85rem;
    padding: 0.25em 0.5em;
}

/* Search Results Container Animation */
#students-results.is-hidden {
    display: none !important;
}

#students-results:not(.is-hidden) {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .features-container {
        padding: 1rem;
    }
    .feature-box {
        width: 100%;
        max-width: 300px;
    }
}

/* Navigation Styles */
.bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    background-color: #00BCD4;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s;
}

.bottom-nav-item:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: white;
}

.bottom-nav-item.is-active {
    color: white;
    background-color: rgba(0, 0, 0, 0.2);
}

.bottom-nav-icon {
    font-size: 1.4rem;
}

.bottom-nav-text {
    display: none;
}

/* Header Styles */
.page-header {
    background-color: #00BCD4;
    color: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-header.is-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.back-arrow {
    color: white;
    font-size: 1.2rem;
    padding: 0.5rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.back-arrow:hover {
    opacity: 0.8;
    color: white;
}

.page-header .title {
    color: white;
    margin: 0;
    flex: 1;
}

.header-action {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.header-action:hover {
    opacity: 0.8;
}

/* Modal Styles */
.is-modal-active .bottom-nav,
.is-modal-active .add-fab {
    filter: brightness(0.7);
}

@media (min-width: 769px) {
    /* Responsive adjustments */
}

.section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-small {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}



.clickable-row {
    cursor: pointer;
}

.is-hidden {
    display: none !important;
}





.hero.is-primary {
    background-color: #00BCD4;
}

.hero.is-medium .hero-body {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.hero .title {
    color: white;
    font-size: 3rem;
    font-weight: 600;
}

.hero .subtitle {
    color: white;
    font-size: 1.5rem;
    font-weight: 300;
}

.feature-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}



.modal-card {
    max-width: 600px;
}



@media (max-width: 768px) {
    .modal-card {
        width: calc(100% - 40px);
        margin: 0 20px;
    }
}

@media (min-width: 769px) {
    .modal-card {
        margin: 0 auto;
    }
}

/* Notification Styles */
.notification-container {
    margin-bottom: 1rem;
}

.notification-container .notification {
    margin-bottom: 0.5rem;
}

details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

details[open] > summary ~ * {
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Accordion Styles */
.accordion-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.accordion-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.accordion-header {
    background: white;
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    user-select: none;
}

.accordion-header:hover {
    background-color: #f8f9fa;
}

.accordion-header .accordion-title {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.accordion-header .accordion-icon {
    color: #00BCD4;
    transition: transform 0.2s ease;
}

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

.accordion-body {
    padding: 0 1.25rem 1rem 1.25rem;
    background: white;
}

.accordion-section-group {
    margin-bottom: 0.75rem;
}

.accordion-section-group:last-child {
    margin-bottom: 0;
}

.accordion-section-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.accordion-section-item:hover {
    background: white;
    border-color: #00BCD4;
    transform: translateX(4px);
}

.accordion-section-item:last-child {
    margin-bottom: 0;
}

.accordion-section-name {
    font-weight: 500;
}

.accordion-empty {
    text-align: center;
    color: #999;
    padding: 1rem;
    font-style: italic;
}

.tabs li.is-active a {
    color: #00BCD4 !important;
    border-bottom-color: #00BCD4 !important;
}

.tabs.is-toggle li.is-active a {
    background-color: #00BCD4 !important;
    border-color: #00BCD4 !important;
    color: white !important;
}

.message.is-primary {
    background-color: #00BCD4 !important;
    border-color: #00BCD4 !important;
}

.message.is-primary .message-header {
    background-color: #00BCD4 !important;
    color: white !important;
    border-radius: 8px 8px 0 0 !important;
    border-color: transparent !important;
}

.message.is-primary .message-body {
    border-color: #00BCD4 !important;
    background-color: white !important;
    border-radius: 0 0 8px 8px !important;
}

.message .clickable-row {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message summary i {
    transition: transform 0.2s;
}

details[open] summary i.fa-chevron-down {
    transform: rotate(180deg);
}



.section-subtitle {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.section-main-card {
    margin-bottom: 1.5rem;
}

.section-main-card .title {
    margin-bottom: 0.5rem;
    color: #333;
}

.section-strand-badge {
    background-color: #f0f0f0;
    color: #333;
}

.section-divider {
    margin: 1.5rem 0;
    background-color: #e0e0e0;
    border: none;
    height: 1px;
}

.action-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    text-decoration: none;
    display: block;
}

.action-card:hover {
    background-color: #f8f9fa;
    border-color: #00BCD4;
}

.section-detail-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.section-detail-container .box {
    margin-bottom: 1.5rem;
}

/* Success Notification System */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.success-notification {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    padding: 2rem;
    position: relative;
    animation: slideIn 0.3s ease;
}

.success-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.success-title {
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.success-dismiss {
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.success-dismiss:hover {
    color: #333;
}

.success-message {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clickable Card Styles */
.is-clickable {
    transition: all 0.2s ease;
}

.is-clickable:hover {
    border-color: #00BCD4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mapping-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.mapping-card .title {
    margin-bottom: 0.25rem;
}

.mapping-card .content {
    margin-bottom: 0;
}

/* Clickable Card Styles */
.is-clickable {
    transition: all 0.2s ease;
}

.is-clickable:hover {
    border-color: #00BCD4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mapping-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.mapping-card .title {
    margin-bottom: 0.25rem;
}

.mapping-card .content {
    margin-bottom: 0;
}

/* Layout Preview Styles */
.layout-preview {
    background-color: #f5f5f5;
    border-radius: 4px;
    padding: 4px;
}

/* Dropdown fullwidth styles */
.dropdown.is-fullwidth {
    width: 100%;
}

.dropdown.is-fullwidth .dropdown-trigger {
    width: 100%;
}

.dropdown.is-fullwidth .dropdown-trigger .button {
    width: 100%;
    justify-content: space-between;
}

.dropdown.is-fullwidth .dropdown-menu {
    width: 100%;
    min-width: 100%;
}

/* Fix dropdown positioning for is-up */
.dropdown.is-up .dropdown-menu {
    bottom: 100%;
    top: auto;
    padding-bottom: 4px;
    padding-top: 0;
}

/* Layout card enhancements */
.layout-select-btn {
    transition: all 0.2s ease;
}

.layout-select-btn:hover {
    background-color: #00BCD4 !important;
    color: white !important;
}
