/* Font import removed - use system fonts instead */
@import url('../icomoon/style.css');

/* CSS Variables for consistent theming */
:root {
  --mementor-primary: #FF4B4B;
  --mementor-primary-dark: #E63636;
  --mementor-primary-light: #FF6B6B;
  --mementor-secondary: #1a1a1a;
  --mementor-success: #4caf50;
  --mementor-warning: #ff9800;
  --mementor-danger: #FF4B4B;
  --mementor-text: #1a1a1a;
  --mementor-text-secondary: #666;
  --mementor-text-light: #999;
  --mementor-bg: #f8f9fa;
  --mementor-bg-card: #ffffff;
  --mementor-border: #e1e4e8;
  --mementor-border-light: #f0f0f0;
  --mementor-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --mementor-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
  --mementor-radius: 12px;
  --mementor-radius-sm: 8px;
  --mementor-spacing: 24px;
  --mementor-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Dashboard Container */
.toplevel_page_mementor_dashboard #wpbody-content {
  background-color: transparent;
  min-height: 100vh;
}

.toplevel_page_mementor_dashboard #wpbody-content > .wrap > h1 {
  display: none;
}

.mementor-dashboard-modern {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--mementor-text);
  animation: fadeIn 0.5s ease-out;
}

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

/* Welcome Wrapper */
.mementor-welcome-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--mementor-spacing);
  margin-bottom: var(--mementor-spacing);
}

/* Welcome Section */
.mementor-welcome-section {
  background: #f5eee9;
  border-radius: var(--mementor-radius);
  padding: 40px;
  color: var(--mementor-text);
  box-shadow: var(--mementor-shadow);
  position: relative;
  overflow: hidden;
}

.mementor-welcome-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 75, 75, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.mementor-welcome-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.mementor-logo-area {
  text-align: center;
}

.mementor-logo {
  width: 120px;
  margin-bottom: 20px;
}

.mementor-current-time-container {
  margin-top: 10px;
}

.mementor-current-time-container h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--mementor-text-secondary);
  margin: 0 0 8px 0;
}

.mementor-logo-area .mementor-current-time {
  display: inline-block;
  font-size: 18px;
  color: var(--mementor-text);
  font-weight: 600;
}

.mementor-logo-area .mementor-current-time #mementor-clock {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--mementor-primary);
  font-size: 20px;
  height: auto;
}

.mementor-current-date {
  font-size: 14px;
  color: var(--mementor-text-secondary);
  margin-top: 8px;
  font-weight: 400;
}

.mementor-company-name {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: var(--mementor-text);
}

.mementor-welcome-text h2 {
  font-size: 28px;
  margin: 0 0 16px 0;
  font-weight: 600;
  line-height: 1.3;
  color: var(--mementor-text);
}

.mementor-welcome-text p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 20px 0;
  color: var(--mementor-text-secondary);
  max-width: 800px;
}

.mementor-meta-info {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}


.mementor-separator {
  color: var(--mementor-text-secondary);
  opacity: 0.5;
}

.mementor-last-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--mementor-text-secondary);
}

.mementor-last-updated svg {
  opacity: 0.7;
}

/* Action Buttons Container */
.mementor-action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.mementor-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--mementor-radius-sm);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--mementor-transition);
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.mementor-btn:hover,
.mementor-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.mementor-btn-primary {
  background-color: var(--mementor-primary);
  color: white;
}

.mementor-btn-primary:hover,
.mementor-btn-primary:focus {
  background-color: var(--mementor-primary-dark);
  color: white;
}

.mementor-btn-secondary {
  background-color: white;
  color: var(--mementor-text);
  border: 1px solid var(--mementor-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mementor-btn-secondary:hover,
.mementor-btn-secondary:focus {
  background-color: var(--mementor-bg);
  color: var(--mementor-text);
  border-color: var(--mementor-border);
}

.mementor-btn-outline {
  background-color: transparent;
  min-width: 165px;
  color: var(--mementor-primary);
  border: 2px solid var(--mementor-border);
}

.mementor-btn-outline:hover,
.mementor-btn-outline:focus {
  background-color: var(--mementor-primary);
  color: white;
  border-color: var(--mementor-primary);
}

.mementor-btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.mementor-btn-full {
  width: 100%;
  justify-content: center;
}

/* Dashicons in buttons */
.mementor-btn .dashicons {
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 1;
}

/* Badge */
.mementor-badge-new {
  background-color: var(--mementor-danger);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
  animation: pulse 2s infinite;
}

.mementor-badge-header {
  margin-left: 12px;
  font-size: 11px;
  padding: 3px 8px;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* Dashboard Grid */
.mementor-dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--mementor-spacing);
  margin-bottom: 40px;
}

/* Cards */
.mementor-card {
  background-color: var(--mementor-bg-card);
  border-radius: var(--mementor-radius);
  box-shadow: var(--mementor-shadow);
  overflow: hidden;
  transition: var(--mementor-transition);
}

.mementor-card:hover {
  box-shadow: var(--mementor-shadow-hover);
}

.mementor-card-header {
  padding: 24px;
  border-bottom: 1px solid var(--mementor-border-light);
}

.mementor-card-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--mementor-text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mementor-card-header svg {
  color: var(--mementor-primary);
}

.mementor-card-body {
  padding: 24px 24px 45px 24px;
}

/* Blog Section */
.mementor-blog-posts {
  margin-bottom: 20px;
  min-height: 200px;
}

.mementor-blog-post {
  padding: 16px 0;
  border-bottom: 1px solid var(--mementor-border-light);
  animation: slideIn 0.3s ease-out;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.mementor-blog-post:last-child {
  border-bottom: none;
}

.mementor-blog-post .content-wrapper {
  flex: 1;
  min-width: 0;
}

.mementor-blog-post .heading-wrapper {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.mementor-blog-post h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}

.mementor-blog-post h4 a {
  color: var(--mementor-text);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mementor-blog-post h4 a:hover {
  color: var(--mementor-primary);
}

.mementor-blog-post p {
  margin: 0;
  font-size: 14px;
  color: var(--mementor-text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mementor-blog-post .mementor-blog-date {
  font-size: 13px;
  color: #acacac;
  white-space: nowrap;
  flex-shrink: 0;
}

.mementor-blog-post img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--mementor-border-light);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.mementor-blog-post:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .mementor-blog-post .heading-wrapper {
    flex-direction: column;
    gap: 4px;
  }
  
  .mementor-blog-post h4 a {
    white-space: normal;
  }
  
  .mementor-blog-post img {
    width: 60px;
    height: 60px;
  }
}

.mementor-blog-date {
  font-size: 13px;
  color: var(--mementor-text-light);
}

/* Featured Services */
.mementor-featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.mementor-feature-card {
  padding: 20px;
  border: 1px solid var(--mementor-border-light);
  border-radius: var(--mementor-radius-sm);
  transition: var(--mementor-transition);
}

.mementor-feature-card:hover {
  border-color: var(--mementor-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 75, 75, 0.15);
}

.mementor-feature-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mementor-feature-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background-color: rgba(255, 75, 75, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--mementor-transition);
}

.mementor-feature-card:hover .mementor-feature-icon {
  background-color: var(--mementor-primary);
}

.mementor-feature-icon svg {
  color: var(--mementor-primary);
  transition: var(--mementor-transition);
  width: 24px;
  height: 24px;
}

.mementor-feature-card:hover .mementor-feature-icon svg {
  color: white;
}

.mementor-feature-card h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--mementor-text);
  flex: 1;
}

.mementor-feature-card p {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: var(--mementor-text-secondary);
  line-height: 1.5;
}

.mementor-info-text {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background-color: rgba(255, 75, 75, 0.05);
  border-radius: var(--mementor-radius-sm);
  font-size: 14px;
  color: var(--mementor-text-secondary);
  margin: 0;
}

.mementor-info-text svg {
  flex-shrink: 0;
  color: var(--mementor-primary);
}

/* Customer Portal Section */
.mementor-portal-info {
  grid-column: 1 / -1;
}

.mementor-portal-intro {
  font-size: 16px;
  color: var(--mementor-text-secondary);
  margin-bottom: 24px;
}

.mementor-portal-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.mementor-portal-feature {
  display: flex;
  gap: 16px;
  padding: 20px;
  background-color: var(--mementor-bg);
  border-radius: var(--mementor-radius-sm);
  transition: var(--mementor-transition);
}

.mementor-portal-feature:hover {
  background-color: rgba(255, 75, 75, 0.05);
  transform: translateY(-2px);
}

.mementor-portal-feature svg {
  flex-shrink: 0;
  color: var(--mementor-primary);
  margin-top: 2px;
}

.mementor-portal-feature h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--mementor-text);
}

.mementor-portal-feature p {
  margin: 0;
  font-size: 14px;
  color: var(--mementor-text-secondary);
  line-height: 1.5;
}

/* Card Divider */
.mementor-card-divider {
  height: 1px;
  background-color: var(--mementor-border-light);
  margin: 0;
}

.mementor-services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.mementor-service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background-color: var(--mementor-bg);
  border-radius: var(--mementor-radius-sm);
  transition: var(--mementor-transition);
}

.mementor-service-item:hover {
  background-color: rgba(255, 75, 75, 0.05);
  transform: translateX(4px);
}

.mementor-service-item svg {
  color: var(--mementor-primary);
  flex-shrink: 0;
}

.mementor-service-item span {
  font-size: 15px;
  font-weight: 500;
  color: var(--mementor-text);
}

/* Loading State */
.mementor-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 16px;
}

.mementor-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--mementor-border-light);
  border-top-color: var(--mementor-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .mementor-welcome-wrapper {
    grid-template-columns: 1fr;
  }
  
  .mementor-dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .mementor-portal-info {
    grid-column: 1;
  }
  
  .mementor-featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .mementor-portal-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 782px) {
  .mementor-dashboard-modern {
    padding: 16px;
  }
  
  .mementor-welcome-section {
    padding: 24px;
  }
  
  .mementor-welcome-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  
  .mementor-welcome-text {
    text-align: left;
  }
  
  .mementor-welcome-text h2 {
    font-size: 24px;
  }
  
  .mementor-services-list {
    grid-template-columns: 1fr;
  }
  
  .mementor-featured-grid {
    grid-template-columns: 1fr;
  }
  
  .mementor-portal-features {
    grid-template-columns: 1fr;
  }
  
  .mementor-action-buttons {
    flex-direction: column;
  }
  
  .mementor-action-buttons .mementor-btn {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .mementor-card-header {
    padding: 20px;
  }
  
  .mementor-card-body {
    padding: 20px;
  }
  
  .mementor-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Admin Bar Logo Styling - Scoped to Mementor logo only */
#wpadminbar #wp-admin-bar-mementor-logo > .ab-item {
  padding-left: 9px;
  display: flex;
  align-items: center;
}

#wpadminbar #wp-admin-bar-mementor-logo > .ab-item img {
  height: 20px;
  width: auto;
  vertical-align: middle;
  margin-right: 5px;
  position: relative;
  top: -1px;
}

/* Replace the default WordPress icon - Only for Mementor logo */
#wpadminbar #wp-admin-bar-mementor-logo > .ab-item .ab-icon:before {
  content: "";
  display: none;
}

/* Submenu styling - Scoped to Mementor menu only */
#wpadminbar #wp-admin-bar-mementor-logo .ab-sub-wrapper .ab-item {
  color: #f0f0f1;
  display: block;
}

#wpadminbar #wp-admin-bar-mementor-logo .ab-sub-wrapper .ab-item:hover {
  color: #00b9eb;
  background-color: #32373c;
}

/* Mementor Plugin Specific Admin Bar Fixes */
body.toplevel_page_mementor_dashboard #wpadminbar {
  position: fixed;
  top: 0;
}

/* Fix WP Dashboard conflicts */
body.toplevel_page_mementor_dashboard #wpbody-content > .wrap > h1,
body.toplevel_page_mementor_dashboard .wp-header-end {
  display: none;
}

body.toplevel_page_mementor_dashboard #wpcontent {
  padding-left: 20px;
}

body.toplevel_page_mementor_dashboard .notice {
  margin: 20px 20px 0 0;
}

/* Admin footer - Only on Mementor pages */
.toplevel_page_mementor_dashboard #wpfooter,
.mementor-plugin #wpfooter {
  position: relative;
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  color: var(--mementor-text-secondary);
}

/* Add Mementor brand color to WP-Admin - Only on Mementor pages */
.toplevel_page_mementor_dashboard .wp-core-ui .button-primary,
.mementor-plugin .wp-core-ui .button-primary {
  background: var(--mementor-primary);
  border-color: var(--mementor-primary-dark);
}

.toplevel_page_mementor_dashboard .wp-core-ui .button-primary:hover,
.toplevel_page_mementor_dashboard .wp-core-ui .button-primary:active,
.toplevel_page_mementor_dashboard .wp-core-ui .button-primary:focus,
.mementor-plugin .wp-core-ui .button-primary:hover,
.mementor-plugin .wp-core-ui .button-primary:active,
.mementor-plugin .wp-core-ui .button-primary:focus {
  background: var(--mementor-primary-dark);
  border-color: var(--mementor-primary-dark);
}


/* Button Ripple Effect */
.mementor-btn {
  position: relative;
  overflow: hidden;
}

.mementor-btn .ripple {
  position: absolute;
  border-radius: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  animation: rippleAnimation 0.6s;
}

@keyframes rippleAnimation {
  from {
    width: 0;
    height: 0;
    opacity: 1;
  }
  to {
    width: 100px;
    height: 100px;
    opacity: 0;
  }
}

/* User Switcher */
.mementor-user-switcher-intro {
  font-size: 14px;
  color: var(--mementor-text-secondary);
  margin-bottom: 20px;
}

.mementor-user-switcher-list {
  margin-bottom: 20px;
}

.mementor-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background-color: var(--mementor-bg);
  border-radius: var(--mementor-radius-sm);
  margin-bottom: 12px;
  transition: var(--mementor-transition);
}

.mementor-user-item:hover {
  background-color: rgba(255, 75, 75, 0.05);
  transform: translateX(2px);
}

.mementor-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mementor-user-info img {
  border-radius: 50%;
  border: 2px solid var(--mementor-border-light);
}

.mementor-user-info strong {
  display: block;
  font-size: 14px;
  color: var(--mementor-text);
  margin-bottom: 2px;
}

.mementor-user-info span {
  font-size: 12px;
  color: var(--mementor-text-secondary);
}

/* Switch Back Banner in Admin Bar */
#wpadminbar #wp-admin-bar-mementor-switch-back {
  background-color: #FF4B4B;
}

#wpadminbar #wp-admin-bar-mementor-switch-back:hover {
  background-color: #E63636;
}

#wpadminbar #wp-admin-bar-mementor-switch-back .ab-item {
  padding: 0 10px;
}

/* Error and Empty States */
.mementor-empty-state {
  text-align: center;
  padding: 40px;
  color: var(--mementor-text-secondary);
}

.mementor-empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

/* Did You Know Section */
.mementor-did-you-know {
  min-height: 100%;
}

.mementor-did-you-know .mementor-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #43455a;
  color: white;
}

.mementor-did-you-know .mementor-card-header {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.mementor-did-you-know .mementor-card-header h3 {
  color: white;
}

.mementor-did-you-know .mementor-card-header svg {
  color: white;
}

.mementor-did-you-know .mementor-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}

.mementor-did-you-know-slider {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mementor-slide-container {
  position: relative;
  flex: 1;
  min-height: 120px;
}

.mementor-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
}

.mementor-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.mementor-slide h4 {
  font-size: 20px;
  font-weight: 600;
  color: white;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.mementor-slide p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0;
}

/* Slider Controls */
.mementor-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
}

.mementor-slider-prev,
.mementor-slider-next {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--mementor-transition);
  color: white;
}

.mementor-slider-prev:hover,
.mementor-slider-next:hover {
  background-color: white;
  border-color: white;
  color: var(--mementor-primary);
}

.mementor-slider-dots {
  display: flex;
  gap: 8px;
}

.mementor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--mementor-transition);
}

.mementor-dot:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.mementor-dot.active {
  background-color: var(--mementor-primary);
  width: 24px;
  border-radius: 4px;
}

/* Additional hover states */
.mementor-card {
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mementor-card:hover {
  transform: translateY(-4px);
}

/* Focus states for accessibility */
.mementor-btn:focus,
.mementor-feature-card a:focus,
.mementor-service-item:focus-within {
  outline: 2px solid var(--mementor-primary);
  outline-offset: 2px;
}

/* Modal Styles */
.mementor-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999999;
  animation: fadeIn 0.3s ease;
}

.mementor-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mementor-modal-content {
  background-color: white;
  border-radius: var(--mementor-radius);
  width: 90%;
  max-width: 900px;
  height: 80vh;
  max-height: 740px;
  min-height: 740px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  display: flex;
  flex-direction: column;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mementor-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--mementor-primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--mementor-transition);
  z-index: 10;
}

.mementor-modal-close:hover {
  background-color: var(--mementor-primary-dark);
  transform: rotate(90deg);
}

.mementor-modal iframe {
  border: none;
  border-radius: 0 0 var(--mementor-radius) var(--mementor-radius);
  width: 100%;
  height: 100%;
  flex: 1;
}

/* Contact Form Styles */
.mementor-modal-header {
  padding: 30px 30px 20px;
  border-bottom: 1px solid var(--mementor-border-light);
  text-align: center;
}

.mementor-modal-header h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--mementor-text);
}

.mementor-modal-header p {
  margin: 0;
  color: var(--mementor-text-secondary);
  font-size: 14px;
}

.mementor-contact-form {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
}

.mementor-form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.mementor-form-group {
  margin-bottom: 20px;
}

.mementor-form-row .mementor-form-group {
  margin-bottom: 0;
}

.mementor-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--mementor-text);
  font-size: 14px;
}

.mementor-form-group input[type="text"],
.mementor-form-group input[type="email"],
.mementor-form-group input[type="url"],
.mementor-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--mementor-border);
  border-radius: var(--mementor-radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: var(--mementor-transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mementor-form-group input:focus,
.mementor-form-group textarea:focus {
  outline: none;
  border-color: var(--mementor-primary);
  box-shadow: 0 0 0 3px rgba(255, 75, 75, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mementor-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Modern file input */
.mementor-file-input-wrapper {
  position: relative;
}

.mementor-file-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.mementor-file-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: var(--mementor-bg);
  border: 2px dashed var(--mementor-border);
  border-radius: var(--mementor-radius-sm);
  cursor: pointer;
  transition: var(--mementor-transition);
  font-weight: 500;
  color: var(--mementor-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mementor-file-label:hover {
  background-color: rgba(255, 75, 75, 0.05);
  border-color: var(--mementor-primary);
  color: var(--mementor-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.mementor-file-label svg {
  color: var(--mementor-primary);
}

.mementor-file-label .mementor-file-text span:last-child {
  font-weight: 600;
  color: var(--mementor-primary);
}

.mementor-file-list {
  margin-top: 12px;
}

.mementor-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: var(--mementor-bg);
  border-radius: var(--mementor-radius-sm);
  margin-bottom: 8px;
  font-size: 14px;
}

.mementor-file-item button {
  background: none;
  border: none;
  color: var(--mementor-danger);
  cursor: pointer;
  padding: 4px;
}

.mementor-file-item button:hover {
  opacity: 0.7;
}

.mementor-form-group small {
  display: block;
  margin-top: 5px;
  color: var(--mementor-text-secondary);
  font-size: 12px;
}

.mementor-form-actions {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--mementor-border-light);
}

.mementor-form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--mementor-radius-sm);
  display: none;
}

.mementor-form-message.success {
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--mementor-success);
  border: 1px solid rgba(76, 175, 80, 0.3);
  display: block;
}

.mementor-form-message.error {
  background-color: rgba(255, 75, 75, 0.1);
  color: var(--mementor-danger);
  border: 1px solid rgba(255, 75, 75, 0.3);
  display: block;
}

/* Responsive modal */
@media screen and (max-width: 782px) {
  .mementor-modal-content {
    width: 95%;
    height: 90vh;
    min-height: 400px;
    max-height: none;
  }
  
  .mementor-form-row {
    grid-template-columns: 1fr;
  }
}

/* Print styles */
@media print {
  .mementor-dashboard-modern {
    background: white;
  }
  
  .mementor-welcome-section {
    background: none;
    color: black;
    border: 1px solid #ddd;
  }
  
  .mementor-logo {
    filter: none;
  }
  
  .mementor-btn,
  .mementor-modal {
    display: none;
  }
}

/* Cache Header Styles */
.mementor-cache-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background-color: #fef5f5;
  border-bottom: 1px solid #ffdede;
}

.mementor-cache-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.mementor-cache-header .mementor-btn {
  margin: 0;
  font-size: 14px;
  padding: 10px 20px;
}

/* Notification Styles */
.mementor-notification {
  position: fixed;
  top: 32px;
  right: 20px;
  max-width: 400px;
  background: white;
  border-radius: var(--mementor-radius-sm);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  z-index: 100000;
  transform: translateX(420px);
  transition: transform 0.3s ease-out;
}

.mementor-notification.show {
  transform: translateX(0);
}

.mementor-notification-content {
  font-size: 14px;
  line-height: 1.5;
  color: var(--mementor-text);
}

.mementor-notification-success {
  border-left: 4px solid var(--mementor-success);
}

.mementor-notification-success .mementor-notification-content {
  color: var(--mementor-success);
}

.mementor-notification-error {
  border-left: 4px solid var(--mementor-danger);
}

.mementor-notification-error .mementor-notification-content {
  color: var(--mementor-danger);
}

/* Spinning animation for loading state */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.mementor-spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}

/* Cache Success Modal */
.mementor-cache-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mementor-cache-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mementor-cache-modal.show .mementor-cache-modal-overlay {
  opacity: 1;
}

.mementor-cache-modal-content {
  position: relative;
  background: white;
  border-radius: var(--mementor-radius);
  padding: 48px;
  text-align: center;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
}

.mementor-cache-modal.show .mementor-cache-modal-content {
  transform: scale(1);
  opacity: 1;
}

.mementor-cache-modal-icon {
  margin-bottom: 24px;
}

.mementor-cache-modal-icon svg {
  stroke: var(--mementor-success);
  width: 60px;
  height: 60px;
}

.mementor-cache-modal h2 {
  margin: 0 0 16px 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--mementor-text);
}

.mementor-cache-modal p {
  margin: 0 0 24px 0;
  font-size: 16px;
  color: var(--mementor-text-secondary);
  line-height: 1.5;
}

.mementor-cache-modal-countdown {
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--mementor-text-light);
}

.mementor-cache-modal-countdown strong {
  color: var(--mementor-primary);
  font-weight: 600;
}

.mementor-cache-modal-close {
  min-width: 120px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments for cache header */
@media (max-width: 768px) {
  .mementor-cache-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .mementor-cache-header .mementor-btn {
    width: 100%;
    justify-content: center;
  }
  
  .mementor-notification {
    left: 20px;
    right: 20px;
    max-width: none;
  }
  
  .mementor-cache-modal-content {
    padding: 32px 24px;
  }
  
  .mementor-cache-modal h2 {
    font-size: 20px;
  }
  
  .mementor-cache-modal p {
    font-size: 14px;
  }
}