body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f1115;
    color: #e6e6e6;
}

/* LAYOUT */
.layout {
    display: flex;
    height: 100vh;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.page {
    flex: 1;
    overflow: hidden;
    padding: 20px;
}

/* SIDEBAR */
.sidebar {
    width: 220px;
    background: #1a1d23;
    padding: 15px;
    border-right: 1px solid #2a2f3a;
}

.nav-item {
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 6px;
    color: #b5b5b5;
}

.nav-item:hover {
    background: #2a2f3a;
    color: #fff;
}

.nav-item.active {
    background: #3a3f4b;
    color: white;
}

/* EDITOR */
.editor {
    width: 420px;
    background: #1a1d23;
    border: 1px solid #2a2f3a;
    border-radius: 10px;
    padding: 20px;
}

.center-wrap {
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: flex-start;
}

.section-title {
    font-size: 18px;
    margin-bottom: 15px;
}

/* FORM BLOCK */
.form-block {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: 1px solid #2a2f3a;
    border-radius: 8px;
    background: #151922;
    margin-bottom: 10px;
}

.form-label {
    font-size: 12px;
    color: #9aa4b2;
    margin-bottom: 5px;
}

input, select {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    background: #0f1115;
    border: 1px solid #2a2f3a;
    border-radius: 6px;
    color: white;
}

/* BUTTONS */
button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #5865f2;
    color: white;
}

button:hover {
    background: #4752c4;
}

.small-btn {
    background: #3a3f4b;
    margin-left: 10px;
}

/* ADMIN LAYOUT */
.admin-container {
    display: flex;
    height: 100%;
    gap: 15px;
}

.admin-left {
    width: 320px;
    display: flex;
    flex-direction: column;
    background: #1a1d23;
    border: 1px solid #2a2f3a;
    border-radius: 10px;
    padding: 10px;
}

.admin-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* SEARCH */
.search-box {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    margin-bottom: 10px;
    background: #0f1115;
    border: 1px solid #2a2f3a;
    border-radius: 6px;
    color: white;
}

/* USER LIST */
.user-list {
    flex: 1;
    overflow-y: auto;
}

.user-card {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #2a2f3a;
    margin-bottom: 8px;
    cursor: pointer;
}

.user-card:hover {
    background: #2a2f3a;
}

.user-card.active {
    background: #3a3f4b;
}

/* PROFILE INFO */
.info-block {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid #2a2f3a;
    border-radius: 8px;
    background: #151922;
    margin-bottom: 10px;
}

.info-label {
    color: #9aa4b2;
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: white;
    background: #2a2f3a;
    border: 1px solid #3a3f4b;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
    pointer-events: none;
    z-index: 9999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: #1f3b2c;
    border-color: #2f6b4f;
}

.toast.error {
    background: #3b1f1f;
    border-color: #6b2f2f;
}

/* HEADER */
.edit-header {
    font-size: 16px;
    margin-bottom: 15px;
}

.edit-header span {
    text-decoration: underline;
}


/* POPUP OVERLAY */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 17, 21, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

/* MODAL */
.popup-modal {
    width: 320px;
    background: #1a1d23;
    border: 1px solid #2a2f3a;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* TITLE */
.popup-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #ffffff;
}

/* TEXT */
.popup-text {
    font-size: 13px;
    color: #9aa4b2;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* BUTTON ROW */
.popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* reuse your existing small button style */
.popup-actions .small-btn {
    background: #3a3f4b;
}

/* TOP BAR */
#topbar {
    height: 50px;
    background: #1a1d23;
    border-bottom: 1px solid #2a2f3a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    box-sizing: border-box;
    color: #e6e6e6;
}

/* LEFT SIDE TITLE */
.topbar-left {
    font-size: 14px;
    font-weight: 600;
    color: #b5b5b5;
    letter-spacing: 0.3px;
}

/* username highlight */
#welcomeUser {
    color: #ffffff;
    font-weight: 600;
    margin-left: 4px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9aa4b2;
}

.topbar-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #2a2f3a;
    object-fit: cover;
    background: #151922;
}