body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background-color: #f4f4f9; color: #333; line-height: 1.6; margin: 0; padding: 20px; }
.admin-container { max-width: 1200px; margin: auto; background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

/* --- NEW TWO-COLUMN LAYOUT --- */
.post-form-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.main-content {
    flex: 1;
    min-width: 60%;
}
.sidebar {
    width: 300px;
    flex-shrink: 0;
}
.sidebar-panel {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}
.sidebar-panel h2 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}
/* --- END NEW LAYOUT --- */

h1, h2 { color: #2c3e50; }
h1 { margin-bottom: 1.5em; }

.form-group {
    margin-bottom: 20px;
}

label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: #495057; }
input[type="text"], input[type="password"], input[type="file"], textarea, select, input[type="datetime-local"] { 
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    box-sizing: border-box; 
    font-size: 1rem; 
    font-family: inherit;
}
input[type="file"] {
    padding: 5px;
}

.ck-editor__editable_inline { min-height: 400px; }

/* --- NEW & IMPROVED BUTTON STYLES --- */
.btn { background: #3498db; color: #fff; text-decoration: none; border: none; padding: 10px 15px; border-radius: 4px; cursor: pointer; font-size: 1em; text-align: center; }
.btn:hover { background: #2980b9; }

.save-btn { 
    display: block; 
    width: 100%;
    padding: 12px 25px; 
    font-size: 1.1em; 
    background: #007bff; /* Professional Blue */
    font-weight: 600;
}
.save-btn:hover { background: #0056b3; }

.btn-link {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
}
.btn-link:hover {
    color: #0056b3;
}

.publish-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.cancel-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
}
.cancel-link:hover {
    text-decoration: underline;
}
/* --- END BUTTON STYLES --- */

table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { padding: 12px; border: 1px solid #ddd; text-align: left; vertical-align: top; }
th { background-color: #f2f2f2; }
td a { color: #3498db; text-decoration: none; margin-right: 10px; }
td a:hover { text-decoration: underline; }

/* Responsive adjustments for the form layout */
@media (max-width: 900px) {
    .post-form-layout {
        flex-direction: column-reverse;
    }
    .sidebar {
        width: 100%;
    }
}