/* Email DNS Validator - Modern Admin Styles */

/* WordPress Admin Bar Adjustment */
#wpcontent {
  padding-left: 0 !important;
}

/* Smooth Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Main Container Animation */
#edsv-cf7-admin-root {
  animation: fadeIn 0.5s ease-out;
}

/* Stats Cards Hover Effect */
.ant-statistic-content {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ant-card:hover .ant-statistic-content {
  transform: scale(1.05);
}

/* Gradient Card Hover */
.ant-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ant-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
}

/* Tab Animation */
.ant-tabs-tab {
  transition: all 0.3s ease;
}

.ant-tabs-tab:hover {
  transform: translateY(-2px);
}

/* Button Hover Effects */
.ant-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
}

.ant-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ant-btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.ant-btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.ant-btn-primary:active {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

/* Collapse Panel Styling */
.ant-collapse {
  border: none;
  background: transparent;
}

.ant-collapse-item {
  margin-bottom: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.ant-collapse-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(99, 102, 241, 0.2) !important;
}

.ant-collapse-header {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
  font-weight: 600 !important;
  padding: 16px 20px !important;
  font-size: 15px !important;
}

.ant-collapse-content {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Input Focus Effects */
.ant-input:focus,
.ant-input-focused,
.ant-select-focused .ant-select-selector {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

/* Switch Modern Style */
.ant-switch-checked {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

/* Tag Modern Style */
.ant-tag {
  border-radius: 6px;
  font-weight: 500;
  padding: 2px 10px;
  border: none;
}

/* Alert Modern Style */
.ant-alert {
  border-radius: 0px 10px 10px 0px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ant-alert-info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid #3b82f6;
}

.ant-alert-success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-left: 4px solid #10b981;
}

.ant-alert-warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-left: 4px solid #f59e0b;
}

.ant-alert-error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-left: 4px solid #ef4444;
}

/* Table Modern Style */
.ant-table {
  border-radius: 12px;
  overflow: hidden;
}

.ant-table-thead > tr > th {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
}

.ant-table-tbody > tr:hover > td {
  background: #f9fafb !important;
}

/* Modal Modern Style */
.ant-modal-content {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.ant-modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-bottom: none;
  padding: 24px 32px;
}

.ant-modal-title {
  color: white;
  font-weight: 700;
  font-size: 20px;
}

.ant-modal-close-x {
  color: white;
  font-size: 18px;
}

.ant-modal-body {
  padding: 32px;
}

/* Dropdown Modern Style */
.ant-dropdown {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.ant-dropdown-menu {
  border-radius: 12px;
  padding: 8px;
}

.ant-dropdown-menu-item {
  border-radius: 8px;
  margin: 2px 0;
  transition: all 0.2s ease;
}

.ant-dropdown-menu-item:hover {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

/* Loading Spinner */
.ant-spin-dot-item {
  background-color: #6366f1;
}

/* Statistic Card Gradient Hover */
.ant-card[style*="linear-gradient"] {
  position: relative;
  overflow: hidden;
}

.ant-card[style*="linear-gradient"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ant-card[style*="linear-gradient"]:hover::before {
  opacity: 1;
}

/* Select Dropdown */
.ant-select-dropdown {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ant-select-item {
  border-radius: 8px;
  margin: 4px 8px;
}

.ant-select-item-option-selected {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
  font-weight: 600;
}

/* Descriptions Modern Style */
.ant-descriptions-bordered .ant-descriptions-item-label {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ant-card {
    margin-bottom: 16px;
  }

  .ant-col {
    margin-bottom: 16px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5568d3 0%, #65408e 100%);
}

/* Success Message */
.ant-message-success {
  animation: slideInLeft 0.3s ease-out;
}

/* Pagination Modern Style */
.ant-pagination-item {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.ant-pagination-item:hover {
  border-color: #6366f1;
  transform: translateY(-2px);
}

.ant-pagination-item-active {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-color: #6366f1;
}

.ant-pagination-item-active a {
  color: white !important;
}
