body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
header {
    background: #f6f5f5;
    color: white;
    padding: 0px;
    text-align: center;
}
.navbar-brand img{width:120px;}
nav a {
    color: white;
    margin: 0 1rem;
    text-decoration: none;
}
main {
    padding: 2rem;
}
#blog-list {
    display: grid;
    gap: 1rem;
}
.blog-card {
    border: 1px solid #ddd;
    padding: 1rem;
}
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}
input, textarea, select {
    padding: 0.5rem;
    font-size: 1rem;
}
textarea {
    height: 150px;
    resize: vertical;
}
select[multiple] {
    height: 100px;
}
button {
    padding: 0.5rem;
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
}
button:hover {
    background: #555;
}
.gallery {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.like-button {
    display: inline-block;
    padding: 5px 10px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    margin-top: 5px;
}
.like-button:hover {
    background: #0056b3;
}
.read-more {
    display: inline-block;
    padding: 5px 10px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    margin-top: 5px;
}
.read-more:hover {
    background: #218838;
}
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}
.feature-image {
    max-width: 100%;
    height: auto;
}
.gallery-image {
    max-width: 150px;
    height: auto;
}
.meta {
    color: #666;
    font-size: 0.9em;
    margin: 0.5em 0;
}
.content {
    line-height: 1.6;
    margin: 1em 0;
}
.comments {
    margin-top: 2rem;
}
.comment {
    border-top: 1px solid #ddd;
    padding: 1rem 0;
}
.comment-meta {
    color: #666;
    font-size: 0.8em;
}
#comment-form textarea {
    height: 100px;
    resize: vertical;
}
#comment-form button {
    background: #007bff;
    max-width: 150px;
}
#comment-form button:hover {
    background: #0056b3;
}
.profile-info, .profile-form, .user-blogs {
    margin-bottom: 2rem;
}
.profile-info p, .user-blogs p {
    margin: 0.5rem 0;
}
.user-blogs ul {
    list-style: none;
    padding: 0;
}
.user-blogs li {
    margin: 0.5rem 0;
}
.blog-meta {
    color: #666;
    font-size: 0.9em;
}
.success {
    color: green;
    font-weight: bold;
}
.error {
    color: red;
    font-weight: bold;
}
.dashboard-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.dashboard-stats p {
    background: #f8f9fa;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 3px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
th, td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}
th {
    background: #f8f9fa;
}
td form {
    display: inline;
}
td button {
    margin: 0 0.25rem;
}
.add-user, .user-list, .blog-list, .comment-list {
    margin-bottom: 2rem;
}
#edit-user-modal, #edit-comment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
}
.modal-content form {
    margin: 0;
}
#edit-comment-form textarea {
    width: 100%;
    height: 150px;
    resize: vertical;
}