/* Custom Styles for VidWall Architect Pro */

/* Smooth transitions for all interactive elements */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Custom Range Slider Styling */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #ef4444;
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 2px solid white;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #e5e7eb;
    border-radius: 2px;
}

input[type=range]:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

/* Canvas Container */
#canvasContainer {
    position: relative;
    background-image: 
        linear-gradient(45deg, #f3f4f6 25%, transparent 25%), 
        linear-gradient(-45deg, #f3f4f6 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #f3f4f6 75%), 
        linear-gradient(-45deg, transparent 75%, #f3f4f6 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}
/* Mount Button States */
.mount-btn.active {
    background-color: #ef4444;
    color: white;
    border-color: #ef4444;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

.mount-btn:not(.active):hover {
    background-color: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mount-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
/* View Mode Buttons */
#view-front.bg-primary,
#view-top.bg-primary,
#view-side.bg-primary {
    background-color: #ef4444;
    color: white;
}

/* Card Hover Effects */
.stats-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Animation for value changes */
.value-change {
    animation: flash 0.5s ease;
}

@keyframes flash {
    0%, 100% { color: inherit; }
    50% { color: #ef4444; }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .shadow-sm, .shadow {
        box-shadow: none !important;
    }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    #canvasContainer {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 640px) {
    #canvasContainer {
        aspect-ratio: 1/1;
    }
}
/* Professional Blueprint Background */
.blueprint-bg {
    background-color: #f8fafc;
    background-image: 
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
}

/* Grid Pattern Overlay for Canvas */
.grid-overlay {
    background-image: 
        linear-gradient(to right, rgba(148, 163, 184, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Professional Canvas Container */
#canvasContainer {
    position: relative;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 2px solid #cbd5e1;
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.06),
        0 4px 6px -1px rgba(0,0,0,0.1);
    overflow: hidden;
}

#canvasContainer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, rgba(148, 163, 184, 0.03) 25%, transparent 25%), 
        linear-gradient(-45deg, rgba(148, 163, 184, 0.03) 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, 0.03) 75%), 
        linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, 0.03) 75%);
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0px;
    pointer-events: none;
}

/* Blueprint Style Elements */
.blueprint-line {
    stroke: #475569;
    stroke-width: 1;
    fill: none;
}

.dimension-line {
    stroke: #ef4444;
    stroke-width: 1.5;
}

/* Bezel Visualization */
.bezel-h {
    background: linear-gradient(to bottom, #1f2937, #4b5563, #1f2937);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.bezel-v {
    background: linear-gradient(to right, #1f2937, #4b5563, #1f2937);
    box-shadow: 1px 0 2px rgba(0,0,0,0.2);
}

/* 3D Display Shadow Effects */
.display-shadow {
    filter: drop-shadow(4px 4px 8px rgba(0,0,0,0.15));
    transition: filter 0.3s ease;
}

.display-shadow:hover {
    filter: drop-shadow(6px 6px 12px rgba(0,0,0,0.2));
}

/* Professional Technical Drawing Style */
.technical-drawing {
    font-family: 'Courier New', monospace;
    color: #334155;
}

/* View Mode Button Enhancements */
.view-mode-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-mode-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ef4444;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.view-mode-btn:hover::after {
    width: 80%;
}

.view-mode-btn.active::after {
    width: 100%;
}

/* Measurement Labels */
.measurement-label {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: 600;
    fill: #ef4444;
    color: #ef4444;
}

/* Canvas Animation */
canvas {
    transition: opacity 0.2s ease-in-out;
}

/* Professional Card Styling Enhancement */
.stats-card {
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ef4444, #f59e0b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-card:hover::before {
    opacity: 1;
}

/* North Arrow Indicator */
.north-arrow {
    width: 24px;
    height: 30px;
    position: relative;
}

.north-arrow::before {
    content: '▲';
    color: #475569;
    font-size: 20px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.north-arrow::after {
    content: 'N';
    color: #475569;
    font-size: 10px;
    font-weight: bold;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
/* Loading State */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Tooltip Customization */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: #1f2937;
    color: white;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 4px;
}

[data-tooltip]:hover::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1f2937;
    margin-bottom: -4px;
}