Spaces:
Paused

miracle / frontend /apps /internal /src /components /OnboardingModal.module.css
dushyantsingh0
backend stabilisation
3cd2dfd
Raw History Blame Contribute Delete
5.81 kB
.overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.85);
backdrop-filter: blur(12px);
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
padding: 40px;
}
.modal {
width: 100%;
max-width: 900px;
background: var(--bg2);
border: 1px solid var(--border);
border-radius: 24px;
overflow: hidden;
display: flex;
height: 600px;
box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
}
.sidebar {
width: 280px;
background: var(--bg3);
border-right: 1px solid var(--border);
padding: 40px 32px;
display: flex;
flex-direction: column;
gap: 40px;
}
.brand {
display: flex;
flex-direction: column;
gap: 8px;
}
.brand h2 {
font-size: 18px;
font-weight: 800;
color: var(--text1);
margin: 0;
letter-spacing: -0.5px;
}
.brand p {
font-size: 11px;
font-weight: 600;
color: var(--text3);
margin: 0;
text-transform: uppercase;
letter-spacing: 1px;
}
.steps {
display: flex;
flex-direction: column;
gap: 24px;
}
.step {
display: flex;
align-items: center;
gap: 16px;
opacity: 0.4;
transition: all 0.3s;
}
.step.active {
opacity: 1;
}
.step.completed {
opacity: 0.8;
}
.stepIcon {
width: 32px;
height: 32px;
border-radius: 50%;
background: var(--bg4);
border: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: center;
color: var(--text3);
font-size: 13px;
font-weight: 800;
}
.active .stepIcon {
background: var(--accent-dim);
border-color: var(--accent);
color: var(--accent);
box-shadow: 0 0 15px var(--accent-dim);
}
.completed .stepIcon {
background: var(--green-dim);
border-color: var(--green);
color: var(--green);
}
.stepLabel {
display: flex;
flex-direction: column;
}
.stepLabel span {
font-size: 10px;
font-weight: 700;
color: var(--text3);
text-transform: uppercase;
}
.stepLabel h3 {
font-size: 13px;
font-weight: 700;
color: var(--text2);
margin: 0;
}
.active .stepLabel h3 {
color: var(--text1);
}
.main {
flex: 1;
padding: 48px;
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
}
.closeBtn {
position: absolute;
top: 24px;
right: 24px;
background: transparent;
border: none;
color: var(--text3);
cursor: pointer;
padding: 8px;
border-radius: 50%;
}
.closeBtn:hover {
background: var(--bg3);
color: var(--text1);
}
.stepContent {
flex: 1;
display: flex;
flex-direction: column;
gap: 32px;
}
.stepHeader h2 {
font-size: 24px;
font-weight: 800;
color: var(--text1);
margin: 0 0 8px 0;
letter-spacing: -0.5px;
}
.stepHeader p {
font-size: 14px;
color: var(--text3);
margin: 0;
}
.formGrid {
display: flex;
flex-direction: column;
gap: 20px;
}
.inputGroup {
display: flex;
flex-direction: column;
gap: 8px;
}
.inputGroup label {
font-size: 11px;
font-weight: 700;
color: var(--text3);
text-transform: uppercase;
}
.inputField {
background: var(--bg1);
border: 1px solid var(--border);
padding: 12px 16px;
border-radius: 12px;
color: var(--text1);
font-size: 14px;
font-weight: 600;
outline: none;
transition: all 0.2s;
}
.inputField:focus {
border-color: var(--accent);
box-shadow: 0 0 0 4px var(--accent-dim);
}
.footer {
margin-top: 40px;
display: flex;
justify-content: flex-end;
gap: 12px;
}
.btnSecondary {
padding: 12px 24px;
border-radius: 12px;
background: transparent;
border: 1px solid var(--border);
color: var(--text2);
font-weight: 700;
cursor: pointer;
}
.btnPrimary {
padding: 12px 32px;
border-radius: 12px;
background: var(--accent);
color: white;
border: none;
font-weight: 700;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
transition: all 0.2s;
}
.btnPrimary:hover {
filter: brightness(1.1);
transform: translateY(-2px);
box-shadow: 0 8px 24px var(--primary-glow);
}
.btnPrimary:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
}
.colorPicker {
display: flex;
gap: 12px;
}
.colorBtn {
width: 40px;
height: 40px;
border-radius: 10px;
border: 2px solid transparent;
cursor: pointer;
transition: all 0.2s;
}
.colorBtn.selected {
border-color: white;
transform: scale(1.1);
box-shadow: 0 0 15px rgba(255,255,255,0.3);
}
/* Personality Selection */
.personaGrid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
}
.personaCard {
background: var(--bg1);
border: 1px solid var(--border);
padding: 16px;
border-radius: 16px;
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
cursor: pointer;
transition: all 0.2s;
text-align: center;
}
.personaCard:hover {
background: var(--bg3);
border-color: var(--text3);
}
.personaCard.selected {
background: var(--accent-dim);
border-color: var(--accent);
}
.personaCard h4 {
font-size: 13px;
font-weight: 700;
color: var(--text1);
margin: 0;
}
.personaCard p {
font-size: 10px;
color: var(--text3);
margin: 0;
}
/* Provisioning Animation */
.provisioningArea {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 32px;
}
.loader {
width: 80px;
height: 80px;
border-radius: 50%;
border: 4px solid var(--bg3);
border-top-color: var(--accent);
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.progressStack {
width: 100%;
max-width: 400px;
display: flex;
flex-direction: column;
gap: 12px;
}
.progressItem {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 12px;
font-weight: 700;
color: var(--text3);
}
.statusPass { color: var(--green); }
.statusLoad { color: var(--accent); }