/*CSS for cell : doesItMakeSense*/

/* full-screen overlay (Answercraft-like) */
.ms-overlay-dims{
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(10,12,16,0.62);
    backdrop-filter: blur(6px);
    display:flex;
    align-items:center;
    justify-content:center;
    padding: 18px;
    box-sizing: border-box;
}

/* modal card */
.ms-modal{
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.30);
    border: 1px solid rgba(140,140,190,0.18);
    display:flex;
    flex-direction: column;
    overflow: hidden;
}

/* header */
.ms-header-dims{
    display:flex;
    align-items:center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(140,140,190,0.22);
    background: #ffffff;
}

.ms-header-left{
    display:flex;
    align-items:center;
    gap: 12px;
    min-width: 0;
}

.ms-appicon{
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display:flex;
    align-items:center;
    justify-content:center;
    color: #fff;
    font-size: 19px;
    background: linear-gradient(135deg, #838384, #240147);
    box-shadow: 0 10px 24px rgba(59,130,246,0.25);
    flex: 0 0 auto;
}

.ms-title-wrap{
    display:flex;
    flex-direction: column;
    min-width: 0;
}

.ms-title{
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.ms-subtitle{
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ms-actions{
    display:flex;
    align-items:center;
    gap: 10px;
}

/* icon button (🏭) */
.ms-iconbtn-dims{
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(140,140,190,0.22);
    background: rgba(245,246,255,0.9);
    display:flex;
    align-items:center;
    justify-content:center;
    transition: transform 120ms ease, box-shadow 120ms ease;
    user-select: none;
}
.ms-iconbtn-dims:hover{
    cursor: pointer;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* close button */
.ms-closebtn{
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(140,140,190,0.22);
    background: #ffffff;
    color: #111827;
    font-size: 18px;
    line-height: 1;
    display:flex;
    align-items:center;
    justify-content:center;
    transition: transform 120ms ease, box-shadow 120ms ease;
}
.ms-closebtn:hover{
    cursor:pointer;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* body */
.ms-body{
    padding: 14px 16px 16px;
    display:flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    box-sizing: border-box;
}

/* textarea holder */
.make-sense-holder{
    position: relative;
    width: 100%;
    height: 100%;
    display:flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

/* textarea (Answercraft-like input field) */
.make-sense-TA{
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    min-height: 0;

    border-radius: 14px;
    border: 1px solid rgba(168, 85, 247, 0.25);
    background: rgba(250, 250, 255, 0.95);

    padding: 14px;
    box-sizing: border-box;

    color: #111827;
    text-align: left;
    outline: none;

    overflow-y: auto;
    resize: none;
    line-height: 1.45;
}
.make-sense-TA:focus{
    border-color: rgba(168, 85, 247, 0.55);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.16);
}

/* hint footer */
.ms-hint{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: #6b7280;
    user-select: none;
}

/* nicer scrollbar */
.make-sense-TA::-webkit-scrollbar{
    width: 10px;
}
.make-sense-TA::-webkit-scrollbar-track{
    background: rgba(140,140,190,0.10);
    border-radius: 12px;
}
.make-sense-TA::-webkit-scrollbar-thumb{
    background: rgba(140,140,190,0.35);
    border-radius: 12px;
}
.make-sense-TA::-webkit-scrollbar-thumb:hover{
    background: rgba(140,140,190,0.55);
}

/* responsive */
@media (max-width: 900px){
    .ms-overlay-dims{ padding: 12px; }
    .ms-title{ font-size: 15px; }
}
