body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f3f3;
    color: #222;
}

.admin-header {
    display: flex;
    align-items: center;
    gap: 24px;

    background: #2f2f2f;
    color: white;
    padding: 20px 32px;
}

.admin-header h1 {
    margin: 0;
    font-size: 22px;
}

.admin-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;
    border-radius: 8px;

    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);

    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;

    transition: background-color 0.2s ease;
}

.admin-back-btn:hover {
    background: rgba(255,255,255,0.22);
}

.admin-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px;
}

.editor-panel,
.list-panel {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

label {
    display: block;
    margin-top: 16px;
    margin-bottom: 6px;
    font-weight: bold;
}

input,
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
}

textarea {
    min-height: 260px;
    font-family: monospace;
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

button {
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 15px;
}

#save-btn {
    background: #2f2f2f;
    color: white;
}

#new-btn {
    background: #e0e0e0;
}

.post-item {
    border-bottom: 1px solid #ddd;
    padding: 16px 0;
}

.post-title {
    font-weight: bold;
    font-size: 17px;
}

.post-meta {
    color: #666;
    font-size: 14px;
    margin: 6px 0;
}

.post-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.edit-btn {
    background: #ddd;
}

.delete-btn {
    background: #b00020;
    color: white;
}

#status-message {
    margin-top: 16px;
    font-weight: bold;
}

.image-upload-box {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.image-upload-box input {
    flex: 1;
}

#upload-image-btn {
    background: #2f2f2f;
    color: white;
}

.image-preview {
    margin-top: 14px;
    max-width: 100%;
    max-height: 240px;
    border-radius: 10px;
    border: 1px solid #ddd;
    object-fit: cover;
}

/* Login screen aligned with the main site */

.login-view {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;

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

    background:
        linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
        url("/images/06-Home/06-LoginBackground.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.login-card {
    max-width: 420px;
    width: 100%;

    text-align: center;
    padding: 50px;
    border-radius: 20px;

    background-color: rgba(255,255,255,0.10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.login-card h1,
.login-card p {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.85);
}

.login-card h1 {
    margin: 0 0 18px;
    font-size: 32px;
}

.login-card p {
    margin: 0 0 28px;
    font-size: 18px;
}

.login-card button {
    background-color: rgba(255,255,255,0.92);
    color: #333;

    padding: 12px 24px;
    border: none;
    border-radius: 8px;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.login-card button:hover {
    background-color: #fff;
}