/* Payment Screenshot Upload & Verification Styles */

/* Badge Count for Pending Verification Tab */
.badge-count {
    display: inline-block;
    background: #f44336;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    min-width: 20px;
    text-align: center;
    line-height: 1.6;
}

.payments-section {
    padding: 20px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    gap: 12px;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 24px;
    color: #333;
}

.payments-grid {
    margin-bottom: 32px;
}

.payments-grid h3 {
    margin-bottom: 16px;
    color: #555;
    font-size: 18px;
}

/* Payment Cards */
.payment-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.payment-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.payment-card.overdue {
    border-left: 4px solid #f44336;
}

.payment-amount {
    font-size: 32px;
    font-weight: 600;
    color: #6200ea;
    margin-bottom: 16px;
}

.payment-info {
    margin-bottom: 16px;
}

.payment-info > div {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.payment-info strong {
    color: #333;
}

.payment-actions {
    border-top: 1px solid #eee;
    padding-top: 16px;
    margin-top: 16px;
}

.screenshot-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f1f8e9;
    border-radius: 8px;
    color: #558b2f;
}

.screenshot-status i {
    font-size: 20px;
}

/* Payment Table */
.payments-grid table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.payments-grid th {
    background: #6200ea;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 500;
}

.payments-grid td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.payments-grid tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-paid {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-pending {
    background: #fff3e0;
    color: #f57c00;
}

.status-overdue {
    background: #ffebee;
    color: #c62828;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 64px;
    color: #4caf50;
    margin-bottom: 16px;
}

/* Modal/Lightbox Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-dialog {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.lightbox .lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: white !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* Admin Verification Styles */
.verification-payments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.verification-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.verification-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.student-info h4 {
    margin: 0 0 8px 0;
    color: #333;
}

.student-info small {
    color: #666;
}

.verification-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.btn-approve {
    background: #4caf50;
    color: white;
}

.btn-approve:hover {
    background: #45a049;
}

.btn-reject {
    background: #f44336;
    color: white;
}

.btn-reject:hover {
    background: #da190b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-cards-grid,
    .verification-payments-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-dialog {
        width: 95%;
    }
    
    .payment-amount {
        font-size: 24px;
    }
}

/* Student dashboard — Payment History column widths */
.student-payment-history-table {
    table-layout: fixed;
    width: 100%;
}

.student-payment-history-table .student-pay-col-date {
    width: 9%;
    white-space: nowrap;
}

.student-payment-history-table .student-pay-col-desc {
    width: 28%;
    word-break: break-word;
}

.student-payment-history-table .student-pay-col-instr {
    width: 10%;
    white-space: nowrap;
}

.student-payment-history-table .student-pay-col-amount {
    width: 9%;
    white-space: nowrap;
}

.student-payment-history-table .student-pay-col-status {
    width: 14%;
    white-space: nowrap;
}

.student-payment-history-table .student-pay-col-paid {
    width: 10%;
    white-space: nowrap;
}

.student-payment-history-table .student-pay-col-actions {
    width: 20%;
}

#paymentContainer .user-management-tabs .tabs-list {
    flex-wrap: wrap;
}

/* Outer page-body shell only — matches Demo Sessions container, not inner tab content */
#paymentContainer > .payment-dashboard-body {
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
#paymentContainer .dashboard-header + .payment-dashboard-body {
    margin-top: 0 !important;
}
#paymentContainer > .payment-dashboard-body > .material-card-body {
    padding: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Pending Verification + Payment Plans sub-tabs */
.plans-sub-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.plans-sub-tab-btn {
    padding: 10px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #888;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.plans-sub-tab-btn .material-icons { font-size: 18px; }
.plans-sub-tab-btn.active {
    color: var(--primary-color, #f70880);
    border-bottom-color: var(--primary-color, #f70880);
}
.plans-sub-tab-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f70880, #fead8b);
    color: #fff;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

/* Admin trainer payout account details */
.pay-acct { max-width: 1100px; }
.pay-acct__loading,
.pay-acct__empty {
    text-align: center;
    padding: 48px 16px;
    color: #8a8496;
}
.pay-acct__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff8f5 0%, #ffffff 55%, #f4fbf6 100%);
    border: 1px solid rgba(247, 8, 128, 0.1);
    margin-bottom: 12px;
}
.pay-acct__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #2a2438;
}
.pay-acct__title .material-icons { color: #2e7d32; font-size: 22px; }
.pay-acct__sub { margin: 4px 0 0; font-size: 13px; color: #7a7388; }
.pay-acct__kpis { display: flex; gap: 8px; }
.pay-acct__kpi {
    min-width: 72px;
    background: #fff;
    border: 1px solid #eee8f3;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 11px;
    color: #8a8496;
    font-weight: 600;
}
.pay-acct__kpi span {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #2a2438;
    line-height: 1.15;
}
.pay-acct__kpi.is-ok span { color: #2e7d32; }
.pay-acct__kpi.is-warn span { color: #c62828; }
.pay-acct__toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.pay-acct label.pay-acct__search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
    height: 36px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #e6e1ed;
    border-radius: 10px;
    background: #fff;
    font-weight: 400;
    color: inherit;
    box-sizing: border-box;
}
.pay-acct label.pay-acct__search .material-icons {
    font-size: 18px !important;
    width: 18px;
    height: 18px;
    line-height: 18px !important;
    color: #9a93a8;
    flex-shrink: 0;
}
.pay-acct .pay-acct__search input {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    font-size: 13px;
    line-height: 20px;
    background: transparent;
    color: #2a2438;
    -webkit-appearance: none;
    appearance: none;
}
.pay-acct .pay-acct__search input::placeholder {
    color: #9a93a8;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    opacity: 1;
}
.pay-acct .pay-acct__search input::-webkit-search-decoration,
.pay-acct .pay-acct__search input::-webkit-search-cancel-button,
.pay-acct .pay-acct__search input::-webkit-search-results-button,
.pay-acct .pay-acct__search input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
}
.pay-acct__filters { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-acct__chip {
    border: 1px solid #e6e1ed;
    background: #fff;
    color: #666;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}
.pay-acct__chip.is-active {
    border-color: #c2185b;
    background: rgba(247, 8, 128, 0.08);
    color: #c2185b;
}
.pay-acct__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.pay-acct__card {
    background: #fff;
    border: 1px solid rgba(247, 8, 128, 0.12);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(30, 10, 40, 0.07);
    overflow: hidden;
}
.pay-acct__card.is-missing { border-color: #f3d2d2; }
.pay-acct__card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.pay-acct__avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(247, 8, 128, 0.14), rgba(46, 125, 50, 0.12));
    color: #c2185b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.pay-acct__who { flex: 1; min-width: 0; }
.pay-acct__name { font-size: 14px; font-weight: 700; color: #2a2438; }
.pay-acct__meta { font-size: 12px; color: #8a8496; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-acct__pref {
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 3px 8px;
}
.pay-acct__pref.is-upi { background: #e8f5e9; color: #2e7d32; }
.pay-acct__pref.is-bank { background: #e3f2fd; color: #1565c0; }
.pay-acct__pref.is-gpay { background: #e8f0fe; color: #1a73e8; }
.pay-acct__pref.is-phonepe { background: #f3e5f5; color: #6a1b9a; }
.pay-acct__pref.is-paytm { background: #e0f7fa; color: #0277bd; }
.pay-acct__status {
    font-size: 11px;
    color: #8a8496;
    text-transform: capitalize;
    margin-bottom: 10px;
}
.pay-acct__fields { display: grid; gap: 6px; }
.pay-acct__field {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}
.pay-acct__field span { color: #9a93a8; font-weight: 650; }
.pay-acct__field strong { color: #2a2438; font-weight: 600; word-break: break-all; }
.pay-acct__copy {
    border: 0;
    background: transparent;
    color: #c2185b;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
}
.pay-acct__copy .material-icons { font-size: 15px; }
.pay-acct__copy.is-copied { color: #2e7d32; }
.pay-acct__actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.pay-acct__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}
.pay-acct__btn .material-icons { font-size: 16px; }
.pay-acct__btn--edit {
    border: none;
    color: #fff;
    background: var(--primary-gradient, linear-gradient(135deg, #f70880, #fead8b));
    box-shadow: 0 4px 12px rgba(247, 8, 128, 0.25);
}
.pay-acct__btn--clear {
    border: 1px solid #ffcdd2;
    color: #c62828;
    background: #fff5f5;
}
.pay-acct-form__who {
    margin: 0;
    font-size: 13px;
    color: #7a7388;
}
@media (max-width: 640px) {
    .pay-acct__field { grid-template-columns: 80px 1fr auto; }
}

@keyframes pkgShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.pkg-approval-grid,
.pay-verify-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

.pkg-approval-card,
.pay-verify-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(247, 8, 128, 0.12);
    box-shadow: 0 10px 28px rgba(30, 10, 40, 0.07);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pkg-approval-card:hover,
.pay-verify-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(30, 10, 40, 0.12);
}

.pay-verify-loading {
    text-align: center;
    padding: 36px 20px;
    color: #999;
}
.pay-verify-loading .material-icons { font-size: 28px; }
.pay-verify-loading div { margin-top: 8px; font-size: 13px; }

.pay-verify-empty {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px 24px;
    border-radius: 18px;
    border: 1px dashed #e8dfe4;
    background: linear-gradient(180deg, #fff, #faf7f9);
}
.pay-verify-empty__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pay-verify-empty h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #1f1a24;
}
.pay-verify-empty p {
    margin: 0;
    font-size: 13px;
    color: #7a7080;
}

.pay-verify-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.pay-verify-head__title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.pay-verify-head__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f70880, #fead8b);
    color: #fff;
    box-shadow: 0 8px 18px rgba(247, 8, 128, 0.28);
}
.pay-verify-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 750;
    color: #1f1a24;
}
.pay-verify-head p {
    margin: 3px 0 0;
    font-size: 13px;
    color: #7a7080;
}
.pay-verify-head__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f70880, #fead8b);
    color: #fff;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(247, 8, 128, 0.25);
}

.pay-verify-card__hero {
    padding: 18px 18px 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(247, 8, 128, 0.08), rgba(254, 173, 139, 0.12));
}
.pay-verify-card__who {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}
.pay-verify-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f70880, #fead8b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}
.pay-verify-card__meta { min-width: 0; }
.pay-verify-card__name {
    font-weight: 700;
    font-size: 15px;
    color: #1f1a24;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pay-verify-card__email {
    font-size: 12px;
    color: #7a7080;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pay-verify-card__pending {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #b45309;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 5px 10px;
}

.pay-verify-card__stats {
    padding: 14px 18px 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.pay-verify-stat {
    padding: 12px 14px;
    border-radius: 12px;
    background: #faf7f9;
    border: 1px solid #f0e8ed;
}
.pay-verify-stat--wide { grid-column: 1 / -1; }
.pay-verify-stat__label {
    font-size: 11px;
    color: #8a7f8c;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.pay-verify-stat__value {
    font-weight: 650;
    color: #2a2230;
    font-size: 14px;
}
.pay-verify-stat__amount {
    font-weight: 800;
    font-size: 18px;
    background: linear-gradient(135deg, #f70880, #fead8b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.pay-verify-card__submitted {
    grid-column: 1 / -1;
    font-size: 12px;
    color: #7a7080;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pay-verify-card__submitted .material-icons { font-size: 15px; }
.pay-verify-card__notes {
    grid-column: 1 / -1;
    font-size: 12px;
    color: #5c5466;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #f0e8ed;
}

.pay-verify-card__shot {
    padding: 8px 18px 14px;
    flex: 1;
}
.pay-verify-card__shot img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    border-radius: 14px;
    border: 1px solid #efe6ec;
    background: #f6f2f5;
}
.pay-verify-card__no-shot {
    height: 210px;
    border-radius: 14px;
    border: 1px solid #efe6ec;
    color: #bbb;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #faf7f9;
}
.pay-verify-card__no-shot .material-icons { font-size: 32px; }
.pay-verify-card__shot-hint {
    margin-top: 8px;
    font-size: 11px;
    color: #9a8f98;
    text-align: center;
}

.pay-verify-card__actions,
.pkg-approval-card > div:last-child {
    padding: 0 18px 18px;
    display: flex;
    gap: 10px;
}
.pay-verify-card__actions .pkg-approve-btn,
.pkg-approve-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 650;
    color: #fff;
    background: linear-gradient(135deg, #2e7d32, #43a047);
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.25);
}
.pay-verify-card__actions .pkg-reject-btn,
.pkg-reject-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #ffcdd2;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 650;
    color: #c62828;
    background: #fff5f5;
}
.pkg-approve-btn .material-icons,
.pkg-reject-btn .material-icons { font-size: 18px; }
