/* Account Tabs */
#navbarNav .nav-tabs {
    border-bottom: 2px solid #ddd;
    margin-bottom: 2rem;
}

#navbarNav .nav-link {
    color: #666;
    border: none;
    padding: 0.5rem 1rem;
    margin-right: 2rem;
    font-weight: 500;
}

#navbarNav .nav-link:hover {
    color: #c41e3a;
}

#navbarNav .nav-link.active {
    color: #c41e3a;
    border-bottom: 2px solid #c41e3a;
    margin-bottom: -2px;
}

/* Transactions Tables */
.transactions-table-header {
    margin-bottom: 1rem;
}

.transaction-row {
    display: grid;
    grid-template-columns: 280px 140px 180px 220px;
    padding: 12px 24px;
    border-bottom: 1px solid #eee;
    align-items: center;
    background: #fff;
    min-width: 820px;
}

.transaction-row:last-child {
    border-bottom: none;
}

.transaction-row.header {
    font-weight: 500;
    color: #666;
    padding: 12px 24px;
    background: #f8f9fa;
    border-bottom: none;
}

/* Subscription Transactions Table */
.transactions-list {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 4px;
    overflow: hidden;
}

.transactions-table th,
.transactions-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.transactions-table th {
    background: #f8f9fa;
    font-weight: 500;
    color: #666;
}

.transactions-table tr:last-child td {
    border-bottom: none;
}



.col-id {
    font-family: monospace;
    font-size: 14px;
    color: #333;
}

.col-amount {
    font-weight: 400;
    color: #333;
}

.col-date {
    color: #333;
}

.transaction-row:not(.header) .col-status {
    color: #22c55e;
    font-weight: 400;
}

.transaction-row.header .col-status {
    color: #666;
}

.transaction-row.subscription {
    background-color: #fff;
}

.transaction-row.one_time_donation {
    background-color: #fff;
}

.subscription-status {
    font-weight: 500;
}

.status-active {
    color: #28a745;
}

.status-inactive {
    color: #dc3545;
}

/* Subscription Item */
.subscription-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.subscription-amount {
    font-size: 24px;
    font-weight: 500;
    color: #333;
}

.subscription-meta {
    text-align: right;
}

.subscription-date {
    color: #bd1f23;
    margin-bottom: 4px;
    font-weight: bold;
}

.subscription-status {
    color: #22c55e;
    font-weight: bold;
}

.subscription-card-info {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 4px;
}

.card-label {
    color: #666;
    margin-bottom: 4px;
}

.card-number {
    color: #333;
    font-weight: 500;
}

.subscription-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.subscription-actions button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.subscription-actions button:hover {
    background: #f8f9fa;
}

.btn-cancel {
    color: #dc2626 !important;
    border-color: #dc2626 !important;
}

.btn-cancel:hover {
    background: #fef2f2 !important;
}

.subscription-transactions {
    border-top: 1px solid #eee;
    padding-top: 24px;
}

.btn-toggle-transactions {
    width: 100%;
    text-align: left;
    padding: 12px;
    background: none;
    border: none;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-toggle-transactions:hover {
    background: #f8f9fa;
}

.toggle-icon {
    font-size: 12px;
    transition: transform 0.2s;
}

.btn-toggle-transactions[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* Loading and Messages */
#loader-subscription {
    text-align: center;
    padding: 2rem;
}

.no-transactions {
    text-align: center;
    padding: 2rem;
    color: #666;
}

#result-message {
    margin-bottom: 1rem;
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    #navbarNav .nav-link {
        margin-right: 1rem;
        padding: 0.5rem;
    }
    
    .subscription-item,
    .transaction-item {
        padding: 1rem;
    }
}
