/* 
 * PayMe Plugin - Shared Styles
 * This file contains common styles used across the plugin
 */

/* Common Button Styles */
.payme-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.payme-btn-primary {
  background-color: #0073aa;
  color: #fff;
}

.payme-btn-primary:hover {
  background-color: #005a87;
  color: #fff;
}

.payme-btn-secondary {
  background-color: #f7f7f7;
  color: #555;
  border: 1px solid #ccc;
}

.payme-btn-secondary:hover {
  background-color: #e9e9e9;
  color: #333;
}

/* Common Status Styles */
.payme-status {
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
}

.payme-status-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.payme-status-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.payme-status-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.payme-status-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Common Card Styles */
.payme-card {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.payme-card-header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.payme-card-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

/* Common Form Styles */
.payme-form-group {
  margin-bottom: 20px;
}

.payme-form-label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}

.payme-form-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
}

.payme-form-input:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 1px #0073aa;
}

.payme-form-help {
  font-size: 12px;
  color: #6b7280;
  margin-top: 5px;
}

/* Common Alert Styles */
.payme-alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  border-left: 4px solid;
}

.payme-alert-success {
  background-color: #d4edda;
  color: #155724;
  border-left-color: #28a745;
}

.payme-alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border-left-color: #dc3545;
}

.payme-alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-left-color: #ffc107;
}

.payme-alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border-left-color: #17a2b8;
}

/* Utility Classes */
.payme-text-center {
  text-align: center;
}

.payme-text-left {
  text-align: left;
}

.payme-text-right {
  text-align: right;
}

.payme-mb-0 { margin-bottom: 0; }
.payme-mb-1 { margin-bottom: 8px; }
.payme-mb-2 { margin-bottom: 16px; }
.payme-mb-3 { margin-bottom: 24px; }

.payme-mt-0 { margin-top: 0; }
.payme-mt-1 { margin-top: 8px; }
.payme-mt-2 { margin-top: 16px; }
.payme-mt-3 { margin-top: 24px; }

.payme-hidden {
  display: none !important;
}

.payme-visible {
  display: block !important;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .payme-card {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .payme-btn {
    width: 100%;
    text-align: center;
  }
}
