/* Custom styles for ArchitectAI */

/* Global styles */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* Cards with elevation */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Concept images styling */
.concept-image {
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.concept-image:hover {
    opacity: 0.9;
}

/* Editor styling */
.editor-container {
    position: relative;
    min-height: 400px;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    overflow: hidden;
}

.editor-canvas {
    display: none;
    padding: 1rem;
}

.editor-canvas.active {
    display: block;
}

.editor-image {
    max-width: 100%;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Design tabs styling */
.nav-tabs .nav-link {
    color: #495057;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 1rem;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    background-color: transparent;
    border-bottom: 2px solid #007bff;
}

/* Comments styling */
.comment-container {
    max-height: 300px;
    overflow-y: auto;
}

.comment-card {
    margin-bottom: 0.5rem;
    border-left: 3px solid #007bff;
}

/* 3D container styling */
#3d-container {
    background-color: #f0f0f0;
    border-radius: 0.25rem;
}

/* VR mode button */
.vr-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 2rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

/* Custom button styles */
.btn-primary {
    background-color: #1e88e5;
    border-color: #1e88e5;
}

.btn-success {
    background-color: #43a047;
    border-color: #43a047;
}

/* Loading indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1000;
}

.spinner {
    width: 3rem;
    height: 3rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-header {
        padding: 0.75rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.25rem;
    }
}

/* Loading animation styling */
.loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.loading-spinner {
    width: 4rem;
    height: 4rem;
    border: 0.5rem solid rgba(0, 123, 255, 0.2);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

.loading-message {
    text-align: center;
}

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

/* Image overlay for concept cards */
.card-img-container {
    position: relative;
    overflow: hidden;
}

.card-img-container .concept-image {
    transition: transform 0.3s ease, filter 0.3s ease;
    height: 200px;
    object-fit: cover;
}

.card-img-container:hover .concept-image {
    transform: scale(1.03);
    filter: brightness(0.8);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-img-container:hover .image-overlay {
    opacity: 1;
}

/* Progress bar animation */
.progress {
    height: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    box-shadow: inset 0 0.1rem 0.1rem rgba(0,0,0,.1);
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

/* Loading animation for detailed design */
.loading-container {
    padding: 3rem;
    text-align: center;
    background: #f8f9fa;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin: 2rem 0;
}

.loading-steps {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem 0;
}

.loading-step {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.05);
    transition: background-color 0.3s ease;
    opacity: 0.5;
}

.loading-step.active {
    background-color: #e9f7fe;
    border-left: 4px solid #007bff;
    opacity: 1;
}

.loading-step.completed {
    background-color: #f0fff4;
    border-left: 4px solid #28a745;
    opacity: 1;
}

.loading-step-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.loading-step-content {
    flex: 1;
}

.loading-step-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.loading-step-description {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Custom spinner for small loading indicators */
.spinner-small {
    width: 1.5rem;
    height: 1.5rem;
    border: 0.25rem solid rgba(0, 123, 255, 0.2);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

/* Image placeholder styling */
.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border: 1px dashed #ccc;
    padding: 2rem;
    text-align: center;
    color: #888;
    min-height: 200px;
}

.image-placeholder i {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.image-placeholder p {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.image-placeholder small {
    font-size: 0.8rem;
    opacity: 0.7;
    word-break: break-all;
}

/* Styling for concept cards and progress bar */
.concept-image-container {
    height: 250px;
    overflow: hidden;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.concept-image {
    max-height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.concept-image:hover {
    transform: scale(1.05);
}

/* Progress bar enhancements */
.progress {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.progress-bar {
    transition: width 0.3s ease;
}

/* Loading animation for images */
.concept-image-loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}
