/* DmApp Payments & Transactions Styles */

.payments-hub-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payments-hub-modal.active {
    opacity: 1;
}

.payments-hub-container {
    width: 90vw;
    max-width: 600px;
    max-height: 90vh;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0FFF0 50%, #FFFFFF 100%);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 255, 0, 0.3);
    animation: slideUpScale 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideUpScale {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.payments-hub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1), rgba(0, 255, 0, 0.05));
    border-bottom: 2px solid rgba(0, 255, 0, 0.3);
}

.payments-hub-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

.payments-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.3);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #FF0000;
}

.payments-close-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.payments-hub-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.payments-hub-body::-webkit-scrollbar {
    width: 8px;
}

.payments-hub-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00FF00, #00CC00);
    border-radius: 10px;
}

/* Wallet Balance Card */
.wallet-balance-card {
    background: linear-gradient(135deg, #00FF00, #00CC00);
    border-radius: 15px;
    padding: 25px;
    color: white;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
}

.balance-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
}

.balance-actions {
    display: flex;
    gap: 12px;
}

.balance-action-btn {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.balance-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Quick Actions */
.payment-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.quick-action-card {
    background: white;
    border: 2px solid rgba(0, 255, 0, 0.2);
    border-radius: 12px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-action-card:hover {
    border-color: #00FF00;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 0, 0.2);
}

.action-icon {
    font-size: 32px;
}

.action-title {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: #333;
}

/* Transactions Section */
.transactions-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgba(0, 255, 0, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.section-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.view-all-btn {
    padding: 6px 16px;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #00AA00;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: rgba(0, 255, 0, 0.2);
}

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

.transaction-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    background: rgba(0, 255, 0, 0.05);
}

.transaction-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 0, 0.1);
    border-radius: 50%;
}

.transaction-details {
    flex: 1;
}

.transaction-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.transaction-date {
    font-size: 12px;
    color: #666;
}

.transaction-amount {
    font-weight: bold;
    font-size: 16px;
}

.transaction-amount.received {
    color: #00AA00;
}

.transaction-amount.sent,
.transaction-amount.bill {
    color: #FF5500;
}

.no-transactions {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Payment Modal */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-modal.active {
    opacity: 1;
}

.payment-modal-container {
    width: 90vw;
    max-width: 500px;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUpScale 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.payment-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1), rgba(0, 255, 0, 0.05));
    border-bottom: 2px solid rgba(0, 255, 0, 0.2);
}

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

.payment-modal-header button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.3);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #FF0000;
}

.payment-modal-header button:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: rotate(90deg);
}

.payment-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

.payment-input,
.payment-textarea,
.payment-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.payment-input:focus,
.payment-textarea:focus,
.payment-select:focus {
    outline: none;
    border-color: #00FF00;
    box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.1);
}

.payment-textarea {
    min-height: 80px;
    resize: vertical;
}

.amount-input-group {
    position: relative;
}

.amount-input-group .currency {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 18px;
    color: #00AA00;
}

.amount-input-group .payment-input {
    padding-left: 35px;
}

.balance-info {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(0, 255, 0, 0.05);
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.balance-value {
    font-weight: bold;
    color: #00AA00;
}

.payment-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00FF00, #00CC00);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.4);
}

/* Quick Amounts */
.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.quick-amount-btn {
    padding: 12px;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-amount-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    transform: scale(1.05);
}

/* Bill Categories */
.bill-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.bill-category-btn {
    padding: 15px 10px;
    background: rgba(0, 255, 0, 0.05);
    border: 2px solid rgba(0, 255, 0, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bill-category-btn:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: #00FF00;
    transform: translateY(-2px);
}

.bill-category-btn span:first-child {
    font-size: 28px;
}

.bill-category-btn span:last-child {
    font-size: 12px;
    font-weight: 600;
}

/* Split Payment */
.split-friends-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.split-friend-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.split-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.split-friend-item label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.split-friend-item label:hover {
    background: rgba(0, 255, 0, 0.05);
}

.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #00FF00;
}

.split-summary {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1), rgba(0, 255, 0, 0.05));
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.split-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.split-summary-item.highlight {
    font-size: 18px;
    font-weight: bold;
    color: #00AA00;
    border-top: 2px solid rgba(0, 255, 0, 0.3);
    padding-top: 15px;
    margin-top: 10px;
}

/* Cards */
.cards-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.card-item {
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 15px;
    color: white;
    position: relative;
}

.card-item.default {
    border: 2px solid #00FF00;
}

.card-type {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.8;
}

.card-number {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.card-holder {
    font-size: 14px;
    margin-bottom: 5px;
}

.card-expiry {
    font-size: 12px;
    opacity: 0.8;
}

.default-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    background: #00FF00;
    color: #000;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

/* Notification */
.payment-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10002;
    animation: slideInRight 0.4s ease-out;
    font-weight: 600;
}

.payment-notification.success {
    background: linear-gradient(135deg, #E6FFE6, #CCFFCC);
    border-left: 5px solid #00FF00;
}

.payment-notification.info {
    background: linear-gradient(135deg, #E6F3FF, #CCE6FF);
    border-left: 5px solid #0088FF;
}

.payment-notification.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bill-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .balance-amount {
        font-size: 36px;
    }
    
    .payment-quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .quick-action-card {
        padding: 15px 8px;
    }
    
    .action-icon {
        font-size: 28px;
    }
    
    .action-title {
        font-size: 11px;
    }
}
