/* Performance optimizations */
.menu-expanded {
    display: block;
    transition: all 0.3s ease;
}

.menu-collapsed {
    display: none;
}

/* Improve loading performance */
.navbar-item img {
    transition: opacity 0.2s ease;
}

.navbar-item img:hover {
    opacity: 0.8;
}

/* Better responsive behavior */
@media screen and (max-width: 768px) {
    .sidebar-column {
        position: fixed;
        top: 52px;
        left: -250px;
        width: 250px;
        height: calc(100vh - 52px);
        background: white;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    }
    
    .sidebar-column.is-active {
        left: 0;
    }
    
    .main-column {
        margin-left: 0;
        width: 100%;
    }
}

/* Accessibility improvements */
.button:focus,
.input:focus,
.select select:focus,
.textarea:focus {
    outline: 2px solid #3273dc;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #3273dc;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 100;
}

.skip-link:focus {
    top: 6px;
}

/* Loading states */
.is-loading {
    position: relative;
    pointer-events: none;
}

.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #dbdbdb;
    border-top-color: #3273dc;
    border-radius: 50%;
    animation: spinner 1s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Print styles */
@media print {
    .navbar,
    .sidebar-column,
    .button,
    .notification {
        display: none !important;
    }
    
    .main-column {
        margin: 0 !important;
        width: 100% !important;
    }
}
