/* =====================================================
   RESET
===================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{

    font-family:'Montserrat',sans-serif;

    background:#060b17;

    color:white;

    height:100vh;

    display:flex;

    overflow:hidden;
}

/* =====================================================
   SIDEBAR
===================================================== */

.sidebar{

    width:260px;

    background:#09111f;

    border-right:
    1px solid rgba(255,255,255,.06);

    display:flex;
    flex-direction:column;

    padding:25px;
}

.brand{

    display:flex;
    align-items:center;

    gap:12px;

    margin-bottom:35px;
}

.brand img{

    width:42px;
    height:42px;
}

.brand h2{

    font-size:18px;
}

.sidebar nav{

    display:flex;
    flex-direction:column;

    gap:8px;
}

.menu-item{

    border:none;

    background:none;

    color:white;

    text-align:left;

    padding:14px 16px;

    border-radius:12px;

    cursor:pointer;

    transition:.25s;
}

.menu-item:hover{

    background:
    rgba(255,255,255,.05);
}

.menu-item.active{

    background:
    rgba(37,99,235,.25);

    border:
    1px solid rgba(37,99,235,.4);
}

/* =====================================================
   CONTENT
===================================================== */

.admin-content{

    flex:1;

    padding:30px;

    overflow:auto;
}

/* =====================================================
   DASHBOARD
===================================================== */

.stats-grid{

    display:grid;

    grid-template-columns:
    repeat(4,1fr);

    gap:20px;
}

.stat-card{

    background:#0d1628;

    border:
    1px solid rgba(255,255,255,.06);

    border-radius:20px;

    padding:24px;
}

.stat-card span{

    display:block;

    opacity:.7;

    margin-bottom:10px;
}

.stat-card strong{

    font-size:34px;
}

/* =====================================================
   MOTOR
===================================================== */

.hidden{
    display:none;
}

.validation-builder{

    display:grid;

    grid-template-columns:
    250px
    250px
    250px
    250px
    380px;

    gap:18px;

    margin-top:20px;

    min-height:calc(100vh - 100px);
}

.builder-column{

    background:#0d1628;

    border:
    1px solid rgba(255,255,255,.06);

    border-radius:20px;

    overflow:hidden;

    display:flex;
    flex-direction:column;
}

.column-header{

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:18px;

    border-bottom:
    1px solid rgba(255,255,255,.06);
}

.column-header button{

    width:34px;
    height:34px;

    border:none;

    border-radius:10px;

    cursor:pointer;

    background:#2563eb;

    color:white;

    font-size:20px;
}

.column-list{

    flex:1;

    overflow:auto;

    padding:12px;
}

/* =====================================================
   ITEMS
===================================================== */

.list-item{

    background:#101c33;

    border:
    1px solid rgba(255,255,255,.05);

    border-radius:12px;

    padding:12px;

    margin-bottom:10px;

    cursor:pointer;

    transition:.25s;
}

.list-item:hover{

    border-color:#2563eb;
}

/* =====================================================
   EDITOR
===================================================== */

.question-editor{

    background:#0d1628;

    border:
    1px solid rgba(255,255,255,.06);

    border-radius:20px;

    padding:24px;

    display:flex;
    flex-direction:column;

    gap:12px;
}

.question-editor textarea{

    min-height:140px;
}

.question-editor textarea,
.question-editor input,
.question-editor select{

    width:100%;

    background:#101c33;

    color:white;

    border:
    1px solid rgba(255,255,255,.08);

    border-radius:12px;

    padding:12px;
}

.editor-actions{

    margin-top:10px;

    display:flex;

    gap:10px;
}

.editor-actions button{

    flex:1;

    border:none;

    cursor:pointer;

    border-radius:12px;

    padding:14px;
}

#saveQuestion{

    background:#2563eb;

    color:white;
}

#deleteQuestion{

    background:#dc2626;

    color:white;
}

#questionFields{

    display:flex;
    flex-direction:column;

    gap:12px;
}

.hidden-editor{
    display:none;
}

.editor-section{

    margin-bottom:24px;

    padding-bottom:20px;

    border-bottom:
    1px solid rgba(255,255,255,.06);
}

.editor-section h4{

    margin-bottom:15px;

    color:#60a5fa;
}

.question-editor{

    overflow:auto;
}