/* Custom CSS Extensions for Smart Energy Advisor */

/* Smooth scroll behaviors */
html {
    scroll-behavior: smooth;
}

/* Glassmorphism card effects */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.01);
    background: rgba(255, 255, 255, 0.85);
}

/* Sidebar navigation styling overrides */
.sidebar-link {
    transition: all 0.2s ease-in-out;
}
.sidebar-link:hover {
    transform: translateX(2px);
}

/* Toast animations */
@keyframes slideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-card {
    animation: slideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Custom Chat Bubbles and chat styles */
#chat-window {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-behavior: smooth;
}

.chat-bubble-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-bubble-ai {
    align-self: flex-start;
}

/* Print layout optimizations */
@media print {
    aside, header, nav, footer, button, .no-print {
        display: none !important;
    }
    main, .print-container {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
    }
    .glass-card, .bg-white {
        border: none !important;
        box-shadow: none !important;
    }
}
