* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: #000000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.back-arrow {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    color: #000000;
    text-decoration: none;
    font-size: 25px;
    font-weight: 600;
}

.back-arrow i {
    margin-right: 10px;
}

h1 {
    color: #111827;
    margin-bottom: 32px;
    font-size: 28px;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.transactions-table th,
.transactions-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.transactions-table th {
    background-color: #F9FAFB;
    color: #0455c8;
    font-weight: 600;
}

.transactions-table tr:hover {
    background-color: #cbcbcb;
}


.action-buttons {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-approve {
    background-color: #059669;
    color: white;
}

.btn-reject {
    background-color: #DC2626;
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
        margin: -15px;
        width: 400px;
    }

    .transactions-table {
        width: 100%;
    }

    .transactions-table thead {
        display: none; /* Hide table headers on mobile */
    }

    .transactions-table, 
    .transactions-table tbody, 
    .transactions-table tr, 
    .transactions-table td {
        display: block;
        width: 100%;
    }

    .transactions-table tr {
        margin-bottom: 20px;
        background: #ff00cc;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .transactions-table td {
        padding: 8px 15px;
        text-align: left;
        border-bottom: none;
        position: relative;
        padding-left: 40%;
    }

    .transactions-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 35%;
        font-weight: 600;
        color: #000000;
    }

    .action-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding-left: 0 !important;
        margin-top: 10px;
    }

    .btn {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }

    /* Modify the loadPendingTransactions function to add data-labels */
    .transaction-info {
        margin-bottom: 5px;
        font-size: 14px;
    }
}

.transaction-list {
    list-style: none;
    padding: 0;
}

.transaction-item {
    background: #ffffff;
    border: 1px solid #0444c4;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.transaction-header {
    padding: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #b7b7b7;
}

.transaction-header:hover {
    background: #999999;
}

.transaction-header span {
    color: #006810;
    font-weight: 600;
    font-size: 18px;
}


.transaction-details {
    padding: 16px;
    display: none;
}

.transaction-details.active {
    display: block;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 20px;
    display: flex;
    flex-direction: row; /* Changed from column to row */
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #6513e859;
}

.detail-label {
    color: #000000;
    font-weight: 600;
}

.detail-value {
    color: #040db6;
}

@media (max-width: 768px) {
    .transaction-header {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 4px;
        
    }
}

@media (max-width: 768px) {
    .detail-row {
        display: flex;
        flex-direction: row; /* Changed from column to row */
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
        border-bottom: 1px solid #1317e859;
    }

    .detail-label {
        flex: 0 0 40%; /* Takes 40% of the space */
        font-size: 18px;
    }

    .detail-value {
        flex: 0 0 60%; /* Takes 60% of the space */
        text-align: right;
        font-size: 18px;
        font-weight: 600;
        word-break: break-all; /* Handles long values like wallet addresses */
    
    }

    .transaction-header {
        padding: 22px;
        display: flex;
        flex-direction: row; /* Keep header items in row */
        justify-content: space-between;
        align-items: center;
        background: #f8f9fa;
        border-bottom: 2px solid #e5e7eb;
    }

    .action-buttons {
        margin-top: 20px;
        border-top: 2px solid #e5e7eb;
        padding-top: 15px;
    }
}