/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #2d3748;
    line-height: 1.6;
}

.indicator-icon{
	display:none!important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: #4a5568;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    letter-spacing: -0.025em;
}

.subtitle {
    font-size: 1.1rem;
    color: #718096;
    font-weight: 400;
}

/* Progress Steps */
.progress-container {
    margin-bottom: 30px;
}

.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.step.completed .step-number {
    background: #48bb78;
    color: white;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
    text-align: center;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Step containers */
.step-container {
    display: none;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    animation: slideIn 0.5s ease-out;
}

.step-container.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.step-header h2 i {
    color: #667eea;
}

.step-header p {
    color: #718096;
    font-size: 1.1rem;
}

/* Item Selection */
.item-selection {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.item-card {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.item-card.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.item-card.selected .item-image i {
    color: white;
}

.item-card.selected .tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.item-image {
    margin-bottom: 15px;
}

.item-image i {
    font-size: 3rem;
    color: #667eea;
    transition: all 0.3s ease;
}

.item-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.item-card p {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.item-details {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #e2e8f0;
    color: #4a5568;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Image Upload */
.image-upload-section {
    text-align: center;
    padding: 30px;
    background: #f7fafc;
    border-radius: 15px;
    border: 2px dashed #cbd5e0;
}

.image-upload-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.image-upload-section h3 i {
    color: #667eea;
}

.image-upload-section p {
    color: #718096;
    margin-bottom: 20px;
}

.upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    padding: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.upload-area i {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 15px;
}

.upload-area p {
    color: #718096;
    font-size: 1rem;
}

.image-preview {
    margin-top: 20px;
    position: relative;
    display: inline-block;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.remove-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #c53030;
    transform: scale(1.1);
}

/* Size Chart Section */
.size-chart-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.selected-item-display {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 2px solid #e2e8f0;
}

.item-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.item-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.item-info p {
    color: #718096;
    font-size: 0.9rem;
}

.size-chart-container {
    background: #f7fafc;
    border-radius: 15px;
    padding: 25px;
}

.size-chart-container h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
}

.size-chart {
    overflow-x: auto;
}

.size-chart table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.size-chart th,
.size-chart td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.size-chart th {
    background: #667eea;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.size-chart td {
    font-size: 0.9rem;
    color: #4a5568;
}

.size-chart tr:hover {
    background: #f7fafc;
}

/* Size Selection */
.size-selection h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
}

.size-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.size-option {
    width: 80px;
    height: 80px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a5568;
}

.size-option:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.size-option.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Measurements Section */
.measurements-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.selected-size-display {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 2px solid #e2e8f0;
}

.size-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.size-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.size-info p {
    color: #718096;
    font-size: 0.9rem;
}

/* Form styles */
.measurements-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    background: #f7fafc;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #e2e8f0;
}

.form-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    color: #667eea;
}

.section-note {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-style: italic;
}

.required-note {
    color: #e53e3e;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    background: #fed7d7;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #feb2b2;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    color: #4a5568;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #a0aec0;
}

/* Buttons */
.next-btn,
.back-btn,
.analyze-btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
}

.next-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    align-self: center;
}

.next-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.next-btn:disabled {
    background: #cbd5e0;
    color: #718096;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.back-btn {
    background: #e2e8f0;
    color: #4a5568;
}

.back-btn:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
}

.analyze-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    align-self: center;
    margin-top: 20px;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(72, 187, 120, 0.3);
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

/* Results Section */
.results-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    animation: slideIn 0.5s ease-out;
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.results-header h2 i {
    color: #667eea;
}

.fit-analysis {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.selected-item-summary {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 2px solid #e2e8f0;
}

.fit-visualization {
    background: #f7fafc;
    border-radius: 15px;
    padding: 25px;
}

.fit-visualization h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
}

.fit-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.fit-indicator {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.fit-indicator:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.indicator-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.indicator-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.indicator-status {
    font-size: 0.9rem;
    color: #718096;
}

/* Fit status colors */
.fit-indicator.comfortable .indicator-icon {
    color: #48bb78;
}

.fit-indicator.slightly-tight .indicator-icon {
    color: #ed8936;
}

.fit-indicator.too-tight .indicator-icon {
    color: #e53e3e;
}

.fit-recommendations {
    background: #f7fafc;
    border-radius: 15px;
    padding: 25px;
}

.fit-recommendations h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
}

.recommendations-grid {
    display: grid;
    gap: 15px;
}

.recommendation-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.recommendation-item.comfortable {
    border-left-color: #48bb78;
    background: #f0fff4;
}

.recommendation-item.slightly-tight {
    border-left-color: #ed8936;
    background: #fffaf0;
}

.recommendation-item.too-tight {
    border-left-color: #e53e3e;
    background: #fed7d7;
}

.alternative-sizes {
    background: #f7fafc;
    border-radius: 15px;
    padding: 25px;
}

.alternative-sizes h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
}

.size-alternatives {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.alternative-size {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.alternative-size:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alternative-size.recommended {
    border-color: #48bb78;
    background: #f0fff4;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.start-over-btn,
.save-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.start-over-btn {
    background: #e2e8f0;
    color: #4a5568;
}

.start-over-btn:hover {
    background: #cbd5e0;
    transform: translateY(-1px);
}

.save-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: #718096;
    font-size: 0.9rem;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.loading-spinner i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
}

.loading-spinner p {
    color: #4a5568;
    font-weight: 500;
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .step-container,
    .results-container {
        padding: 25px;
    }
    
    .progress-steps {
        gap: 15px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .item-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .size-options {
        gap: 10px;
    }
    
    .size-option {
        width: 70px;
        height: 70px;
        font-size: 1.3rem;
    }
    
    .fit-indicators {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .step-container,
    .results-container {
        padding: 20px;
    }
    
    .progress-steps {
        gap: 10px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .item-grid {
        grid-template-columns: 1fr;
    }
    
    .fit-indicators {
        grid-template-columns: 1fr;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .logo i {
        font-size: 1.8rem;
    }
}