/* flexilayouts Admin Dashboard Styles */

/* Base Styles */
.flexilayouts-dashboard {
  --primary: #5971FF;
  --secondary: #354499;
  --dark: #223C4A;
  --light: #ffffff;
  --accent: #FFD100;
  --text: #333;
  --light-text: #777;
  --border: #e0e0e0;
  --success: #4CAF50;
  --warning: #FF9800;
  --error: #F44336;
  font-family: 'Figtree', sans-serif;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.flexilayouts-dashboard .plugin-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 20px 30px;
  border-radius: 10px;
  margin: 20px 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flexilayouts-dashboard .plugin-logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 600;
  gap: 5px;
}

.flexilayouts-dashboard .plugin-logo svg {
  width: 40px;
  height: 40px;
}

.flexilayouts-dashboard .header-actions .version-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
}

/* Welcome Section */
.flexilayouts-dashboard .welcome-section {
  background-image: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 30px 0 0;
  border-radius: 10px;
  margin: 30px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.flexilayouts-dashboard .welcome-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  padding: 0 30px 30px;
  box-sizing: border-box;
}

.flexilayouts-dashboard .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.flexilayouts-dashboard .user-avatar, .flexilayouts-dashboard .user-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 600;
  font-size: 18px;
}

.flexilayouts-dashboard .user-name {
  font-size: 18px;
  font-weight: 500;
  color: white;
}

.flexilayouts-dashboard .welcome-text h2 {
  font-size: 28px;
  margin: 0 0 15px;
  font-weight: 700;
  color: white;
  line-height: 1.3;
}

.flexilayouts-dashboard .welcome-text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
  max-width: 90%;
}

.flexilayouts-dashboard .welcome-header {
  margin-top: 20px;
}

/* How it works section */
.flexilayouts-dashboard .how-it-works {
  background: white;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.flexilayouts-dashboard .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.flexilayouts-dashboard .section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}

.flexilayouts-dashboard .steps-container {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 20px 0;
}

.flexilayouts-dashboard .step-line {
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 1;
}

.flexilayouts-dashboard .step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 15px;
}

.flexilayouts-dashboard .step-number {
  width: 40px;
  height: 40px;
  background: white;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-weight: 600;
  font-size: 18px;
}

.flexilayouts-dashboard .step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.flexilayouts-dashboard .step-desc {
  font-size: 14px;
  color: var(--light-text);
  line-height: 1.5;
}

/* Features Section */
.flexilayouts-dashboard .features-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

.flexilayouts-dashboard .feature-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.flexilayouts-dashboard .feature-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 15px;
}

.flexilayouts-dashboard .feature-desc {
  color: var(--light-text);
  margin-bottom: 25px;
  line-height: 1.6;
}

.flexilayouts-dashboard .feature-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.flexilayouts-dashboard .feature-button:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.flexilayouts-dashboard .feature-gallery {
  display: flex;
  margin-top: 30px;
  justify-content: center;
  gap: 10px;
}

.flexilayouts-dashboard .gallery-item {
  width: 80px;
  height: 60px;
  background: #f5f7ff;
  border-radius: 5px;
  transform: rotate(-3deg);
}

.flexilayouts-dashboard .gallery-item:nth-child(2) {
  transform: rotate(0) translateY(-5px);
  background: #e8ecff;
}

.flexilayouts-dashboard .gallery-item:nth-child(3) {
  transform: rotate(3deg);
}

/* Resources Section */
.flexilayouts-dashboard .resources-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.flexilayouts-dashboard .resource-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.flexilayouts-dashboard .resource-title {
  padding: 20px;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid #f5f5f5;
  margin: 0;
}

.flexilayouts-dashboard .resource-action {
  width: 100%;
  padding: 15px;
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.flexilayouts-dashboard .resource-action:hover {
  background: #f9f9ff;
}

.flexilayouts-dashboard .resource-action a {
  color: inherit;
  text-decoration: none;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .flexilayouts-dashboard .features-section {
      grid-template-columns: 1fr;
  }
  
  .flexilayouts-dashboard .resources-section {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .flexilayouts-dashboard .welcome-content {
      max-width: 100%;
  }
  
  .flexilayouts-dashboard .steps-container {
      flex-direction: column;
      gap: 40px;
  }
  
  .flexilayouts-dashboard .step-line {
      display: none;
  }
  
  .flexilayouts-dashboard .step {
      text-align: left;
      display: flex;
      align-items: flex-start;
      gap: 15px;
  }
  
  .flexilayouts-dashboard .step-number {
      margin: 0 15px 0 0;
      flex-shrink: 0;
  }
  
  .flexilayouts-dashboard .resources-section {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .flexilayouts-dashboard .plugin-header {
      flex-direction: column;
      text-align: center;
      gap: 15px;
  }
  
  .flexilayouts-dashboard .welcome-section {
      padding: 30px 20px;
  }
  
  .flexilayouts-dashboard .welcome-text h2 {
      font-size: 24px;
  }
  
  .flexilayouts-dashboard .feature-card {
      padding: 20px;
  }
}