* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    background-color: white;
    color: black;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    background-color: white;
    border-right: 1px solid black;
    transition: width 0.3s ease;
    width: 40px;
    overflow: hidden;
}

.sidebar.expanded {
    width: 200px;
}

.toggle-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
}

.nav-links {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar.expanded .nav-links {
    opacity: 1;
}

.nav-links a {
    padding: 10px 20px;
    text-decoration: none;
    color: black;
    white-space: nowrap;
}

.nav-links a:hover {
    background-color: #f0f0f0;
}

.main-content {
    margin-left: 60px;
    padding: 40px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

h1 {
    font-weight: normal;
    font-size: 32px;
}

.add-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
    background-color: white;
    border: 1px solid black;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-btn:hover {
    background-color: #f0f0f0;
}

.add-btn img {
    width: 28px;
    height: 28px;
}

.blog-entry {
    margin-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.blog-entry h2 {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 10px;
}

.blog-entry .content {
    line-height: 1.6;
    white-space: pre-wrap;
}

.blog-entry .delete-btn {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: white;
    border: 1px solid black;
    cursor: pointer;
    font-family: Helvetica, Arial, sans-serif;
}

.blog-entry .delete-btn:hover {
    background-color: #f0f0f0;
}

.entry-form {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid black;
}

.entry-form input[type="text"] {
    width: 100%;
    padding: 10px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    border: 1px solid black;
    margin-bottom: 10px;
}

.entry-form .form-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.entry-form textarea {
    width: 100%;
    min-height: 150px;
    padding: 10px;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    border: 1px solid black;
    margin-bottom: 10px;
}

.entry-form button {
    padding: 8px 16px;
    margin-right: 10px;
    background-color: white;
    border: 1px solid black;
    cursor: pointer;
    font-family: Helvetica, Arial, sans-serif;
}

.entry-form button:hover {
    background-color: #f0f0f0;
}

.entry-form input[type="file"] {
    margin-bottom: 10px;
    font-family: Helvetica, Arial, sans-serif;
}

.entry-images {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.entry-images img {
    max-width: 300px;
    height: auto;
    border: 1px solid #e0e0e0;
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.image-preview img {
    max-width: 150px;
    height: auto;
    border: 1px solid #e0e0e0;
}

/* Blog list view */
.blog-list-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.blog-list-content {
    flex: 1;
}

.blog-title {
    display: block;
    font-size: 20px;
    font-weight: normal;
    color: black;
    text-decoration: none;
    margin-bottom: 5px;
}

.blog-title:hover {
    text-decoration: underline;
}

.blog-date {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

.delete-btn-list {
    padding: 5px 10px;
    background-color: white;
    border: 1px solid black;
    cursor: pointer;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 12px;
}

.delete-btn-list:hover {
    background-color: #f0f0f0;
}

/* Single blog view */
.blog-single {
    margin-bottom: 40px;
}

.blog-single h1 {
    font-size: 28px;
    font-weight: normal;
    margin-bottom: 10px;
}

.blog-single .blog-date {
    margin-bottom: 20px;
}

.blog-single .content {
    line-height: 1.6;
    white-space: pre-wrap;
    margin-top: 20px;
}

.blog-single .delete-btn {
    margin-top: 20px;
    padding: 5px 10px;
    background-color: white;
    border: 1px solid black;
    cursor: pointer;
    font-family: Helvetica, Arial, sans-serif;
}

.blog-single .delete-btn:hover {
    background-color: #f0f0f0;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: black;
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}
