/* Core Calculator Styles */
#calculator {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    #calculator {
        padding: 4rem 0;
    }
}

.packaging-calculator-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 72rem;
}

.packaging-calculator-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    overflow: hidden;
}

.configuration-panel {
    padding: 1.5rem;
    background: linear-gradient(to bottom right, #fff7ed, #ffedd5);
}

@media (min-width: 768px) {
    .configuration-panel {
        width: 50%;
        padding: 2rem;
    }
}

.pricing-panel {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .pricing-panel {
        width: 50%;
        padding: 2rem;
    }
}

/* Form Elements */
.custom-select {
    background-color: white;
    color: #333;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.75rem 0.9375rem;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 0.9375rem;
    transition: all 0.3s;
    cursor: pointer;
}

.custom-select:hover {
    border-color: #f97316;
}

.custom-select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
    outline: none;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin: 0.9375rem 0;
}

.quantity-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #f97316;
    color: white;
    border: none;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #ea580c;
    transform: scale(1.05);
}

.quantity-input {
    width: 5rem;
    text-align: center;
    font-size: 1.125rem;
    margin: 0 0.625rem;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-weight: 600;
    color: #333;
}

.range-slider {
    -webkit-appearance: none;
    height: 0.625rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0.3125rem;
    outline: none;
    margin: 0.9375rem 0;
    width: 100%;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #f97316;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.range-slider::-moz-range-thumb {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #f97316;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Price Display Styles */
.price-tier {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 0.375rem;
    background-color: white;
    transition: all 0.2s;
    cursor: pointer;
}

.price-tier:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.price-tier.active {
    background-color: rgba(249, 115, 22, 0.1);
}

.price-tier.active .tier-price {
    color: #f97316;
    font-weight: 700;
}

/* Modal Styles */
.packaging-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.packaging-modal.hidden {
    display: none;
}

.modal-content {
    background-color: white;
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 28rem;
    width: 100%;
    margin: 0 1rem;
    position: relative;
    overflow: hidden;
}

/* Utility Classes */
.text-orange-500 {
    color: #f97316;
}

.text-green-600 {
    color: #16a34a;
}

.bg-orange-50 {
    background-color: #fff7ed;
}

.bg-orange-100 {
    background-color: #ffedd5;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

/* Recent Orders */
.recent-order-card {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.recent-order-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.order-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.order-icon.orange {
    background-color: #ffedd5;
    color: #f97316;
}

.order-icon.green {
    background-color: #dcfce7;
    color: #22c55e;
}

.order-icon.blue {
    background-color: #dbeafe;
    color: #3b82f6;
}

/* Input highlight */
.input-highlight:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}