/* Modal Overlay */
.simcard-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal Container */
.simcard-modal {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* Modal Header */
.simcard-modal-header {
  padding: 20px 20px 10px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.simcard-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.simcard-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.simcard-modal-close:hover {
  background-color: #f5f5f5;
}

/* Modal Content */
.simcard-modal-content {
  padding: 20px;
}

/* Messages */
.simcard-messages {
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 4px;
  border-left: 4px solid;
}

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

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

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

/* Form Styles */
.simcard-form-group {
  margin-bottom: 15px;
}

.simcard-form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.simcard-form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

.simcard-form-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Buttons */
.simcard-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-right: 10px;
}

.simcard-btn:last-child {
  margin-right: 0;
}

.simcard-btn-primary {
  background-color: #007bff;
  color: white;
}

.simcard-btn-primary:hover:not(:disabled) {
  background-color: #0056b3;
}

.simcard-btn-secondary {
  background-color: #6c757d;
  color: white;
}

.simcard-btn-secondary:hover:not(:disabled) {
  background-color: #545b62;
}

.simcard-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form Actions */
.simcard-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* OTP Resend Info */
.otp-resend-info {
  margin-top: 15px;
  padding: 10px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 14px;
  color: #6c757d;
  text-align: center;
}

.otp-resend-info span {
  font-weight: bold;
  color: #007bff;
}

/* Loading State */
.simcard-loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .simcard-modal {
    width: 95%;
    margin: 10px;
  }
  
  .simcard-modal-header,
  .simcard-modal-content {
    padding: 15px;
  }
}