.feedback-details-row {
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.feedback-details-row.hide {
    display: none;
}

.feedback-details-row.show {
    display: table-row;
}

.feedback-details {
    padding: 15px;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.teacher-feedback-filters {
    background-color: #f8ffff;
}

.teacher-feedback-table-container .table {
    vertical-align: middle;
}

.teacher-feedback-table-container .table th {
    background-color: #f1f8ff;
}

.pagination-container {
    margin-top: 20px;
}

.showing-info {
    color: #6c757d;
}

#teacher-details-modal .modal-header {
    border-bottom-width: 3px;
}

#teacher-details-modal .modal-body {
    padding: 20px;
}

.rating-card {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#voice-recorder-modal .modal-body {
    padding: 30px;
}

#recorder-timer {
    font-family: monospace;
    font-size: 48px;
    font-weight: bold;
    color: #333;
}

#recorder-controls button {
    width: 60px;
    height: 60px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#recorder-controls button i {
    font-size: 24px;
}

audio {
    margin-top: 10px;
}

#followup-modal .modal-fullscreen {
    max-width: 100%;
    height: 100vh;
    margin: 0;
}

#followup-modal .modal-fullscreen .modal-content {
    height: 100vh;
    border-radius: 0;
}

#followup-modal .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

#followup-form .form-check {
    margin-bottom: 0.5rem;
}

#followup-form .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

#followup-modal .select2-container {
    width: 100% !important;
}

#followup-modal .select2-container .select2-selection--multiple {
    min-height: 38px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

#followup-modal .select2-container .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

#followup-modal .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-right: 12px;
}

#followup-record-btn {
    transition: all 0.3s ease;
}

#followup-record-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
}

#previous-followups-container {
    background-color: #f8f9fa;
}

.badge {
    font-size: 0.75em;
}

#followup-form .form-control,
#followup-form .form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#followup-form .form-control:focus,
#followup-form .form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#followup-form button[type="submit"] {
    font-weight: 600;
    transition: all 0.3s ease;
}

#followup-form button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}

/* Responsive برای موبایل */
@media (max-width: 768px) {
    #followup-modal .row>div {
        margin-bottom: 1rem;
    }

    #followup-modal .modal-body {
        padding: 1rem;
    }

    #previous-followups-container {
        max-height: 400px;
    }

    #followup-modal .mobile-text {
        text-align: right !important;
        padding: 0 0.3rem !important;
    }

    #followup-modal .mobile-text span {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    #followup-modal .form-container {
        padding: 0.5rem !important;
    }
    #followup-modal .mobile-text-card span,
    #followup-modal span.mobile-text-card {
        font-size: 12px !important;
    }
    #followup-modal strong.mobile-text-card,
    #followup-modall .mobile-text-card small {
        font-size: 10px !important;
        display: block !important;
    }
}

.loading-animation {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* اضافه کردن به فایل CSS */
.status-dropdown-mobile .dropdown-menu {
    display: none;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 1000 !important;
    min-width: 100% !important;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .175);
}

.status-dropdown-mobile .dropdown-menu.show {
    display: block !important;
}

.status-dropdown-mobile .dropdown {
    position: relative !important;
}

@media (max-width: 767.98px) {
    .dropdown-menu {
        width: 100% !important;
        position: absolute !important;
        transform: none !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        margin-top: 0.125rem;
        z-index: 1000;
    }

    .dropdown-toggle::after {
        margin-right: auto;
    }
}

@media (max-width: 767.98px) {
    .tooltip {
        font-size: 0.875rem;
    }

    .tooltip-inner {
        max-width: 250px;
        text-align: right;
        direction: rtl;
    }

    .btn[data-bs-toggle="collapse"] i.fa-chevron-down {
        transition: transform 0.3s ease;
    }

    .btn[data-bs-toggle="collapse"][aria-expanded="true"] i.fa-chevron-down {
        transform: rotate(180deg);
    }
}

@media (max-width: 767.98px) {
    .teacher-feedback-filters {
        position: relative;
        z-index: 10;
    }

    #mobile-filters-collapse {
        position: relative;
        display: none;
        width: 100%;
        border: 1px solid #dee2e6;
        border-radius: 0.375rem;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
        margin-top: 0.5rem;
        overflow: hidden;
    }

    .teacher-feedback-table-container {
        position: relative;
        z-index: 1;
    }

    .teacher-feedback-table-container .card {
        border: none;
    }

    .teacher-feedback-table-container .card-body {
        padding: 0;
        border: none;
    }

    .mobile-filters-content {
        border-radius: 0.375rem;
        margin-top: 0.75rem;
        position: relative;
        z-index: 100;
    }

    .mobile-filters-content form {
        padding: 1rem;
    }

    .teacher-feedback-table-container,
    .status-dropdown-mobile {
        position: relative;
        z-index: 1;
        clear: both;
    }

    .teacher-feedback-filters.filters-open {
        margin-bottom: 2rem;
    }

    .teacher-details-table .d-none-mobile {
        display: none !important;
    }

    .teacher-details-table .mobile-student-info {
        min-width: 180px;
    }

    .teacher-details-table .mobile-status-col {
        min-width: 120px;
    }

    .teacher-details-table .mobile-actions-col {
        min-width: 80px;
    }

    #teacher-details-modal .modal-body {
        padding: 0;
    }

    #followup-modal .modal-body {
        padding: 10px;
    }
}