*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    background:#f5f7fb;
    display:flex;
}

/* SIDEBAR */

.sidebar{
    width:260px;
    height:100vh;
    background:white;
    padding:25px;
    border-right:1px solid #e5e7eb;
}

.logo{
    font-size:34px;
    font-weight:bold;
    color:#6d28d9;
    margin-bottom:25px;
}

.btn-ai{
    width:100%;
    background:linear-gradient(90deg,#7c3aed,#2563eb);
    color:white;
    border:none;
    padding:14px;
    border-radius:12px;
    font-size:16px;
    cursor:pointer;
    margin-bottom:25px;
}

.menu-title{
    font-size:13px;
    color:#888;
    margin-bottom:15px;
    font-weight:bold;
}

.sidebar ul{
    list-style:none;
}

.sidebar li{
    padding:12px;
    margin-bottom:8px;
    border-radius:10px;
    cursor:pointer;
    transition:0.3s;
}

.sidebar li:hover{
    background:#f1f5f9;
}

.sidebar li.active{
    background:linear-gradient(90deg,#7c3aed,#2563eb);
    color:white;
}

/* MAIN */

.main{
    flex:1;
    padding:25px;
}

/* TOPBAR */

.topbar{
    background:white;
    padding:15px;
    border-radius:15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
    box-shadow:0 3px 10px rgba(0,0,0,0.05);
}

.topbar input{
    width:70%;
    padding:12px;
    border:1px solid #ddd;
    border-radius:10px;
}

.credits{
    background:#ede9fe;
    color:#6d28d9;
    padding:10px 18px;
    border-radius:10px;
    font-weight:bold;
}

/* TITULOS */

h1{
    font-size:40px;
    margin-bottom:15px;
}

p{
    color:#666;
    font-size:18px;
}

/* RESPONSIVE */

@media(max-width:900px){

    .sidebar{
        display:none;
    }

    .main{
        width:100%;
    }

    .topbar{
        flex-direction:column;
        gap:10px;
    }

    .topbar input{
        width:100%;
    }

}

.steps{
display:flex;
gap:10px;
margin-bottom:20px;
}

.step{
background:white;
padding:12px 18px;
border-radius:12px;
font-weight:bold;
box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

.active{
background:#7c3aed;
color:white;
}

.dashboard{
display:grid;
grid-template-columns:250px 1fr 300px 260px;
gap:20px;
}

.templates,
.editor,
.ia-panel{
background:white;
padding:20px;
border-radius:15px;
box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

.template-card{
background:#f5f7fb;
padding:15px;
border-radius:12px;
margin-bottom:10px;
cursor:pointer;
}

.template-card:hover{
background:#ede9fe;
}

.invitation{
text-align:center;
padding:40px;
background:#eef6ff;
border-radius:15px;
}

.invitation h1{
font-size:60px;
color:#2563eb;
}

.emoji{
font-size:80px;
margin:20px 0;
}

.ia-panel textarea{
width:100%;
height:180px;
padding:15px;
border:1px solid #ddd;
border-radius:12px;
margin-top:15px;
margin-bottom:15px;
}

.generate-btn{
width:100%;
padding:14px;
border:none;
border-radius:12px;
background:linear-gradient(90deg,#7c3aed,#2563eb);
color:white;
font-weight:bold;
cursor:pointer;
}

.preview-panel{
background:white;
padding:20px;
border-radius:15px;
box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

.phone-preview{
width:170px;
height:300px;
background:#111;
border-radius:30px;
margin:20px auto;
padding:10px;
}

.mini-invitation{
height:100%;
background:#eaf4ff;
border-radius:18px;
text-align:center;
padding:25px 10px;
position:relative;
}

.mini-invitation h2{
font-size:32px;
color:#2563eb;
}

.marca{
position:absolute;
top:120px;
left:5px;
right:5px;
background:rgba(0,0,0,.5);
color:white;
padding:8px;
font-weight:bold;
transform:rotate(-15deg);
}

.hd-btn{
width:100%;
padding:14px;
border:none;
border-radius:12px;
background:linear-gradient(90deg,#7c3aed,#2563eb);
color:white;
font-weight:bold;
cursor:pointer;
margin-top:15px;
}

.payments{
margin-top:20px;
}

.payments div{
display:flex;
justify-content:space-between;
align-items:center;
padding:10px;
border:1px solid #eee;
border-radius:10px;
margin-bottom:10px;
}

.payments button{
background:#22c55e;
color:white;
border:none;
padding:8px 12px;
border-radius:8px;
cursor:pointer;
}

.event-form{
    margin-top:20px;
    background:#ffffff;
    padding:20px;
    border-radius:15px;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

.event-form h3{
    margin-bottom:15px;
}

.event-form form{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.event-form input{
    width:100%;
    padding:12px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:14px;
}

.save-btn{
    grid-column:1 / span 2;
    width:100%;
    padding:14px;
    border:none;
    border-radius:12px;
    background:#22c55e;
    color:white;
    font-weight:bold;
    cursor:pointer;
}