/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    color: #333;
    margin-bottom: 20px;
}

p {
    font-size: 16px;
}

a {
    text-decoration: none;
    color: #66bb6a;
}

a:hover {
    color: #4caf50;
}

/* Header */
.header {
    background: linear-gradient(45deg, #66bb6a, #43a047);
    color: white;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Dancing Script', cursive;
    border-bottom: 5px solid #388e3c;
}

.header h1 {
    font-size: 56px;
    margin: 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

/* Navbar */
.navbar {
    background-color: #388e3c;
    padding: 15px 0;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.navbar .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.nav-list li a {
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 30px;
    transition: background-color 0.3s ease, transform 0.2s;
}

.nav-list li a:hover {
    background-color: #66bb6a;
    transform: scale(1.1);
}


/* Main Layout */
.main-layout {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Sidebar */
.sidebar {
    flex: 1;
    background-color: #e8f5e9;
    padding: 20px;
    border-radius: 5px;
    margin-right: 20px;
    min-width: 200px;
}

.sidebar h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.calendar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-calendar {
    padding: 10px 20px;
    background-color: #66bb6a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.btn-calendar:hover {
    background-color: #4caf50;
}

/* Content */
.content {
    flex: 3;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 300px;
}

/* Avatar Styles */
.diary-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
    object-fit: cover;
}

/* Prompt Label for Diary Entry */
.diary-prompt {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

/* Đường kẻ ngang */
.separator {
    border-bottom: 1px solid #ddd;
    margin: 20px 0;
}

/* Căn giữa tiêu đề "Nhật ký của bạn" và biểu tượng cuốn sổ */
.diary-section h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.diary-section h2 i {
    margin-right: 10px;
}

/* Diary Entries */
.diary-box-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.diary-box {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.diary-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.diary-author {
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
}

/* Nội dung nhật ký - căn đều hai lề và chọn font dễ đọc */
.diary-content p {
    text-align: justify;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Diary Actions */
.diary-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
}

.edit-icon, .delete-icon {
    font-size: 18px;
    color: #666;
    transition: color 0.3s ease;
}

.edit-icon:hover {
    color: #66bb6a;
}

.delete-icon:hover {
    color: #dc3545;
}

/* Reactions icons */
.diary-reactions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.reaction-icon {
    font-size: 18px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.reaction-heart.selected {
    color: #ff5e57; /* Màu đỏ cho Love */
}

.reaction-like.selected {
    color: #3b5998; /* Màu xanh da trời cho Like */
}

.reaction-dislike.selected {
    color: #333; /* Màu đen cho Dislike */
}

.reaction-smile.selected {
    color: #fbc02d; /* Màu vàng cho Smile */
}

.reaction-sad.selected {
    color: #fbc02d; /* Màu vàng đậm cho Sad */
}

.reaction-angry.selected {
    color: #e53935; /* Màu đỏ cho Angry */
}

/* Hiển thị danh sách người dùng */
.reaction-list ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.reaction-list ul li {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.reaction-list ul li img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 10px;
}
.reaction-users {
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 5px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 150px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.reaction-users p {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
}

.reaction-users img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 5px;
}

/* Comments section */
.comments-section {
    margin-top: 15px;
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
}

.comment-box {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.comment-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.comment-author {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.comment-date {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.comment-content {
    margin-top: 5px;
    font-size: 14px;
    color: #555;
}

.no-comments {
    font-size: 14px;
    color: #999;
    text-align: center;
    margin-top: 10px;
}

/* Comment form */
.diary-comments {
    margin-top: 20px;
}

.diary-comments textarea {
    width: 100%;
    height: 60px;
    padding: 2px 2px 2px 2px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
    resize: none;
}

.diary-comments .btn {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #66bb6a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.diary-comments .btn:hover {
    background-color: #4caf50;
}

/* Form nhật ký */
.diary-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: white;
    border-radius: 8px;
}

.diary-form textarea {
    height: 150px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
    resize: none;
    margin-bottom: 20px;
}

.diary-share {
    margin-bottom: 20px;
    font-size: 16px;
}

.diary-share select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}

.diary-form .btn {
    width: auto;
    padding: 10px 20px;
    background-color: #66bb6a;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    align-self: flex-end;
}

.diary-form .btn:hover {
    background-color: #4caf50;
}

/* Footer */
.footer {
    background-color: #66bb6a;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer p {
    margin: 0;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }

    .sidebar {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .navbar .container {
        flex-direction: column;
    }

    /* .nav-list { */
        /* flex-direction: column; */
    }
}
/* Header */
.header {
    background-color: #66bb6a;
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Dancing Script', cursive;
}

.header h1 {
    font-size: 48px;
    margin: 0;
    color: #e7eb94; /* Màu mới cho tiêu đề */
}
