/* assets/css/dashboard_styles.css */
/* Estilos ESPECÍFICOS del Dashboard de Creación de Comercios */

body {
    padding-top: 40px;
}

.creator-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg, #ffffff);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: left;
    position: relative;
    padding-top: 20px;
}

/* Título Estilo Catálogo */
.dashboard-main-title {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.dashboard-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    padding: 0 20px;
}

[data-theme="dark"] .dashboard-subtitle {
    color: #aaa;
}

/* Botones de Navegación Integrados */
#theme-toggle,
.nav-back-btn {
    position: absolute;
    top: 20px;
    z-index: 100;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    border: none;
    box-shadow: var(--shadow);
}

.nav-back-btn {
    left: 20px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
}

#theme-toggle {
    right: 20px;
    background: var(--secondary-color);
    color: white;
}

.nav-back-btn:hover,
#theme-toggle:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* --- Resto del Formulario --- */

.form-section {
    padding: 30px 40px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
}

.section-number {
    background: var(--light-color);
    color: var(--dark-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-color);
}

/* Inputs ajustados */
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    background: var(--input-bg, white);
    color: var(--dark-color);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    outline: none;
}

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

.form-hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

[data-theme="dark"] .form-hint {
    color: #aaa;
}

/* Checkbox Grid */
.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.2s;
    color: var(--dark-color);
}

.custom-checkbox:hover {
    background: var(--light-color);
    border-color: var(--secondary-color);
}

.custom-checkbox input:checked+span {
    font-weight: 600;
    color: var(--primary-color);
}

/* Upload Grid */
.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.upload-card {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--card-bg);
    color: var(--dark-color);
}

.upload-card:hover {
    border-color: var(--secondary-color);
    background: rgba(37, 117, 252, 0.05);
}

.upload-card.has-file {
    border-style: solid;
    border-color: var(--success-color) !important;
    background: rgba(76, 175, 80, 0.1) !important;
}

.upload-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--dark-color);
    opacity: 0.6;
}

.upload-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.upload-subtitle {
    font-size: 0.75rem;
    opacity: 0.7;
}

.upload-preview {
    max-width: 100%;
    max-height: 80px;
    display: none;
    margin: 10px auto;
    border-radius: 4px;
    object-fit: contain;
}

.private-note {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid var(--warning-color);
    color: var(--warning-color);
    padding: 15px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-bar {
    padding: 30px 40px;
    background: var(--light-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

[data-theme="dark"] .action-bar {
    background: var(--card-bg);
}

.status-text {
    font-size: 0.9rem;
    color: var(--dark-color);
    opacity: 0.7;
}

.status-text.valid {
    color: var(--success-color);
    opacity: 1;
    font-weight: 600;
}

#publish-btn {
    background-color: #ccc;
    color: #666;
    border: none;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s;
    margin: 0;
    box-shadow: none;
}

#publish-btn.enabled {
    background: linear-gradient(to right, var(--success-color), #8BC34A);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

#publish-btn.enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

/* Modal de Éxito */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--card-bg, white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-color);
    opacity: 0.6;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.modal-content p {
    color: #666;
    margin-bottom: 5px;
}

.merchant-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.merchant-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 0, 126, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

@media (max-width: 600px) {
    .upload-grid {
        grid-template-columns: 1fr;
    }

    .action-bar {
        flex-direction: column;
        text-align: center;
    }

    .creator-container {
        margin: 10px;
        border-radius: 12px;
    }
}