/**
 * Blue Company User Management Admin Styles
 */

/* Admin General Styles */
.bc-admin {
  max-width: 1200px;
  margin: 0 auto;
  color: #333;
}

.bc-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 12px;
}

.bc-admin-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.bc-admin-content {
  margin-top: 20px;
}

/* Card Styles */
.bc-admin-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  padding: 24px;
  margin-bottom: 24px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bc-admin-card h2 {
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  font-size: 18px;
  color: #0066cc;
}

.bc-admin-card h3 {
  margin-top: 0;
  font-size: 16px;
  color: #333;
}

/* Form Styles */
.bc-form-field {
  margin-bottom: 20px;
}

.bc-form-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
}

.bc-form-field input[type="text"],
.bc-form-field input[type="email"],
.bc-form-field input[type="password"],
.bc-form-field textarea,
.bc-form-field select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bc-form-field input[type="text"]:focus,
.bc-form-field input[type="email"]:focus,
.bc-form-field input[type="password"]:focus,
.bc-form-field textarea:focus,
.bc-form-field select:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

.bc-form-field .description {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

/* Button Styles */
.bc-form-actions {
  margin-top: 20px;
}

.bc-form-actions-wide {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bc-button-secondary {
  color: #0066cc !important;
  border-color: #0066cc !important;
  background: #fff !important;
}

.bc-button-secondary:hover {
  background: #f5f8fa !important;
}

.bc-button-danger {
  color: #dc3545 !important;
  border-color: #dc3545 !important;
  background: #fff !important;
}

.bc-button-danger:hover {
  background: #fff5f5 !important;
}

/* Color Picker */
.bc-color-picker-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.bc-color-picker {
  width: 120px !important;
}

.bc-color-preview {
  margin-top: 15px;
  padding: 15px;
  border-radius: 6px;
  background-color: #f9f9f9;
}

.bc-color-preview-label {
  margin-bottom: 10px;
  font-weight: 500;
}

.bc-color-preview-item {
  display: inline-block;
  width: 60px;
  height: 60px;
  margin-right: 10px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Font Preview */
.bc-font-preview {
  margin-top: 15px;
  padding: 15px;
  border-radius: 6px;
  background-color: #f9f9f9;
}

.bc-font-preview-primary,
.bc-font-preview-secondary {
  margin-bottom: 15px;
}

.bc-font-preview-primary h3,
.bc-font-preview-secondary h3 {
  margin-bottom: 5px;
  font-size: 16px;
}

.bc-font-preview-primary p,
.bc-font-preview-secondary p {
  margin: 0;
  font-size: 14px;
}

/* Layout */
.bc-admin-columns {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.bc-admin-column {
  flex: 1;
  min-width: 0;
}

@media (max-width: 782px) {
  .bc-admin-columns {
    flex-direction: column;
  }
}

/* Asset Uploader */
.bc-section-description {
  margin-top: 0;
  margin-bottom: 15px;
  color: #666;
  font-size: 13px;
}

.bc-assets-section {
  margin-bottom: 30px;
}

.bc-assets-section:last-child {
  margin-bottom: 0;
}

.bc-asset-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.bc-asset-item {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.bc-asset-preview {
  width: 100%;
  height: 100%;
  background-color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bc-asset-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.bc-remove-asset {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bc-asset-item:hover .bc-remove-asset {
  opacity: 1;
}

.bc-asset-add {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #ccc;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.bc-asset-add:hover {
  border-color: #0066cc;
  background-color: rgba(0, 102, 204, 0.05);
}

.bc-upload-asset {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
  font-size: 13px;
}

.bc-upload-asset:hover {
  color: #0066cc;
}

.bc-upload-asset .dashicons {
  margin-bottom: 5px;
  font-size: 24px;
  width: 24px;
  height: 24px;
}

/* Media Uploader */
.bc-media-uploader {
  margin-bottom: 15px;
}

.bc-media-preview {
  position: relative;
  max-width: 300px;
  margin-bottom: 10px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.bc-media-preview img {
  display: block;
  max-width: 100%;
  height: auto;
}

.bc-remove-media {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bc-media-preview:hover .bc-remove-media {
  opacity: 1;
}

/* Admin Messages */
#bc-admin-message {
  margin: 15px 0;
  padding: 10px 15px;
  border-radius: 4px;
}

#bc-admin-message.notice-success {
  background-color: #f0f9eb;
  color: #67c23a;
  border-color: #b3e19d;
}

#bc-admin-message.notice-error {
  background-color: #fef0f0;
  color: #f56c6c;
  border-color: #fab6b6;
}

/* Users Table */
.bc-admin .wp-list-table {
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.bc-admin .wp-list-table th {
  background-color: #f5f8fa;
  color: #333;
  border-bottom: 1px solid #e5e5e5;
}

.bc-admin .wp-list-table tr:hover {
  background-color: #f8f9fa;
}

/* Pagination */
.bc-admin .tablenav-pages {
  margin-top: 15px;
}

/* Login Form Styling */
#alseraj-reset-form-container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 50px auto;
  padding: 30px;
}

.alseraj-reset-form h2 {
  text-align: center;
  color: #0066cc;
  margin-bottom: 25px;
}

.alseraj-reset-form .form-group {
  margin-bottom: 20px;
}

.alseraj-reset-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.alseraj-reset-form input[type="email"],
.alseraj-reset-form input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.alseraj-reset-form input[type="email"]:focus,
.alseraj-reset-form input[type="password"]:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.alseraj-reset-form .error-message {
  color: #f44336;
  font-size: 14px;
  margin-top: 5px;
}

.alseraj-reset-form .submit-button {
  width: 100%;
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.alseraj-reset-form .submit-button:hover {
  background-color: #0055b3;
}

.alseraj-reset-form .submit-button:disabled {
  background-color: #99c2ff;
  cursor: not-allowed;
}

.alseraj-reset-form .success-message {
  background-color: rgba(38, 166, 91, 0.1);
  border-radius: 4px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.alseraj-reset-form .success-message h3 {
  color: #26a65b;
  margin-top: 0;
  margin-bottom: 10px;
}

.alseraj-reset-form .back-to-login {
  display: inline-block;
  margin-top: 15px;
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}

.alseraj-reset-form .back-to-login:hover {
  text-decoration: underline;
}

/* Password Strength Meter */
.alseraj-password-strength {
  margin-top: 10px;
}

.alseraj-strength-meter {
  height: 4px;
  background-color: #e9ecef;
  border-radius: 2px;
  margin-bottom: 4px;
  overflow: hidden;
}

.alseraj-strength-indicator {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.alseraj-strength-label {
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}

.alseraj-password-hint {
  font-size: 13px;
  color: #666;
  margin-top: 5px;
}

/* Loading Spinner */
.alseraj-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: alseraj-spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes alseraj-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
