body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #222;
}

a {
    color: #0b6efd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}


.login-box {
    width: 360px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

.login-box h2 {
    margin-top: 0;
    text-align: center;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

input,
textarea,
select {
    width: 100%;
    padding: 11px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
}

textarea {
    font-family: Consolas, monospace;
}

button,
.btn {
    display: inline-block;
    background: #0b6efd;
    color: #fff;
    border: none;
    padding: 11px 18px;
    margin-top: 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

button:hover,
.btn:hover {
    background: #084fc1;
    text-decoration: none;
}

.admin-wrap {
    max-width: 1200px;
    margin: 30px auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.topbar h1 {
    margin: 0;
}

.topbar a {
    margin-left: 12px;
}

.logout {
    color: #dc3545;
}

.actions {
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f1f3f5;
}

.delete {
    color: #dc3545;
}

.error {
    background: #ffe5e5;
    color: #b00020;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.post-form {
    max-width: 900px;
}

.preview-img {
    max-width: 280px;
    display: block;
    margin-top: 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* BLOGGER-LIKE EDITOR */
.editor-shell {
    border: 1px solid #cfd7e2;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    margin-top: 8px;
}

.editor-tabs {
    display: flex;
    gap: 6px;
    padding: 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.editor-tabs button {
    margin: 0;
    padding: 8px 14px;
    border-radius: 8px;
    background: #e5e7eb;
    color: #111827;
    font-weight: 700;
}

.editor-tabs button.active {
    background: #1d4ed8;
    color: #fff;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.editor-toolbar button,
.editor-toolbar select {
    margin: 0;
    padding: 8px 10px;
    border-radius: 7px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #111827;
    font-size: 13px;
    cursor: pointer;
}

.editor-toolbar button:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.editor-compose {
    min-height: 520px;
    padding: 22px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    outline: none;
    background: #ffffff;
}

.editor-compose h2 {
    font-size: 26px;
    margin: 28px 0 12px;
}

.editor-compose h3 {
    font-size: 21px;
    margin: 22px 0 10px;
}

.editor-compose p {
    margin: 0 0 16px;
}

.editor-compose pre {
    background: #111827;
    color: #f9fafb;
    padding: 18px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
    line-height: 1.65;
}

.editor-compose code {
    font-family: Consolas, Monaco, monospace;
}

.editor-html {
    display: none;
    width: 100%;
    min-height: 520px;
    padding: 18px;
    border: 0;
    outline: none;
    resize: vertical;
    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
    line-height: 1.6;
    background: #0f172a;
    color: #e5e7eb;
}

.editor-help {
    padding: 10px 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    border-top: 1px solid #e5e7eb;
}

.editor-compose blockquote {
    border-left: 5px solid #3b82f6;
    background: #f8fbff;
    padding: 16px 18px;
    margin: 22px 0;
    border-radius: 8px;
}

.editor-compose .warning-box {
    border-left: 5px solid #ef4444;
    background: #fffafa;
    padding: 16px 18px;
    margin: 22px 0;
    border-radius: 8px;
}