/* Custom Styles for Prompt Generator */

* {
    font-family: 'Inter', sans-serif;
}

body {
    background: #0b0d10;
    color: #eef2f6;
    min-height: 100vh;
}

/* Glassmorphism */
.glass {
    background: rgba(20, 25, 35, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-light {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #1a1f2a 25%, #252b38 50%, #1a1f2a 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 999;
    background: #1e2633;
    color: #eef2f6;
    padding: 0.75rem 2rem;
    border-radius: 60px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
    border: 1px solid #3a4455;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    pointer-events: auto;
}

/* Modals */
.modal-overlay {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Builder items */
.draggable-item {
    cursor: grab;
    transition: all 0.2s ease;
}

.draggable-item:active {
    cursor: grabbing;
}

.builder-item {
    border-left: 3px solid #4f7cff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: #141a22;
}

::-webkit-scrollbar-thumb {
    background: #3f4c66;
    border-radius: 12px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f7cff;
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .toast {
        white-space: normal;
        max-width: 90%;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .glass {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Utility */
.transition-all {
    transition: all 0.2s ease;
}

.prompt-section {
    scroll-margin-top: 80px;
}


/* Breadcrumb enhancements */
.breadcrumb-item {
    transition: all 0.2s ease;
    position: relative;
}

.breadcrumb-item:hover {
    color: #818cf8 !important; /* Indigo-400 */
}

.breadcrumb-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #818cf8;
    transition: width 0.2s ease;
}

.breadcrumb-item:hover::after {
    width: 100%;
}

.breadcrumb-separator {
    color: #4b5563;
    user-select: none;
}

/* Active breadcrumb item */
.breadcrumb-item.active {
    color: #ffffff;
    cursor: default;
}

.breadcrumb-item.active::after {
    width: 100%;
    background: #818cf8;
}

/* Mobile breadcrumb adjustments */
@media (max-width: 640px) {
    #breadcrumb {
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .breadcrumb-item {
        padding: 0.25rem 0.5rem;
        border-radius: 0.375rem;
    }
    
    .breadcrumb-item:hover {
        background: rgba(129, 140, 248, 0.1);
    }
}