.zms-widget {
  background: #ffffff;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
}

.zms-header h2 {
  margin: 0 0 20px 0;
  color: #1a1a1a;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.zms-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 24px;
}

.zms-field {
  margin-bottom: 16px;
}

.zms-field label {
  display: block;
  font-weight: 600;
  color: #4a5568;
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.zms-field span {
  display: block;
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.5;
  word-break: break-word;
}

.zms-invitation {
  margin-top: 20px;
}

.zms-invitation textarea {
  width: 100%;
  height: 120px;
  padding: 12px;
  border: 1px solid #e1e5e9;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  background: #f8f9fa;
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.4;
}

.zms-actions {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #e1e5e9;
  flex-wrap: wrap;
}

.zms-button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-sizing: border-box;
  min-height: 44px;
  white-space: nowrap;
}

.zms-copy-btn {
  background: #00a8ff;
  color: white;
}

.zms-copy-btn:hover {
  background: #0088cc;
  transform: translateY(-1px);
}

.zms-join-btn {
  background: #28a745;
  color: white;
}

.zms-join-btn:hover {
  background: #218838;
  transform: translateY(-1px);
  text-decoration: none;
  color: white;
}

.zms-copy-success {
  background: #28a745 !important;
}

.zms-no-meetings {
  padding: 40px 20px;
  text-align: center;
  background: #f8f9fa;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
}

.zms-no-meetings p {
  margin: 0 0 15px 0;
  color: #6c757d;
  font-size: 16px;
}

.zms-no-meetings a {
  display: inline-block;
  padding: 10px 20px;
  background: #007cba;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}

.zms-no-meetings a:hover {
  background: #005a87;
  text-decoration: none;
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .zms-widget {
    padding: 16px;
  }

  .zms-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .zms-actions {
    flex-direction: column;
  }

  .zms-button {
    width: 100%;
  }

  .zms-header h2 {
    font-size: 20px;
  }
}

/* Elementor specific styles */
.elementor-widget-rapatin_zoom_schedule .zms-widget {
  margin: 0;
}

/* Animation for copy success */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.zms-copy-success {
  animation: pulse 0.3s ease-in-out;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .zms-widget {
    background: #1a1a1a;
    border-color: #333;
    color: #fff;
  }

  .zms-field label {
    color: #ccc;
  }

  .zms-field span {
    color: #fff;
  }

  .zms-invitation textarea {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
  }

  .zms-actions {
    border-top-color: #333;
  }
}
