* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    min-height: 100vh;
}

.feed-container {
    display: flex;
    justify-content: center;
    /*min-height: 100vh;*/
    padding: 20px;
}

.feedback-sidebar {
    width: 800px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: relative;
    height: 350px;
    overflow:hidden;
}

.feedback-header {
    text-align: center;
    margin-bottom: 20px;
}

.feedback-header h2 {
    color: #333;
    font-size: 1.5rem;
}

.feedback-container {
    height: 400px;
    overflow: hidden;
    margin-bottom: 20px;
}

.feedback-card {
    background: #fff;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease-in;
}

.feedback-card .feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    text-align: left;
}

.feedback-card .type {
    background-color: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    color: #495057;
}

.feedback-card .message {
    margin-bottom: 10px;
    color: #212529;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feedback-card .message.expanded {
    -webkit-line-clamp: unset;
}

.read-more {
    color: #007bff;
    cursor: pointer;
    font-size: 0.9em;
    display: inline-block;
    margin-top: 5px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
    text-decoration: underline;
}

.feedback-card .reply {
    background-color: #f8f9fa;
    padding: 10px;
    border-left: 3px solid #007bff;
    margin: 10px 0;
}

.feedback-card .date {
    color: #6c757d;
    font-size: 0.8em;
    margin-top: 10px;
}

.view-all-button-container {
    text-align: center;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
}

#viewAllBtn {
    padding: 8px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

#viewAllBtn:hover {
    background-color: #0056b3;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 150;
}

.modal-content {
    background-color: white;
    margin: 100px auto;
    padding: 20px;
    width: 90vw;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

.modal-feedback-container {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-feedback-container::-webkit-scrollbar {
    width: 8px;
}

.modal-feedback-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-feedback-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-feedback-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 480px) {
    .feedback-sidebar {
        width: 100%;
        margin: 10px;
    }
}
