/* ====================================
   MODAL VERBS — ivEng
==================================== */

.modal-verbs-table-wrapper {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow-x: auto;
}

.modal-verbs-table {
    min-width: 720px;
    font-size: 15px;
}

.modal-verbs-table thead th {
    background: #f0fdf4;
    color: #166534;
    font-weight: 700;
    padding: 16px;
    white-space: nowrap;
    border-bottom: 2px solid #bbf7d0;
}

.modal-verbs-table tbody td {
    padding: 16px;
    vertical-align: middle;
    border-color: #edf2f0;
}

.modal-verbs-table tbody tr:hover td {
    background: #f8fdf9;
}

.modal-verb-name {
    color: #16a34a;
    font-size: 16px;
    white-space: nowrap;
}

.modal-example {
    color: #1e293b;
    font-weight: 500;
}

.modal-verbs-note {
    background: #f8fafc;
    border-left: 3px solid #22c55e;
    padding: 18px 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
}

.modal-level-tabs .btn {
    font-weight: 600;
    transition: all 0.2s ease;
}

@media (max-width: 767.98px) {
    .modal-verbs-table {
        font-size: 14px;
    }

    .modal-verbs-table tbody td,
    .modal-verbs-table thead th {
        padding: 12px;
    }

    .modal-level-tabs .btn {
        padding: 8px 14px !important;
        font-size: 13px;
    }
}

/* =====================================
   MODAL VERBS ACCORDION
===================================== */

.modal-rule-content {
    padding: 24px;
    background: #f8fdf9;
    border-left: 3px solid #22c55e;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.75;
    color: #334155;
}

.modal-rule-content h3 {
    color: #166534;
}

.modal-rule-formula {
    display: inline-block;
    padding: 10px 15px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    font-weight: 500;
}

.modal-rule-note {
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
}

.modal-rule-btn {
    white-space: nowrap;
    border-radius: 20px;
    font-size: 13px;
}

.modal-rule-btn .bi-chevron-down {
    display: inline-block;
    transition: transform 0.2s ease;
}

.modal-rule-btn[aria-expanded="true"] {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.modal-rule-btn[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.modal-rule-row:hover td {
    background: transparent !important;
}

@media (max-width: 767.98px) {
    .modal-rule-content {
        padding: 16px;
    }

    .modal-rule-btn {
        font-size: 12px;
    }
}

/* ===================================
   MODAL VERBS — MOBILE CARDS
=================================== */

.modal-verb-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
}

.modal-verb-level {
    font-size: 11px;
    font-weight: 600;
    color: #15803d;
    background: #f0fdf4;
    padding: 5px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

.modal-verb-meaning {
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

.modal-verb-example {
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px;
    font-size: 14px;
    line-height: 1.6;
}

.modal-verb-expand-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border: none;
    background: transparent;
    color: #15803d;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    padding: 10px 0 0;
    cursor: pointer;
}

.modal-verb-expand-btn i {
    transition: transform .2s ease;
}

.modal-verb-expand-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.modal-verb-mobile-rule {
    border-top: 1px solid #e5e7eb;
    margin-top: 14px;
    padding-top: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
}

/* Узкие телефоны */
@media (max-width: 375px) {
    .modal-verb-card {
        padding: 14px;
    }

    .modal-verb-example {
        padding: 12px;
    }
}