/* DPA-M DARK WORKSPACE */
#dpam-workspace {
    background: #1a1d21;
    color: #d1d2d3;
    font-family: 'Inter', sans-serif;
    border-radius: 8px;
    border: 1px solid #35373b;
    max-width: 900px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    height: 700px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.dpam-header {
    background: #111315;
    padding: 15px 20px;
    border-bottom: 1px solid #35373b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dpam-title { font-weight: 700; color: #fff; }
.dpam-status { font-size: 12px; color: #007a5a; }
.dpam-dot { display:inline-block; width:8px; height:8px; background:#007a5a; border-radius:50%; margin-right:5px; }

#dpam-stream {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* MESSAGES */
.dpam-msg { display: flex; gap: 12px; margin-bottom: 18px; animation: fadeIn 0.3s ease; }
.dpam-avatar { 
    width: 40px; height: 40px; 
    border-radius: 6px; 
    background: #2c2f33; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 22px; 
}
.dpam-body { flex: 1; }
.dpam-meta { font-weight: 700; color: #fff; margin-bottom: 4px; font-size: 14px; }
.dpam-content { line-height: 1.5; font-size: 15px; color: #d1d2d3; }

/* HUMAN IDENTITIES */
.dpam-student .dpam-avatar { background: #1d4ed8; } /* Blue */
.dpam-parent .dpam-avatar { background: #15803d; } /* Green */
.dpam-super .dpam-avatar { background: #b45309; } /* Gold */

/* AI IDENTITIES */
.dpam-agent-daraima .dpam-avatar { background: #581c87; } /* Purple */
.dpam-agent-prof .dpam-avatar { background: #be123c; } /* Red */
.dpam-agent-sunny .dpam-avatar { background: #f59e0b; } /* Orange */

/* FOOTER */
.dpam-footer { padding: 20px; background: #222529; border-top: 1px solid #35373b; }

.dpam-toolbar { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
#dpam-role-select {
    background: #111315; color: #fff; border: 1px solid #56585d;
    padding: 6px 12px; border-radius: 4px; cursor: pointer;
}
.dpam-hint { font-size: 12px; color: #ababad; }

.dpam-input-wrapper {
    background: #1a1d21; border: 1px solid #56585d; border-radius: 8px;
    padding: 10px; display: flex; flex-direction: column;
}
#dpam-input {
    background: transparent; border: none; color: #fff; 
    width: 100%; height: 60px; resize: none; outline: none;
    font-family: inherit;
}

.dpam-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

#dpam-btn-send {
    background: transparent; border: 1px solid #56585d; color: #d1d2d3;
    padding: 6px 14px; border-radius: 4px; cursor: pointer; transition: 0.2s;
}
#dpam-btn-send:hover { background: #2c2f33; }

#dpam-btn-submit {
    background: #007a5a; border: none; color: #fff;
    padding: 6px 18px; border-radius: 4px; font-weight: 700; cursor: pointer;
    transition: 0.2s;
}
#dpam-btn-submit:hover { background: #008966; box-shadow: 0 0 10px rgba(0,122,90,0.5); }

.dpam-meta { font-size: 11px; color: #696969; margin-top: 8px; text-align: center; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }