
/* LOGOUT BUTTON STYLES */
.logout-btn {
    background: #dc3545 !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.logout-btn:hover {
    background: #c82333 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* COMMENTS SECTION */
.comments-section {
    background: #f8f9fa;
    padding: 60px 20px;
}

.comments-container {
    max-width: 900px;
    margin: 0 auto;
}

.comments-container h3 {
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-align: center;
}

.section-description {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
}

/* POST COMMENT CARD */
.post-comment-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.post-comment-card textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.post-comment-card textarea:focus {
    outline: none;
    border-color: #0055A2;
    box-shadow: 0 0 0 3px rgba(0, 85, 162, 0.1);
}

.comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.char-count {
    font-size: 14px;
    color: #666;
}

.btn-post {
    background: linear-gradient(135deg, #0055A2 0%, #003366 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 85, 162, 0.3);
}

.btn-post:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* COMMENTS LIST */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.comment-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 12px;
}

.comment-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-header-right {
    position: relative;
}

.comment-author {
    font-weight: 600;
    color: #0055A2;
    font-size: 14px;
}

.comment-time {
    font-size: 13px;
    color: #999;
}

/* MENU BUTTON (3 DOTS) */
.comment-menu-btn {
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    padding: 6px 10px;
    font-size: 20px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.comment-menu-btn:hover {
    background: #e0e0e0;
    color: #0055A2;
    border-color: #0055A2;
    transform: scale(1.1);
}

/* Dropdown menu */
.comment-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 120px;
    display: none;
    margin-top: 5px;
    z-index: 1000;
}

.comment-menu-dropdown.show {
    display: block;
}

.comment-menu-item {
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    background: none;
    border: none;
    width: 100%;
}

.comment-menu-item:hover {
    background: #f8f9fa;
}

.comment-menu-item.delete {
    color: #dc3545;
}

/* EDIT MODE */
.comment-edit-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.comment-edit-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #0055A2;
    border-radius: 8px;
    min-height: 50px;
    font-size: 15px;
    resize: vertical;
}

.comment-edit-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 85, 162, 0.1);
}

/* BUTTON ROW */
.comment-edit-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}

/* CANCEL / SAVE (CENTERED LIKE POST UPDATE) */
.btn-cancel-edit,
.btn-save-edit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 12px 30px !important;
    height: 48px !important;

    font-size: 16px !important;
    font-weight: 700 !important;

    border-radius: 10px !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* Cancel button */
.btn-cancel-edit {
    background: #e0e0e0;
    color: #333;
}

.btn-cancel-edit:hover {
    background: #d0d0d0;
}

/* Save button */
.btn-save-edit {
    background: #0055A2;
    color: white;
}

.btn-save-edit:hover {
    background: #003d75;
}

/* NOTIFICATIONS */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 10000;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-info {
    border-left: 4px solid #0055A2;
}

@media (max-width: 768px) {
    .comment-edit-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-save-edit,
    .btn-cancel-edit {
        width: 100% !important;
    }
}
