body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}

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

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

select, input[type="text"], input[type="number"], textarea {
    padding: 8px;
    margin: 5px 0;
    width: 100%;
    max-width: 250px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    padding: 8px 16px;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    margin: 5px 0;
}

button:hover {
    background-color: #0056b3;
}

.school-details {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
}

.details-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
}

.detail-box {
    flex: 1;
    min-width: 320px;
    max-width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    box-sizing: border-box;
}

/* ফিডব্যাক বক্স */
.feedback-box {
    flex: 3;
    max-width: 750px;
    max-height: 300px;
    overflow-y: auto;
}

.feedback-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    table-layout: fixed;
}

.feedback-table th, .feedback-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 12px;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 0;
}

.feedback-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1;
}

.feedback-table tr:hover {
    background-color: #f9f9f9;
    cursor: pointer;
}

/* ফিডব্যাক কলাম প্রস্থ */
.feedback-table th:nth-child(1), .feedback-table td:nth-child(1) { width: 5%; }
.feedback-table th:nth-child(2), .feedback-table td:nth-child(2) { width: 20%; }
.feedback-table th:nth-child(3), .feedback-table td:nth-child(3) { width: 15%; }
.feedback-table th:nth-child(4), .feedback-table td:nth-child(4) { width: 15%; }
.feedback-table th:nth-child(5), .feedback-table td:nth-child(5) { width: 15%; }
.feedback-table th:nth-child(6), .feedback-table td:nth-child(6) { width: 20%; }
.feedback-table th:nth-child(7), .feedback-table td:nth-child(7) { width: 10%; }

/* পপআপ স্টাইল */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    position: relative;
}

/* ফিডব্যাক পপআপের জন্য অতিরিক্ত স্টাইল */
.feedback-popup .popup-content {
    max-height: 80vh;
    overflow-y: auto;
}

/* ম্যাপ পপআপ স্টাইল */
.map-popup .popup-content {
    max-width: 600px;
    width: 90%;
}

/* ফটো পপআপ স্টাইল */
.photo-popup {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.photo-popup .popup-content {
    background: none;
    padding: 0;
    box-shadow: none;
}

/* ভিজিটর ফটো স্টাইল */
.visitor-photo {
    transition: transform 0.2s;
}

.visitor-photo:hover {
    transform: scale(1.1);
}

/* পার্টনার আইটেম স্টাইল */
.partner-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.partner-item span {
    flex-grow: 1;
}

.partner-item span.bold-text {
    font-weight: bold;
}

/* টিচার আইটেম স্টাইল */
.teacher-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.teacher-item span {
    flex-grow: 1;
}

.teacher-item span.bold-text {
    font-weight: bold;
}

/* টিচার বক্স স্টাইল */
.teacher-box {
    position: relative;
}

#addTeacherBtn {
    background-color: #007bff;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
}

#addTeacherBtn:hover {
    background-color: #0056b3;
}

.teacher-form {
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.teacher-form select,
.teacher-form input,
.teacher-form textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* এডিট ও ডিলিট বাটন স্টাইল */
.edit-btn, .delete-btn {
    padding: 6px 12px;
    font-size: 16px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.2s;
    margin-left: 8px;
}

.edit-btn {
    background-color: #28a745;
}

.edit-btn:hover {
    background-color: #218838;
    transform: scale(1.1);
}

.delete-btn {
    background-color: #dc3545;
}

.delete-btn:hover {
    background-color: #c82333;
    transform: scale(1.1);
}

.edit-btn i, .delete-btn i {
    color: white;
}

/* ভিজিটর আইটেম স্টাইল */
.visitor-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.visitor-item span {
    flex-grow: 1;
}

/* টোটাল অ্যানালিটিক্স */
#totalAnalysis {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
}

#totalAnalysis canvas {
    max-width: 50%;
    height: auto;
}

.select-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.select-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.select-wrapper select {
    width: 180px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#clearSelection {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
    white-space: nowrap;
}

#clearSelection:hover {
    background-color: #c9302c;
}

#schoolList {
    display: block;
    margin-top: 20px;
}

.school-item {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 18px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid #007bff;
    padding-left: 10px;
}

.school-item:hover {
    transform: scale(1.05);
    background: #e9ecef;
}

.status-pending {
    color: #ffa500;
}

.status-complete {
    color: #008000;
}

.status-reschedule {
    color: #ff0000;
}

.status-text {
    font-weight: bold;
}

.star-rating {
    margin: 10px 0;
    font-size: 24px;
    direction: ltr;
}

.star {
    color: #ccc;
    cursor: pointer;
    display: inline-block;
    transition: color 0.2s;
}

.star:hover {
    color: #ffd700;
}

.details-container img {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 5px 0;
}

/* রেসপন্সিভ ডিজাইন */
@media screen and (max-width: 800px) {
    .select-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .select-wrapper select, #clearSelection {
        width: 100%;
    }

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

    .detail-box {
        min-width: 100%;
    }

    .feedback-box {
        max-width: 100%;
    }

    #totalAnalysis canvas {
        max-width: 100%;
    }
}