/* myPOS VirtueMart Plugin Admin Styles */

.mypos-admin-panel {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin: 10px 0;
}

.mypos-admin-panel h3 {
    color: #333;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.mypos-config-section {
    margin-bottom: 30px;
}

.mypos-config-section .form-group {
    margin-bottom: 15px;
}

.mypos-config-section label {
    font-weight: bold;
    color: #555;
}

.mypos-test-mode {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
}

.mypos-test-mode .alert-warning {
    color: #856404;
}

.mypos-production-mode {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
}

.mypos-production-mode .alert-success {
    color: #155724;
}

.mypos-field-description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.mypos-payment-method-icons {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.mypos-payment-method-icons img {
    max-height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.mypos-status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.mypos-status-indicator.success {
    background-color: #28a745;
}

.mypos-status-indicator.error {
    background-color: #dc3545;
}

.mypos-status-indicator.pending {
    background-color: #ffc107;
}

.mypos-transaction-details {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
}

.mypos-transaction-details table {
    width: 100%;
    margin: 0;
}

.mypos-transaction-details table td {
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
}

.mypos-transaction-details table td:first-child {
    font-weight: bold;
    width: 200px;
}

.mypos-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.mypos-button:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.mypos-button.secondary {
    background: #6c757d;
}

.mypos-button.secondary:hover {
    background: #545b62;
}

.mypos-error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
}

.mypos-success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
}

.mypos-warning-message {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
}

/* VirtueMart specific overrides */
.adminform .mypos-admin-panel {
    border: none;
    background: transparent;
    padding: 0;
}

.vm-payment-plugin-parameters .mypos-config-section {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mypos-payment-method-icons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mypos-transaction-details table td:first-child {
        width: auto;
        display: block;
        font-weight: bold;
    }
    
    .mypos-transaction-details table td {
        display: block;
        padding: 3px 10px;
    }
}

/* Print styles */
@media print {
    .mypos-admin-panel,
    .mypos-config-section {
        border: 1px solid #000;
        background: white !important;
    }
    
    .mypos-button {
        display: none;
    }
}