/* Estilos personalizados para Fotocristal */

body {

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Progress Steps */
.progress-container {
    margin-bottom: 2rem;
}

.step {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.step.active {
    opacity: 1;
    color: var(--success-color);
}

.step i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-bottom: none;
}

/* Local Selection */
.local-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.local-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.local-card.selected {
    border-color: var(--success-color);
    background-color: rgba(25, 135, 84, 0.1);
}

/* Photo Upload */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.375rem;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

.upload-area.dragover {
    border-color: var(--success-color);
    background-color: rgba(25, 135, 84, 0.1);
}

.photo-preview {
    position: relative;
    display: inline-block;
    margin: 0.5rem;
}

.photo-preview img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 0.375rem;
    border: 2px solid #dee2e6;
}

.photo-preview .remove-photo {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
}

/* Image Editor */
.editor-container {
    background: white;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.editor-canvas {
    max-width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.editor-controls {
    margin-top: 1rem;
}

.control-group {
    margin-bottom: 1rem;
}

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.range-input {
    width: 100%;
}

/* Size Selection */
.size-option {
    border: 2px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option:hover {
    border-color: var(--primary-color);
}

.size-option.selected {
    border-color: var(--success-color);
    background-color: rgba(25, 135, 84, 0.1);
}

.size-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.size-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.size-dimensions {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.price-info {
    text-align: right;
}

.price-range {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.current-price {
    font-weight: 600;
    color: var(--success-color);
    font-size: 1.1rem;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--light-color);
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.25rem;
}

/* Summary */
.order-summary {
    background: white;
    border-radius: 0.375rem;
    padding: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #dee2e6;
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 500;
}

.item-specs {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.item-price {
    font-weight: 500;
    color: var(--success-color);
}

/* Forms */
.form-floating {
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Admin Panel */
.admin-sidebar {
    background: var(--dark-color);
    min-height: calc(100vh - 56px);
    padding: 1rem 0;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1.5rem;
    border-radius: 0;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-content {
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .photo-preview img {
        width: 120px;
        height: 120px;
    }
    
    .size-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .price-info {
        text-align: left;
    }
    
    .step i {
        font-size: 1.2rem;
    }
    
    .step small {
        font-size: 0.7rem;
    }
}

/* Utilities */
.text-muted {
    color: var(--secondary-color) !important;
}

.bg-light {
    background-color: var(--light-color) !important;
}

.border-dashed {
    border-style: dashed !important;
}

.cursor-pointer {
    cursor: pointer;
}

.user-select-none {
    user-select: none;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
