/* Configurator Layout */
.configurator-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.configurator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.configurator-header h1 {
    font-size: 1.8rem;
    color: var(--yc-text, #333);
    margin-bottom: 0.5rem;
}

/* Step Progress */
.step-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    border: 2px solid var(--yc-step-pending, #ddd);
    background: var(--yc-surface, #fff);
    color: var(--yc-text-light, #999);
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-dot.active {
    border-color: var(--yc-step-active, #0d6efd);
    background: var(--yc-step-active, #0d6efd);
    color: #fff;
}

.step-dot.completed {
    border-color: var(--yc-step-completed, #198754);
    background: var(--yc-step-completed, #198754);
    color: #fff;
}

.step-dot:hover {
    transform: scale(1.1);
}

.step-connector {
    width: 20px;
    height: 2px;
    background: var(--yc-step-pending, #ddd);
}

.step-connector.completed {
    background: var(--yc-step-completed, #198754);
}

/* Content Layout */
.configurator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 992px) {
    .configurator-content {
        grid-template-columns: 1fr;
    }
}

/* Step Panel */
.step-panel {
    background: var(--yc-surface, #fff);
    border-radius: var(--yc-card-radius, 12px);
    box-shadow: var(--yc-card-shadow, 0 2px 12px rgba(0,0,0,0.08));
    padding: 1.5rem;
}

.step-panel h3 {
    color: var(--yc-text, #333);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.step-panel .step-description {
    color: var(--yc-text-muted, #666);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Option Cards */
.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.option-card {
    border: 2px solid var(--yc-border, #e0e0e0);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: var(--yc-surface, #fff);
}

.option-card:hover {
    border-color: var(--yc-primary, #0d6efd);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: var(--yc-option-selected-border, #0d6efd);
    background: var(--yc-option-selected-bg, #f0f7ff);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.option-card .option-icon {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    overflow: hidden;
}

.option-card .option-icon svg {
    width: 60px;
    height: 60px;
}

.option-card .option-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--yc-text, #333);
    margin-bottom: 0.25rem;
}

.option-card .option-description {
    font-size: 0.75rem;
    color: var(--yc-text-muted, #666);
    line-height: 1.3;
}

/* 3D Preview */
.preview-panel {
    background: var(--yc-surface, #fff);
    border-radius: var(--yc-card-radius, 12px);
    box-shadow: var(--yc-card-shadow, 0 2px 12px rgba(0,0,0,0.08));
    padding: 1rem;
    position: sticky;
    top: 1rem;
}

.preview-panel h4 {
    color: var(--yc-text, #333);
    margin-bottom: 0.5rem;
}

.preview-3d-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    cursor: grab;
}

.preview-3d-container:active {
    cursor: grabbing;
}

.preview-summary {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.85rem;
}

.preview-summary .summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--yc-border, #eee);
}

.preview-summary .summary-item:last-child {
    border-bottom: none;
}

.preview-summary .summary-label {
    color: var(--yc-text-muted, #666);
}

.preview-summary .summary-value {
    font-weight: 600;
    color: #333;
}

/* Dimensions Input */
.dimension-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dimension-group {
    display: flex;
    flex-direction: column;
}

.dimension-group label {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: var(--yc-text, #333);
}

.dimension-group .input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dimension-group input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--yc-input-border, #ddd);
    border-radius: 6px;
    font-size: 0.95rem;
    background: var(--yc-input-bg, #fff);
    color: var(--yc-text, #333);
}

.dimension-group input:focus {
    border-color: var(--yc-input-focus, #0d6efd);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.dimension-group .unit {
    color: #666;
    font-size: 0.85rem;
    min-width: 25px;
}

.dimension-group .hint {
    font-size: 0.75rem;
    color: #888;
    margin-top: 0.25rem;
}

/* Step calculated info */
.calculated-info {
    background: #e8f5e9;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.calculated-info h5 {
    margin-bottom: 0.5rem;
    color: #2e7d32;
}

.calculated-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--yc-border, #eee);
}

.btn-step {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-step.btn-prev {
    background: var(--yc-surface-hover, #f0f0f0);
    color: var(--yc-text, #333);
}

.btn-step.btn-prev:hover {
    background: var(--yc-border, #e0e0e0);
}

.btn-step.btn-next {
    background: var(--yc-primary, #0d6efd);
    color: #fff;
}

.btn-step.btn-next:hover {
    background: #0b5ed7;
}

.btn-step:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Price Display */
.price-display {
    background: var(--yc-price-bg, linear-gradient(135deg, #1a237e, #0d47a1));
    color: var(--yc-price-text, #fff);
    border-radius: var(--yc-card-radius, 12px);
    padding: 2rem;
    text-align: center;
    margin-top: 1.5rem;
}

.price-display h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.price-display .price {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.price-display .price-note {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Admin Panel */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.admin-card h4 {
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th,
.price-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.price-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    font-size: 0.85rem;
}

.price-table input {
    width: 120px;
    padding: 0.4rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: right;
}

.price-table input:focus {
    border-color: #0d6efd;
    outline: none;
}

/* Cart */
.cart-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 1rem;
    align-items: center;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h5 {
    margin-bottom: 0.5rem;
}

.cart-item-details .config-summary {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.cart-item-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1a237e;
    white-space: nowrap;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-total {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: right;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 1rem;
}

/* Checkout */
.checkout-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem;
}

.checkout-form .form-group {
    margin-bottom: 1rem;
}

.checkout-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}

.checkout-form textarea {
    min-height: 100px;
    resize: vertical;
}

.checkout-form .form-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
}

/* Auto-fill button */
.btn-autofill {
    background: #ff9800;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-autofill:hover {
    background: #f57c00;
}

/* Tenant selector */
.tenant-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.tenant-selector select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    min-width: 200px;
}

/* Tenant Price Overview */
.tenant-price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tenant-price-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 1.5rem;
    border-left: 4px solid #0d6efd;
}

.tenant-price-card h5 {
    margin-bottom: 0.5rem;
}

.tenant-price-card .price-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a237e;
}

/* Surface treatment info */
.treatment-info {
    background: #fff3e0;
    border-left: 3px solid #ff9800;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.4;
}

/* Order confirmation */
.order-confirmation {
    text-align: center;
    padding: 3rem 1rem;
}

.order-confirmation .check-icon {
    width: 80px;
    height: 80px;
    background: #198754;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #fff;
    font-size: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .option-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dimension-inputs {
        grid-template-columns: 1fr;
    }
    .step-progress {
        gap: 0.15rem;
    }
    .step-dot {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}
