/* scan.css
 * Styling for LiDAR scanning feature page
 * Atomic Factories Engineering - 2026
 */

.scan-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
}

/* Hero Section */
.scan-hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 100, 150, 0.1));
    border-radius: 8px;
    border-left: 4px solid #00d4ff;
}

.scan-hero .hero-title {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #fff;
}

.scan-hero .hero-subtitle {
    font-size: 1.1em;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
}

/* Guide Section */
.scan-guide {
    margin-bottom: 60px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.guide-card {
    background: #0f0f1e;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    padding-top: 50px;
}

.guide-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: #00d4ff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
}

.guide-card h3 {
    margin-top: 0;
    color: #00d4ff;
    margin-bottom: 15px;
}

.guide-card p {
    color: #ccc;
    margin-bottom: 10px;
}

.app-links {
    text-align: left;
    margin-top: 15px;
}

.app-links p {
    font-weight: bold;
    color: #fff;
    margin-top: 10px;
    margin-bottom: 5px;
}

.app-links ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.app-links li {
    margin: 8px 0;
    color: #ccc;
}

.app-links a {
    color: #00d4ff;
    text-decoration: none;
    border-bottom: 1px solid #00d4ff;
}

.app-links a:hover {
    color: #00ffff;
    border-bottom-color: #00ffff;
}

.scan-tips,
.export-formats {
    list-style: none;
    padding-left: 0;
    text-align: left;
}

.scan-tips li,
.export-formats li {
    color: #ccc;
    margin: 8px 0;
}

.recommended {
    display: inline-block;
    background: #00d4ff;
    color: #000;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 5px;
}

/* Upload Section */
.scan-upload-section {
    margin-bottom: 60px;
}

.upload-wrapper {
    position: relative;
    margin-top: 30px;
}

.upload-area {
    border: 2px dashed #00d4ff;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 212, 255, 0.05);
}

.upload-area:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00ffff;
}

.upload-area.dragover {
    background: rgba(0, 212, 255, 0.15);
    border-color: #00ffff;
    transform: scale(1.02);
}

.upload-area svg {
    color: #00d4ff;
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
}

.upload-text {
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 10px;
}

.upload-formats {
    color: #999;
    font-size: 0.9em;
}

/* Processing Indicator */
.processing-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 212, 255, 0.2);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#processingText {
    color: #ccc;
    text-align: center;
}

/* File Info */
.file-info {
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid #00d4ff;
    padding: 15px 20px;
    border-radius: 4px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    color: #ccc;
}

.info-item .label {
    font-weight: bold;
    color: #00d4ff;
}

.info-item .value {
    color: #fff;
}

/* Quality Results */
.quality-results {
    background: #0f0f1e;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.quality-results h3 {
    color: #00d4ff;
    margin-top: 0;
}

.quality-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.metric {
    background: rgba(0, 212, 255, 0.05);
    padding: 15px;
    border-radius: 4px;
    border-left: 3px solid #00d4ff;
}

.metric-label {
    display: block;
    color: #999;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.metric-value {
    display: block;
    font-size: 1.3em;
    color: #00d4ff;
    font-weight: bold;
}

.quality-warnings {
    margin-top: 15px;
}

.quality-warnings p {
    color: #ccc;
    margin: 8px 0;
    padding: 10px;
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
    border-radius: 4px;
}

/* Preview Section */
.scan-preview-section {
    margin-bottom: 60px;
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-top: 30px;
}

.preview-canvas {
    background: #1a1a2e;
    border: 1px solid #222;
    border-radius: 8px;
    min-height: 400px;
    position: relative;
}

.preview-info {
    background: #0f0f1e;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 20px;
}

.preview-info p {
    color: #ccc;
    margin: 10px 0;
}

.preview-info ul {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
}

.preview-info li {
    color: #ccc;
    margin: 8px 0;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .preview-container {
        grid-template-columns: 1fr;
    }

    .preview-canvas {
        min-height: 300px;
    }
}

/* Quote Section */
.quote-section {
    margin-bottom: 60px;
}

.quote-controls {
    background: #0f0f1e;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
}

.control-group {
    margin-bottom: 25px;
}

.control-group label {
    display: block;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 500;
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #00d4ff, #00ffff);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00d4ff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00d4ff;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.control-group select {
    width: 100%;
    padding: 12px;
    background: #1a1a2e;
    color: #fff;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
}

.control-group select:hover {
    border-color: #00d4ff;
}

.control-group select:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

/* Quote Results */
.quote-results {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
}

.quote-results h3 {
    color: #00d4ff;
    margin-top: 0;
}

.quote-breakdown {
    margin: 20px 0;
}

.quote-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    color: #ccc;
}

.quote-item .label {
    font-weight: 500;
    color: #ccc;
}

.quote-item .value {
    color: #fff;
    font-weight: 500;
}

.quote-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 1.3em;
    border-top: 2px solid #00d4ff;
    border-bottom: none;
}

.quote-total .label {
    color: #00d4ff;
    font-weight: bold;
}

.quote-total .value {
    color: #00d4ff;
    font-weight: bold;
}

/* Messages */
.error-message,
.success-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.error-message {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid #ff4d4d;
    color: #ff6b6b;
}

.success-message {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4caf50;
    color: #66bb6a;
}

/* Info Boxes */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin: 60px 0;
}

.info-box {
    background: #0f0f1e;
    border: 1px solid #222;
    border-left: 4px solid #00d4ff;
    border-radius: 8px;
    padding: 20px;
}

.info-box h3 {
    color: #00d4ff;
    margin-top: 0;
    margin-bottom: 15px;
}

.info-box p,
.info-box li {
    color: #ccc;
    margin: 8px 0;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .scan-main {
        padding: 20px 15px;
    }

    .scan-hero .hero-title {
        font-size: 1.8em;
    }

    .scan-hero .hero-subtitle {
        font-size: 1em;
    }

    .guide-grid {
        grid-template-columns: 1fr;
    }

    .quote-controls {
        padding: 20px;
    }

    .quality-metrics {
        grid-template-columns: 1fr;
    }

    .info-section {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5em;
    }

    /* Mobile tab styling */
    .tab-container {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin: 30px 0;
    }

    .upload-tab {
        flex: 1;
        min-width: 120px;
        padding: 10px 12px;
        font-size: 0.85em;
        margin-right: 0;
    }

    /* Mobile upload area */
    .upload-area {
        padding: 30px 15px;
        min-height: 200px;
    }

    .upload-area svg {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .upload-text {
        font-size: 0.95em !important;
        margin-bottom: 8px;
    }

    .upload-formats {
        font-size: 0.75em !important;
    }

    /* Mobile file info */
    .file-info {
        padding: 12px;
        gap: 8px;
    }

    .info-item {
        flex-direction: column;
        gap: 4px;
    }

    /* Mobile quality metrics */
    .quality-results {
        padding: 15px;
    }

    .metric {
        padding: 8px;
    }
}

/* Upload Tabs */
.upload-tab {
    background: rgba(0, 212, 255, 0.05);
    border: none;
    border-bottom: 3px solid transparent;
    color: #999;
    padding: 15px 30px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
    font-weight: 500;
    border-radius: 8px 8px 0 0;
}

.upload-tab:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    border-bottom-color: rgba(0, 212, 255, 0.3);
}

.upload-tab.active-tab {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    border-bottom-color: #00d4ff;
}

.upload-tab strong {
    color: inherit;
}

/* Tab container */
.tab-container {
    margin: 40px 0;
    border-bottom: 2px solid #222;
    display: flex;
    gap: 5px;
}

/* Hidden section by default */
#videoSection {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
