/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Blinker', sans-serif;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    min-height: 100vh;
    padding: 0px;
}

/* Layout */
.container {
    max-width: 100%;
    margin: 0 auto;
    /* background: white; */
    /* border-radius: 20px; */
    /* box-shadow: 0 20px 40px rgba(0,0,0,0.1); */
    overflow: hidden;
}

.header {
    background:white;
    color: white;
    padding: 30px;
    text-align: left;
}

.header h1 {
    font-size: 1.5rem;
    margin-bottom: 0px;
    color: #333;;
    /* text-shadow: 2px 2px 4px rgba(0,0,0,0.3); */
}



.content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    padding: 30px;
    min-height: 600px;
}

.order-tshirt-panel {

}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 200px;
}

/* Control Groups and Accordion */
.control-group {
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    overflow: hidden;
}

.control-group:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.control-group-header {
    padding: 10px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.control-group-header:hover {
    background: #e9ecef;
}

.control-group-header h3 {
    color: #333;
    font-size: 1.1rem;
    margin: 0;
}

.accordion-icon {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #b6b6b6;
    transition: transform 0.3s ease;
}

.control-group.collapsed .accordion-icon {
    transform: rotate(-90deg);
}

.control-group-content {
    padding: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.control-group.collapsed .control-group-content {
    max-height: 0;
    padding: 0 20px;
    opacity: 0;
}

.control-group:not(.collapsed) .control-group-content {
    max-height: 1000px;
    opacity: 1;
}

/* File Upload */
.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload-btn {
    display: block;
    background: linear-gradient(135deg, #4285f4 0%, #3367d6 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    font-size: 14px;
}

.file-upload:hover .file-upload-btn {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.file-upload.dragover .file-upload-btn {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: scale(1.02);
}

.file-selected .file-upload-btn {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

/* Form Controls */
input[type="text"], 
input[type="color"], 
select {
    width: 100%;
    padding: 1px;
    
    
    font-size: 14px;
    transition: border-color 0.3s ease;
    margin-bottom: 10px;
}

input[type="text"]:focus, 
select:focus {
    outline: none;
    border-color: #667eea;
}

input[type="color"] {
    height: 40px;
    cursor: pointer;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

input[type="range"] {
    width: 100%;
    margin: 8px 0;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Design Area */
.design-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}

/* Toggle buttons for front/back view */
.toggle-btn {
    padding: 10px 20px;
    margin: 0 5px;
    border: 2px solid #007bff;
    background: white;
    color: #007bff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: #e3f2fd;
}

.toggle-btn.active {
    background: #007bff;
    color: white;
}

/* Zoom Controls */
.zoom-btn {
    padding: 8px 15px;
    margin: 0 2px;
    border: 2px solid #28a745;
    background: white;
    color: #28a745;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: #e8f5e8;
}

.zoom-btn:active {
    background: #28a745;
    color: white;
}

.tshirt-background {
    position: relative;
    width: 1000px;
    height: 1378px;
    background-image: url('../assets/black-front.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: top left;
    border-radius: 10px;
    overflow: hidden;
    
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: calc(288px - 60px);
}

.tshirt-canvas {
    position: relative;
    width: 580px;
    height: 720px;
    background: transparent;
}

.tshirt-background.back-view {
    background-image: url('../assets/black-back.png');
    padding-top: calc(288px - 60px - 150px);
}

.tshirt-shape {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Design Elements */
.design-element {
    position: absolute;
    cursor: move;
    user-select: none;
    border: 2px dashed transparent;
    transition: all 0.2s ease;
    z-index: 10;
}

.design-element:hover {
    border-color: #667eea;
    transform: scale(1.02);
}

.design-element.selected {
    border-color: #c9c9c9;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.3);
}

.design-element.selected.anchor {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.4);
}

.design-element.dragging {
    opacity: 0.8;
    transform: scale(1.05);
    z-index: 100;
}

.title-element {
    font-weight: bold;
    text-align: center;
    padding: 0;
    border-radius: 5px;
    background: rgba(255,255,255,0.0);
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transform-origin: center center;
}

.title-element.text-align-left {
    justify-content: flex-start;
    transform-origin: left center;
}

.title-element.text-align-center {
    justify-content: center;
    transform-origin: center center;
}

.title-element.text-align-right {
    justify-content: flex-end;
    transform-origin: right center;
}

.trail-element {
    border-radius: 10px;
    background: rgba(255,255,255,0.00);
    padding: 0;
    z-index: 1;
}

.trail-canvas {
    display: block;
    border-radius: 5px;
}

.metric-element {
    z-index: 15;
    text-align: center;
}

/* Buttons */
.preset-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 10px;
}

.preset-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.export-btn {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,184,148,0.3);
    width: 100%;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,184,148,0.4);
}

/* Status Messages */
.status {
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 500;
    text-align: center;
    font-size: 14px;
}

.status.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.status.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Instructions */
.instructions {
    background: #e3f2fd;
    border: 2px solid #bbdefb;
    border-radius: 10px;
    padding: 15px;
    color: #1565c0;
    font-size: 14px;
    line-height: 1.4;
}

.instructions strong {
    color: #0d47a1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content {
        grid-template-columns: 1fr;
    }
    
    /* .tshirt-background {
        width: 800px;
        height: 1102px;
    }
    
    .tshirt-canvas {
        width: 384px;
        height: 461px;
    } */
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    /* .tshirt-background {
        width: 600px;
        height: 827px;
    }
    
    .tshirt-canvas {
        width: 288px;
        height: 346px;
    } */
    
    .content {
        padding: 20px;
        gap: 20px;
    }
}


 :root {
            --primary-color: rgb(17,17,17);
            --primary-dark: #3367d6;
            --secondary-color: rgb(17,17,17);
            --accent-color: #10b981;
            --muted-color: #6c757d;
            --gradient-primary: linear-gradient(135deg, #4285f4 0%, #3367d6 100%);
            /* --gradient-primary: linear-gradient(135deg, #6bcb2b 0%, #407b19 100%); */
        }

        body {
            font-family: 'Inter', sans-serif;
            line-height: 1.6;
        }

        /* Custom button styles */
        .btn-gradient {
            background: var(--gradient-primary);
            border: none;
            color: white !important;
            transition: all 0.3s ease;
        }

        .btn-gradient:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(66, 133, 244, 0.3);
            color: white !important;
        }

        .btn-outline-custom {
            border: 2px solid #e9ecef;
            color: var(--secondary-color);
            background: white;
            transition: all 0.3s ease;
        }

        .btn-outline-custom:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
            background: #f8f9fa;
            border-color: #dee2e6;
            color: var(--secondary-color);
        }

        /* Header styles */
        .navbar-brand {
            font-weight: 700;
            font-size: 1.25rem;
            color: var(--secondary-color) !important;
        }

        .navbar-nav .nav-link {
            font-weight: 500;
            color: #6c757d !important;
            transition: color 0.3s ease;
        }

        .navbar-nav .nav-link:hover {
            color: var(--primary-color) !important;
        }

        /* Hero section */
        .hero-section {
            padding: 5rem 0 8rem 0;
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        }

        .hero-title {
            font-size: 3.5rem;
            font-weight: 700;
            line-height: 1.2;
            color: var(--secondary-color);
            margin-bottom: 1.5rem;
        }

        .hero-subtitle {
            font-size: 1.25rem;
            color: var(--muted-color);
            line-height: 1.6;
            margin-bottom: 2rem;
        }

        .text-primary-custom {
            color: var(--primary-color) !important;
        }

        /* Stats section */
        .stats-item {
            text-align: center;
            padding: 1rem;
        }

        .stats-number {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--secondary-color);
            margin-bottom: 0.25rem;
        }

        .stats-label {
            font-size: 0.875rem;
            color: var(--muted-color);
        }

        /* Hero image */
        .hero-image {
            position: relative;
            overflow: hidden;
            border-radius: 1rem;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
            transition: transform 0.3s ease;
        }

        .hero-image:hover {
            transform: translateY(-8px);
        }

        .hero-image img {
            width: 100%;
            height: auto;
            border-radius: 1rem;
        }

        .hero-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
            border-radius: 0 0 1rem 1rem;
            height: 50%;
        }

        .hero-caption {
            position: absolute;
            bottom: 1.5rem;
            left: 1.5rem;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 0.75rem 1rem;
            border-radius: 0.5rem;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        }

        /* Features section */
        .features-section {
            padding: 5rem 0;
            background: white;
        }

        .feature-icon {
            width: 4rem;
            height: 4rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            font-size: 1.5rem;
        }

        .feature-icon-upload {
            background: rgba(66, 133, 244, 0.1);
            color: var(--primary-color);
        }

        .feature-icon-palette {
            background: rgba(16, 185, 129, 0.1);
            color: var(--accent-color);
        }

        .feature-icon-award {
            background: rgba(139, 92, 246, 0.1);
            color: #8b5cf6;
        }

        .feature-icon-truck {
            background: rgba(251, 146, 60, 0.1);
            color: #fb923c;
        }

        .feature-card {
            text-align: center;
            padding: 2rem 1rem;
            transition: transform 0.3s ease;
        }

        .feature-card:hover {
            transform: translateY(-5px);
        }

        .feature-title {
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--secondary-color);
            margin-bottom: 1rem;
        }

        .feature-description {
            color: var(--muted-color);
            line-height: 1.6;
        }

        /* Footer */
        .footer {
            background: rgb(17,17,17);
            color: white;
            padding: 4rem 0 2rem 0;
        }

        .footer h5 {
            font-weight: 600;
            margin-bottom: 1rem;
            color: white;
        }

        .footer .list-unstyled li {
            margin-bottom: 0.5rem;
        }

        .footer .list-unstyled a {
            color: #adb5bd;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer .list-unstyled a:hover {
            color: white;
        }

        .footer-brand {
            color: white !important;
            font-weight: 700;
            font-size: 1.25rem;
        }

        .footer-description {
            color: #adb5bd;
            line-height: 1.6;
            margin: 1rem 0 1.5rem 0;
        }

        .social-links a {
            color: #adb5bd;
            font-size: 1.25rem;
            margin-right: 1rem;
            transition: color 0.3s ease;
        }

        .social-links a:hover {
            color: var(--primary-color);
        }

        .footer-bottom {
            border-top: 1px solid #495057;
            margin-top: 3rem;
            padding-top: 2rem;
        }

        .footer-bottom p {
            margin: 0;
            color: #adb5bd;
        }

        .footer-bottom a {
            color: #adb5bd;
            text-decoration: none;
            margin: 0 1rem;
        }

        .footer-bottom a:hover {
            color: white;
        }

        /* Play button */
        .play-icon {
            width: 1.25rem;
            height: 1.25rem;
            background: rgba(66, 133, 244, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 0.5rem;
        }

        .play-triangle {
            width: 0;
            height: 0;
            border-left: 6px solid var(--primary-color);
            border-top: 3px solid transparent;
            border-bottom: 3px solid transparent;
            margin-left: 2px;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.5rem;
            }
            
            .hero-section {
                padding: 3rem 0 5rem 0;
            }
            
            .stats-item {
                margin-bottom: 1.5rem;
            }
        }

        @media (max-width: 576px) {
            .hero-title {
                font-size: 2rem;
            }
            
            .hero-subtitle {
                font-size: 1.1rem;
            }
        }

        /* Animation utilities */
        .fade-in-up {
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.8s ease forwards;
        }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .delay-1 { animation-delay: 0.1s; }
        .delay-2 { animation-delay: 0.2s; }
        .delay-3 { animation-delay: 0.3s; }
        .delay-4 { animation-delay: 0.4s; }

        /* Tab Interface Styles */
        .tab-btn.active {
            background: #4285f4 !important;
            color: white !important;
        }
        
        .tab-btn:hover {
            background: #4285f4 !important;
            color: white !important;
        }
        
        .tab-btn.active:hover {
            background: #2a57a0 !important;
            color: white !important;
        }
