/* Cashback Cards Styles */
.cashback-section {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.cashback-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0E4D56;
    font-size: 16px;
    font-weight: 600;
}

.cashback-card-input {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.cashback-card-input input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: monospace;
}

.cashback-card-input button {
    padding: 8px 16px;
    background: #0E4D56;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.cashback-card-input button:hover {
    background: #0a3a42;
}

.cashback-card-input button:disabled {
    background: #999;
    cursor: not-allowed;
}

.cashback-card-info {
    background: white;
    border: 1px solid #d4edda;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 15px;
    display: none;
}

.cashback-card-info.active {
    display: block;
}

.cashback-card-info p {
    margin: 5px 0;
    font-size: 14px;
}

.cashback-card-info strong {
    color: #0E4D56;
}

.cashback-balance {
    color: #28a745;
    font-size: 18px;
    font-weight: 700;
}

.cashback-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.cashback-actions input[type="number"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.cashback-actions button {
    padding: 8px 16px;
    background: #CFA052;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.cashback-actions button:hover {
    background: #b8903d;
}

.cashback-actions button.deduct-btn {
    background: #dc3545;
}

.cashback-actions button.deduct-btn:hover {
    background: #c82333;
}

.cashback-message {
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 10px;
    display: none;
}

.cashback-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.cashback-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.cashback-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

/* Cashback transaction history */
.cashback-transactions {
    margin-top: 20px;
}

.cashback-transactions table {
    width: 100%;
    border-collapse: collapse;
}

.cashback-transactions th,
.cashback-transactions td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cashback-transactions th {
    background: #f5f5f5;
    font-weight: 600;
    color: #0E4D56;
}

.cashback-transaction-credit {
    color: #28a745;
}

.cashback-transaction-debit {
    color: #dc3545;
}

/* Admin cashback cards page */
.cashback-cards-table {
    margin-top: 20px;
}

.cashback-cards-table .balance-cell {
    font-weight: 700;
    color: #28a745;
}

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

.cashback-cards-table .status-inactive {
    color: #dc3545;
}

/* Public balance check page */
.egyptfun-cashback-check {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.egyptfun-cashback-check h2 {
    color: #0E4D56;
    margin-bottom: 30px;
    text-align: center;
}

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

.egyptfun-cashback-check label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.egyptfun-cashback-check .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.egyptfun-cashback-check .form-control:focus {
    outline: none;
    border-color: #0E4D56;
    box-shadow: 0 0 0 3px rgba(14, 77, 86, 0.1);
}

.egyptfun-cashback-check .button {
    width: 100%;
    padding: 12px 20px;
    background: #0E4D56;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.egyptfun-cashback-check .button:hover {
    background: #0a3a42;
}

.egyptfun-cashback-check .cashback-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.egyptfun-cashback-check .cashback-info h3 {
    color: #0E4D56;
    margin-bottom: 15px;
}

.egyptfun-cashback-check .cashback-info p {
    margin: 10px 0;
    line-height: 1.6;
}

/* Responsive design */
@media (max-width: 768px) {
    .cashback-card-input {
        flex-direction: column;
    }
    
    .cashback-card-input button {
        width: 100%;
    }
    
    .cashback-actions {
        flex-direction: column;
    }
    
    .egyptfun-cashback-check {
        padding: 20px;
        margin: 20px;
    }
}
