/* static/css/3d-viewer.css */
.model-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 10;
    backdrop-filter: blur(4px);
    border-radius: 12px;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(209, 0, 0, 0.2);
    border-top: 3px solid #d10000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-progress {
    font-size: 14px;
    color: #d10000;
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-3d-control {
    background: rgba(30, 30, 40, 0.9);
    border: 1px solid rgba(209, 0, 0, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.btn-3d-control:hover {
    background: #d10000;
    border-color: #d10000;
    transform: translateY(-2px);
}

.btn-3d-control i {
    margin-right: 8px;
}

/* Стили для полноэкранного режима */
.container-fluid {
    width: 100%;
    max-width: 100%;
}

.modal-container--fullscreen {
    width: 95vw;
    max-width: 1400px;
    height: 90vh;
    margin: 2vh auto;
}

.modal-content-fullscreen {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
    height: 100%;
    padding: 20px;
}

.modal-3d-viewer-fullscreen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #0a0a0a;
    border-radius: 16px;
    overflow: hidden;
}

.modal-info-fullscreen {
    overflow-y: auto;
    padding-right: 10px;
    max-height: 85vh;
}

.modal-info-fullscreen::-webkit-scrollbar {
    width: 5px;
}

.modal-info-fullscreen::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

.modal-info-fullscreen::-webkit-scrollbar-thumb {
    background: #d10000;
    border-radius: 10px;
}

#weapon3DContainer:fullscreen,
#weapon3DDetailContainer:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    background: #0a0a0a;
    border-radius: 0;
}

@media (max-width: 900px) {
    .modal-container--fullscreen {
        width: 98vw;
        height: 95vh;
    }
    
    .modal-content-fullscreen {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .modal-3d-viewer-fullscreen {
        min-height: 50vh;
    }
    
    .modal-info-fullscreen {
        max-height: 40vh;
    }
}

@media (max-width: 768px) {
    #weapon3DDetailContainer {
        height: 55vh !important;
    }
}