/* 
 * MedCoins Page Styles 
 * Modern, premium, MNC-style aesthetics
 */

.medcoins-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 5%;
    /* Offset for fixed header */
    min-height: 80vh;
    font-family: 'Outfit', sans-serif;
}

.medcoins-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50vh;
    color: #666;
    font-size: 1.1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(19, 124, 127, 0.2);
    border-top-color: #137C7F;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.mc-header-section {
    margin-bottom: 30px;
}

.mc-header-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #013A70;
    margin-bottom: 8px;
}

.mc-header-section p {
    font-size: 0.95rem;
    color: #64748b;
}

.mc-top-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 30px;
    align-items: stretch;
}

.mc-recharge-card, .mc-withdrawal-card {
    min-width: 280px;
}

/* Balance Card */
.mc-balance-card {
    position: relative;
    border-radius: 16px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 24.8083px 1.90833px 57.25px -1.90833px rgba(106, 50, 237, 0.1);
    flex: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    z-index: 1; /* For stacking over body if needed */
}

.mc-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(96.07% 101.33% at 3.93% 70.38%, #41FFD6 10.42%, #02DAEA 55.91%, #458FF5 100%), #FFFFFF;
    opacity: 0.4;
    filter: blur(100px);
    border-radius: 10px;
    z-index: -1;
    pointer-events: none;
}

.mc-card-bg-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mc-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.mc-card-label-wrap {
    display: flex;
    flex-direction: column;
}

.mc-card-label {
    font-family: 'Public Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #15989C;
    opacity: 0.8;
    margin-bottom: 8px;
}

.mc-card-divider {
    width: 32px;
    height: 3px;
    background: #15989C;
    box-shadow: 0px 0px 8px rgba(137, 245, 231, 0.8);
    border-radius: 2px;
}

.mc-card-orb {
    display: none;
}

.mc-card-amount {
    margin-top: auto;
    margin-bottom: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

#display-balance {
    font-family: 'Public Sans', sans-serif;
    font-weight: 700;
    font-size: 56px;
    line-height: 56px;
    color: #000000;
}

.mc-currency-label {
    font-family: 'Public Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: #008C90;
}

.mc-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(131, 222, 238, 0.45);
    margin-top: 20px;
}

.mc-card-footer span {
    font-family: 'Public Sans', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 16px;
    color: rgba(0, 0, 0, 0.6);
}

.mc-card-footer svg {
    width: 13px;
    height: 13px;
    opacity: 0.8;
}

/* Recharge Card */
.mc-recharge-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mc-recharge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mc-recharge-header h3 {
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 600;
}

.mc-recharge-icon {
    width: 36px;
    height: 36px;
    background: #f0fdfa;
    color: #0f766e;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.mc-recharge-card p {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.mc-quick-amounts {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.mc-quick-btn {
    flex: 1;
    padding: 6px 0;
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 20px;
    color: #0f766e;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.75rem;
}

/* Withdrawal Card */
.mc-withdrawal-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mc-withdrawal-card p {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.mc-withdrawable-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
}

.mc-withdrawable-info span {
    font-size: 0.9rem;
    color: #475569;
}

.mc-withdrawable-info strong {
    font-size: 1.1rem;
    color: #0f172a;
    font-family: 'Public Sans', sans-serif;
}

.mc-quick-btn:hover {
    background: #ccfbf1;
    border-color: #99f6e4;
}

.mc-input-group {
    position: relative;
    margin-bottom: 12px;
}

.mc-input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    transition: border-color 0.2s;
    outline: none;
    font-family: inherit;
    text-align: center;
}

.mc-input-group input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.mc-input-group input:focus {
    border-color: #137C7F;
    box-shadow: 0 0 0 3px rgba(19, 124, 127, 0.1);
}

.mc-error-text {
    display: block;
    color: #ef4444;
    font-size: 0.75rem;
    margin-bottom: auto;
    min-height: 16px;
}

.mc-primary-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #15989C, #137C7F);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    box-shadow: 0 2px 4px rgba(19, 124, 127, 0.1);
}

.mc-primary-btn:hover {
    background: linear-gradient(135deg, #137C7F, #0f6466);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(19, 124, 127, 0.25);
}

.mc-primary-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Transaction History Section */
.mc-transactions-section {
    margin-bottom: 30px;
}

.mc-transactions-panel {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    border-top: 4px solid #1b75bc;
}

.mc-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.mc-panel-header h3 {
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 600;
}

.mc-search-box {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 12px;
    width: 280px;
}

.mc-search-box input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    padding: 0 8px;
    font-family: inherit;
    font-size: 0.85rem;
}

.mc-search-box i {
    color: #94a3b8;
    font-size: 0.85rem;
}

.mc-search-box .filter-icon {
    color: #1b75bc;
    cursor: pointer;
}

.mc-transactions-table-container {
    overflow-x: auto;
    /* Custom scrollbar for table container */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.mc-transactions-table-container::-webkit-scrollbar {
    height: 6px;
}
.mc-transactions-table-container::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}
.mc-transactions-table-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.mc-transactions-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Reduced min-width to better fit tablets */
    border: 1px solid #e2e8f0;
}

.mc-transactions-table th, .mc-transactions-table td {
    border: 1px solid #e2e8f0;
}

.mc-transactions-table th {
    text-align: left;
    padding: 12px 10px;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #f8fafc;
}

.mc-transactions-table td {
    padding: 15px 10px;
    vertical-align: middle;
}

.mc-tx-activity {
    display: flex;
    align-items: center;
}

.mc-tx-icon-table {
    width: 36px;
    height: 36px;
    background: #f0fdfa;
    color: #0d9488;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1rem;
}

.mc-tx-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 600;
}

.mc-tx-info p {
    margin: 2px 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.mc-tx-date {
    color: #334155;
    font-size: 0.85rem;
}

.mc-tx-time {
    display: block;
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 2px;
}

.mc-tx-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: #f1f5f9;
    color: #475569;
}

.mc-tx-type.credit {
    color: #059669;
    background: #ecfdf5;
}

.mc-tx-type.debit {
    color: #dc2626;
    background: #fef2f2;
}

.mc-tx-amount {
    font-weight: 600;
    font-size: 1rem;
}

.mc-tx-amount.debit {
    color: #ef4444;
}

.mc-tx-amount.credit {
    color: #10b981;
}

.mc-tx-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mc-tx-status-badge.completed {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
}

.mc-tx-status-badge.completed::before {
    content: '•';
    font-size: 1rem;
    line-height: 1;
}

.mc-empty-state {
    text-align: center;
    padding: 30px 20px;
    color: #64748b;
    font-size: 0.9rem;
}

/* FAQ Section */
.mc-faq-section {
    margin-bottom: 40px;
}

.mc-faq-section h2 {
    font-size: 1.4rem;
    color: #0f172a;
    margin-bottom: 20px;
    font-weight: 600;
}

.mc-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mc-faq-item {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.mc-faq-item.active {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.mc-faq-question {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
}

.mc-faq-question i {
    color: #64748b;
    font-size: 0.85rem;
    transition: transform 0.2s;
}

.mc-faq-answer {
    padding: 0 20px 16px;
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.6;
    display: none;
}

.mc-faq-item.active .mc-faq-question i {
    color: #1b75bc;
}

/* Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .mc-top-cards {
        flex-direction: column;
    }
    
    .mc-balance-card,
    .mc-recharge-card {
        flex: auto;
    }
    
    .mc-panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .mc-search-box {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .medcoins-container {
        padding: 90px 5% 40px;
    }

    .mc-header-section h1 {
        font-size: 1.6rem;
    }

    #display-balance {
        font-size: 2.5rem;
    }
    
    .mc-card-orb {
        width: 40px;
        height: 40px;
    }

    .mc-balance-card,
    .mc-recharge-card,
    .mc-transactions-panel {
        padding: 16px;
    }

    .mc-search-box {
        max-width: none;
    }
    
    .mc-transactions-table {
        min-width: 500px;
    }
}

/* Payout Methods UI */
.mc-payout-methods {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.mc-payout-method {
    flex: 1;
    cursor: pointer;
    position: relative;
}

.mc-payout-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.mc-method-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.2s ease;
    color: #64748b;
}

.mc-method-content i {
    font-size: 1.5rem;
}

.mc-method-content span {
    font-size: 0.85rem;
    font-weight: 600;
}

.mc-payout-method input[type="radio"]:checked ~ .mc-method-content {
    border-color: #137C7F;
    background: rgba(19, 124, 127, 0.05);
    color: #137C7F;
    box-shadow: 0 4px 12px rgba(19, 124, 127, 0.1);
}

.mc-payout-method input[type="radio"]:hover ~ .mc-method-content {
    border-color: #15989C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mc-payout-method input[type="radio"]:checked:hover ~ .mc-method-content {
    border-color: #137C7F;
}

.mc-secondary-btn {
    width: 100%;
    padding: 12px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mc-secondary-btn:hover {
    background: white;
    color: #137C7F;
    border-color: #137C7F;
    box-shadow: 0 4px 12px rgba(19, 124, 127, 0.08);
}