/**
 * CamadaBase 2.0 - Onboarding Wizard Styles
 */

/* Overlay */
.onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.onboarding-overlay.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Modal */
.onboarding-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 24px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.4s ease;
}

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

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

/* Header */
.onboarding-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.onboarding-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.onboarding-progress .progress-bar {
    flex: 1;
    max-width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.progress-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.btn-skip {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.btn-skip:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Content */
.onboarding-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.step-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.step-body {
    color: rgba(255, 255, 255, 0.8);
}

.step-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.onboarding-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.footer-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-text {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-text:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ========== Welcome Step ========== */
.welcome-step {
    text-align: center;
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.welcome-step h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.features-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.feature-item:hover {
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 1.5rem;
}

.tip {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ========== Overview Step ========== */
.overview-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.overview-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.overview-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-3px);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.overview-card h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.overview-card p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.menu-tip {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    padding: 1rem;
    color: #818cf8;
}

.menu-tip span {
    font-size: 1.5rem;
    animation: pointLeft 1s infinite;
}

@keyframes pointLeft {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-5px);
    }
}

/* ========== Form Styles ========== */
.onboarding-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.form-group input,
.form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group select option {
    background: #1a1a2e;
}

.volume-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-inputs input {
    width: 80px;
    text-align: center;
}

.volume-inputs span {
    color: rgba(255, 255, 255, 0.3);
}

.tip-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(234, 179, 8, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1.5rem;
    color: #fbbf24;
    font-size: 0.875rem;
}

/* ========== Impressora Step ========== */
.impressora-preview {
    text-align: center;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.printer-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* ========== Filamento Step ========== */
.color-preview {
    text-align: center;
    margin-top: 1.5rem;
}

.spool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 2rem;
}

/* ========== Kanban Step ========== */
.kanban-demo {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.demo-column {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.75rem;
    width: 160px;
}

.column-header {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px 8px 0 0;
}

.demo-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.8rem;
}

.demo-card strong {
    display: block;
    color: #fff;
    margin-bottom: 0.25rem;
}

.demo-card small {
    color: rgba(255, 255, 255, 0.5);
}

.demo-card.active {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.demo-card.completed {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.demo-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.5rem;
    margin-top: 2rem;
}

.kanban-tips {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
}

.kanban-tips h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.kanban-tips ul {
    list-style: none;
    padding: 0;
}

.kanban-tips li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
}

.kanban-tips li strong {
    color: #818cf8;
}

/* ========== Pedido Step ========== */
.pedido-preview {
    text-align: center;
    margin-top: 2rem;
}

.preview-card {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 250px;
}

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

.status-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

.preview-value {
    color: #22c55e;
    font-weight: 600;
}

.preview-card h4 {
    color: #fff;
    margin-bottom: 0.25rem;
}

.preview-card p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.preview-tip {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ========== Conclusion Step ========== */
.conclusion-step {
    text-align: center;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.conclusion-step h3 {
    font-size: 1.75rem;
    color: #22c55e;
    margin-bottom: 0.5rem;
}

.quick-actions {
    margin: 2rem 0;
}

.quick-actions h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
}

.action-btn span:first-child {
    font-size: 1.5rem;
}

.action-btn span:last-child {
    font-size: 0.875rem;
}

.help-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    margin: 2rem 0;
}

.help-section h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.help-section ul {
    list-style: none;
    padding: 0;
}

.help-section li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
}

.help-section li strong {
    color: #818cf8;
}

.final-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    padding: 1rem;
    color: #818cf8;
}

.final-tip kbd {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.875rem;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .onboarding-modal {
        width: 95%;
        max-height: 95vh;
    }

    .features-preview,
    .overview-sections {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .kanban-demo {
        flex-direction: column;
        align-items: center;
    }

    .demo-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {

    .features-preview,
    .overview-sections,
    .action-buttons {
        grid-template-columns: 1fr;
    }

    .onboarding-content {
        padding: 1rem;
    }

    .onboarding-header,
    .onboarding-footer {
        padding: 1rem;
    }
}