/* Main Wallet Styles */
.wallet-system-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.wallet-card {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.wallet-card:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(30deg);
}

.wallet-card-inner {
    position: relative;
    z-index: 1;
}

.wallet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wallet-card h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.wallet-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: #6e8efb;
    font-weight: bold;
    font-size: 18px;
}

.wallet-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 25px 0;
    text-align: center;
}

.wallet-tabs {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.wallet-tab-nav {
    display: flex;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
    flex-wrap: wrap;
}

.wallet-tab-link {
    padding: 15px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    justify-content: center;
    text-align: center;
}

.wallet-tab-link svg {
    width: 16px;
    height: 16px;
}

.wallet-tab-link:hover {
    color: #6e8efb;
    background: rgba(110, 142, 251, 0.1);
}

.wallet-tab-link.active {
    color: #6e8efb;
    background: white;
}

.wallet-tab-link.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #6e8efb;
}

.wallet-tab {
    padding: 25px;
}

.wallet-tab-header {
    margin-bottom: 25px;
    text-align: center;
}

.wallet-tab-header h3 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    color: #333;
}

.wallet-tab-header p {
    margin: 0;
    color: #666;
}

.wallet-form {
    max-width: 500px;
    margin: 0 auto;
}

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

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

.form-group input[type="number"],
.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input[type="number"]:focus,
.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #6e8efb;
    box-shadow: 0 0 0 3px rgba(110, 142, 251, 0.2);
    outline: none;
}

.form-group textarea {
    min-height: 40px;
    resize: vertical;
}

.payment-method-note {
    margin: 15px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    border-left: 4px solid #6e8efb;
}

.payment-method-note .note-content {
    color: #333;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.wallet-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.wallet-btn-primary {
    background: #6e8efb;
    color: white;
}

.wallet-btn-primary:hover {
    background: #5a7df9;
    transform: translateY(-2px);
}

.wallet-btn svg {
    width: 18px;
    height: 18px;
}

.wallet-history-container {
    overflow-x: auto;
    margin-top: 20px;
}

.wallet-history-responsive {
    min-width: 100%;
    width: max-content;
}

.wallet-history {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.wallet-history th {
    background: #f5f5f5;
    padding: 10px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #eee;
}

.wallet-history td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
}

.wallet-history tr.add {
    background-color: rgba(40,167,69,0.05);
}

.wallet-history tr.deduct {
    background-color: rgba(220,53,69,0.05);
}

.wallet-history tr:hover {
    background-color: #f9f9f9;
}

.wallet-pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0 20px;
    gap: 5px;
    flex-wrap: wrap;
}

.wallet-page-link {
    padding: 10px 15px;
    border: 1px solid #ddd;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
}

.wallet-page-link:hover {
    background: #f5f5f5;
    color: #6e8efb;
    border-color: #6e8efb;
}

.wallet-page-link.active {
    background: #6e8efb;
    color: white;
    border-color: #6e8efb;
}

.wallet-page-dots {
    padding: 10px 5px;
}

.wallet-page-info {
    color: #666;
    font-style: italic;
    margin-top: 10px;
    text-align: center;
}

.wallet-status-pending {
    color: #ffc107;
    font-weight: 600;
}

.wallet-status-hold {
    color: #fd7e14;
    font-weight: 600;
}

.wallet-status-approved {
    color: #28a745;
    font-weight: 600;
}

.wallet-status-rejected {
    color: #dc3545;
    font-weight: 600;
}

.wallet-status-completed {
    color: #17a2b8;
    font-weight: 600;
}

.wallet-disabled-notice {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    border-left: 4px solid #dc3545;
}

.wallet-notice {
    background: #d1ecf1;
    color: #0c5460;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    border-left: 4px solid #17a2b8;
}

.wallet-alert {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.wallet-empty-state {
    text-align: center;
    padding: 40px 20px;
}

.wallet-empty-state svg {
    color: #6e8efb;
    margin-bottom: 15px;
}

.wallet-empty-state h4 {
    margin: 0 0 10px;
    color: #333;
}

.wallet-empty-state p {
    margin: 0;
    color: #666;
}

.wallet-mobile-actions {
    display: none;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.wallet-mobile-actions .wallet-btn {
    background: #6e8efb;
    color: white;
    padding: 12px 20px;
}

/* Admin Styles */
.wallet-admin-card {
    background: white;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-left: 4px solid #6e8efb;
}

.wallet-admin-card h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.wallet-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.wallet-table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.submit {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.awaiting-mod, .hold-count, .approved-count, .rejected-count, .all-count {
    display: inline-block;
    background: #d63638;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 10px;
    margin-left: 5px;
}
.hold-count { background: #ffc107; color: #000; }
.approved-count { background: #00a32a; }
.rejected-count { background: #d63638; }
.all-count { background: #2271b1; }

.wallet-filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 10px;
}

.wallet-filter-bar .form-group {
    margin-bottom: 0;
}

.wallet-filter-bar input,
.wallet-filter-bar select {
    height: 32px;
    padding: 0 5px;
}

.edit-form {
    background-color: #f9f9f9;
}

.wallet-edit-form .form-group {
    margin-bottom: 10px;
}

.wallet-edit-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .wallet-tab-nav {
        display: none;
    }
    
    .wallet-mobile-actions {
        display: flex;
    }
    
    .wallet-tab-link {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .wallet-tab {
        padding: 20px;
    }
    
    .wallet-history th,
    .wallet-history td {
        padding: 8px;
        font-size: 13px;
    }
    
    .wallet-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .wallet-filter-bar {
        grid-template-columns: 1fr;
    }
    
    .wp-list-table td:before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        width: 120px;
    }
    
    .wp-list-table td {
        display: flex;
        align-items: center;
        padding: 10px 10px 10px 50%;
        position: relative;
        min-height: 40px;
    }
    
    .edit-form td {
        display: block !important;
        padding: 10px !important;
    }
}

@media (max-width: 480px) {
    .wallet-card {
        padding: 20px;
    }
    
    .wallet-amount {
        font-size: 2rem;
    }
    
    .wallet-mobile-actions {
        flex-direction: column;
    }
    
    .wallet-history td {
        font-size: 12px;
    }
}