/* Minimal styles for Three.js canvas */
#preview-container canvas {
    border-radius: 0.5rem;
}

/* Hide the placeholder when canvas is active */
#preview-container.has-canvas .absolute {
    display: none;
}

/* Loading animation for button icons */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading i:first-child {
    animation: spin 1s linear infinite;
}

/* Modern Chrome-style tabs */
#model-tabs {
    margin-bottom: 0 !important;
}

#tabs-container {
    background: #f8f9fa !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 8px 8px 0 8px !important;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    scroll-behavior: smooth;
}

#tabs-container::-webkit-scrollbar {
    display: none;
}

.model-tab {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: #e5e7eb;
    border: none;
    border-radius: 8px 8px 0 0;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-width: 120px;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: -1px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    flex-shrink: 0;
}

.model-tab:hover {
    background: #d1d5db;
    color: #374151;
}

.model-tab.active {
    background: white;
    color: #111827;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border: 1px solid #e5e7eb;
    border-bottom: 1px solid white;
}

.model-tab .tab-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-tab .close-btn {
    margin-left: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #9ca3af;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.model-tab .close-btn:hover {
    background: #ef4444;
    color: white;
}

.model-tab.active .close-btn {
    color: #6b7280;
}

.model-tab.active .close-btn:hover {
    background: #ef4444;
    color: white;
}

/* Preview container integration */
#preview-container.has-tabs {
    border-radius: 0 0 8px 8px !important;
    border-top: 1px solid #e5e7eb !important;
    border-style: solid !important;
}

#preview-container.has-tabs canvas {
    border-radius: 0 0 8px 8px !important;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Footer Styles */
footer {
    /* background: linear-gradient(to bottom, #ffffff, #fafafa); */
}

footer .max-w-7xl {
    border-top: 1px solid rgba(229, 231, 235, 0.5);
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
    footer .flex {
        text-align: center;
    }
    
    footer .space-x-6 {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    footer .space-x-6 > * + * {
        margin-left: 0;
    }
}

/* Subtle hover effects for footer icons */
footer i {
    transition: color 0.2s ease;
}

footer .text-gray-500:hover i {
    color: #6b7280;
}