/* File: assets/css/style.css */
/* CSS untuk form GuruSinergi */

/* Variabel CSS untuk konsistensi warna dan kemudahan maintenance */
:root {
  --gs-primary: #4e68ff;
  --gs-primary-dark: #3a54e4;
  --gs-secondary: #9c6bdb;
  --gs-gradient-start: #4e68ff;
  --gs-gradient-end: #9c6bdb;
  --gs-text-dark: #333333;
  --gs-text-light: #666666;
  --gs-border: #dddddd;
  --gs-bg-light: #f8f9fa;
  --gs-bg-white: #ffffff;
  --gs-success: #28a745;
  --gs-error: #dc3545;
  --gs-warning: #ffc107;
  --gs-shadow: rgba(0, 0, 0, 0.1);
}

/* Styles untuk Container Utama */
.gs-upload-container {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px;
  background-color: var(--gs-bg-white);
  border-radius: 10px;
  box-shadow: 0 5px 20px var(--gs-shadow);
}

/* Header Section */
.gs-upload-header {
  text-align: center;
  margin-bottom: 40px;
}

.gs-upload-header h2 {
  font-size: 32px;
  margin-bottom: 15px;
  background: linear-gradient(45deg, var(--gs-gradient-start), var(--gs-gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gs-upload-header p {
  font-size: 18px;
  color: var(--gs-text-light);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Progress Bar Styles */
.gs-progress-container {
  margin-bottom: 40px;
}

.gs-progress-bar {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  position: relative;
}

.gs-progress-bar::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--gs-border);
  z-index: 1;
}

.gs-progress-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.gs-step-icon {
  width: 40px;
  height: 40px;
  background-color: var(--gs-bg-light);
  border: 2px solid var(--gs-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-weight: bold;
  color: var(--gs-text-light);
  transition: all 0.3s ease;
}

.gs-step-label {
  font-size: 14px;
  color: var(--gs-text-light);
  max-width: 100px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.gs-progress-step.active .gs-step-icon,
.gs-progress-step.completed .gs-step-icon {
  background: linear-gradient(45deg, var(--gs-gradient-start), var(--gs-gradient-end));
  border-color: var(--gs-primary);
  color: white;
}

.gs-progress-step.active .gs-step-label,
.gs-progress-step.completed .gs-step-label {
  color: var(--gs-primary);
  font-weight: bold;
}

/* Form Content */
.gs-form-content {
  padding: 20px 0;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.gs-form-content h3 {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--gs-border);
  color: var(--gs-text-dark);
  font-size: 24px;
}

.gs-form-group {
  margin-bottom: 25px;
  position: relative;
}

.gs-form-row {
  display: flex;
  margin: 0 -10px;
}

.gs-col-6 {
  flex: 0 0 50%;
  padding: 0 10px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--gs-text-dark);
}

.gs-required::after {
  content: '*';
  color: var(--gs-error);
  margin-left: 5px;
}

input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gs-border);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: var(--gs-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(78, 104, 255, 0.1);
}

.gs-error-message {
  color: var(--gs-error);
  font-size: 13px;
  margin-top: 5px;
  min-height: 20px;
}

/* Form Tooltips */
.gs-form-tooltip {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-left: 5px;
}

.gs-form-tooltip i {
  color: var(--gs-text-light);
  cursor: pointer;
}

.gs-tooltip-text {
  visibility: hidden;
  width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 10;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 13px;
}

.gs-tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.gs-form-tooltip:hover .gs-tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Character Count */
.gs-char-count {
  display: block;
  text-align: right;
  color: var(--gs-text-light);
  font-size: 13px;
}

/* File Upload Dropzone */
.gs-dropzone {
  border: 2px dashed var(--gs-border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background-color: var(--gs-bg-light);
  transition: border-color 0.3s, background-color 0.3s;
}

.gs-dropzone:hover {
  border-color: var(--gs-primary);
  background-color: rgba(78, 104, 255, 0.05);
}

.gs-dropzone-content i {
  font-size: 36px;
  color: var(--gs-primary);
  margin-bottom: 10px;
}

.gs-dropzone-content p {
  margin: 5px 0;
  color: var(--gs-text-light);
}

.gs-browse-btn {
  color: var(--gs-primary);
  font-weight: 500;
  cursor: pointer;
}

.gs-file-support {
  font-size: 13px;
  opacity: 0.7;
}

.gs-selected-file {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: rgba(78, 104, 255, 0.1);
  border-radius: 6px;
  margin-top: 10px;
}

.gs-selected-file i {
  font-size: 18px;
  color: var(--gs-primary);
  margin-right: 10px;
}

.gs-file-name {
  flex-grow: 1;
  text-align: left;
  margin-right: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gs-file-size {
  color: var(--gs-text-light);
  font-size: 14px;
  margin-right: 10px;
}

.gs-remove-file {
  background: none;
  border: none;
  color: var(--gs-error);
  cursor: pointer;
  font-size: 16px;
}

.gs-selected-files {
  text-align: left;
}

.gs-files-list {
  margin-top: 10px;
}

.gs-file-item {
  display: flex;
  align-items: center;
  padding: 8px;
  background-color: rgba(78, 104, 255, 0.05);
  border-radius: 6px;
  margin-bottom: 5px;
}

/* Thumbnail Preview */
.gs-thumbnail-container {
  display: flex;
  gap: 20px;
  align-items: center;
}

.gs-thumbnail-preview {
  flex: 0 0 300px;
  height: 200px;
  border: 1px solid var(--gs-border);
  border-radius: 8px;
  overflow: hidden;
}

.gs-thumbnail-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gs-thumbnail-upload {
  flex: 1;
}

.gs-upload-thumbnail-btn {
  background: linear-gradient(45deg, var(--gs-gradient-start), var(--gs-gradient-end));
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  margin-bottom: 10px;
  transition: all 0.3s;
}

.gs-upload-thumbnail-btn:hover {
  background: linear-gradient(45deg, var(--gs-primary-dark), var(--gs-secondary));
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gs-thumbnail-help {
  font-size: 13px;
  color: var(--gs-text-light);
}

/* Preview Pages Selector */
.gs-preview-pages {
  background-color: var(--gs-bg-light);
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
}

.gs-preview-pages p {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--gs-text-dark);
}

.gs-preview-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* Checkbox & Radio Styles */
.gs-checkbox, .gs-radio {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  margin-bottom: 5px;
}

.gs-checkbox input[type="checkbox"],
.gs-radio input[type="radio"] {
  margin-top: 3px;
  margin-right: 10px;
}

.gs-checkbox-label, .gs-radio-label {
  line-height: 1.5;
}

/* Price Section */
.gs-price-recommendation {
  background: linear-gradient(to right, rgba(78, 104, 255, 0.1), rgba(156, 107, 219, 0.1));
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
}

.gs-price-recommendation h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--gs-primary);
}

.gs-price-range {
  font-size: 24px;
  font-weight: bold;
  margin: 15px 0;
  text-align: center;
}

.gs-price-factors {
  margin-top: 15px;
}

.gs-price-factors p {
  margin-bottom: 5px;
  font-weight: 500;
}

.gs-price-factors ul {
  margin-top: 5px;
  padding-left: 20px;
}

.gs-monetization-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.gs-price-input-wrapper {
  position: relative;
  margin-bottom: 15px;
}

.gs-price-prefix {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gs-text-dark);
}

#material-price {
  padding-left: 40px;
}

.gs-price-slider-container {
  margin-bottom: 15px;
}

#price-slider {
  width: 100%;
  margin: 10px 0;
}

.gs-price-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gs-text-light);
}

.gs-price-info {
  background-color: rgba(78, 104, 255, 0.1);
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
}

/* Rich Text Editor */
.gs-rich-editor-container {
  border: 1px solid var(--gs-border);
  border-radius: 8px;
  overflow: hidden;
}

.gs-editor-toolbar {
  background-color: var(--gs-bg-light);
  border-bottom: 1px solid var(--gs-border);
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.gs-editor-toolbar button {
  background: none;
  border: 1px solid var(--gs-border);
  border-radius: 4px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gs-text-dark);
  transition: all 0.2s;
}

.gs-editor-toolbar button:hover {
  background-color: var(--gs-bg-white);
  border-color: var(--gs-primary);
  color: var(--gs-primary);
}

.gs-editor-toolbar button.active {
  background-color: var(--gs-primary);
  border-color: var(--gs-primary);
  color: white;
}

.gs-rich-editor {
  min-height: 200px;
  padding: 15px;
  overflow-y: auto;
  line-height: 1.6;
}

.gs-rich-editor:focus {
  outline: none;
}

.gs-editor-guide {
  padding: 10px 15px;
  background-color: var(--gs-bg-light);
  border-top: 1px solid var(--gs-border);
  font-size: 13px;
  color: var(--gs-text-light);
}

.gs-editor-guide ul {
  margin-top: 5px;
  padding-left: 20px;
}

/* Quality Checklist */
.gs-quality-checklist {
  background-color: rgba(40, 167, 69, 0.05);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
}

.gs-quality-checklist h4 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--gs-success);
}

.gs-checklist-item {
  margin-bottom: 10px;
}

.gs-terms-agreement {
  margin-top: 10px;
}

.gs-terms-link {
  color: var(--gs-primary);
  text-decoration: none;
}

.gs-terms-link:hover {
  text-decoration: underline;
}

/* Preview Listing */
.gs-preview-listing {
  margin-top: 30px;
  margin-bottom: 30px;
}

.gs-preview-listing h4 {
  margin-bottom: 15px;
}

.gs-preview-card {
  display: flex;
  border: 1px solid var(--gs-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px var(--gs-shadow);
  background-color: white;
}

.gs-preview-thumbnail {
  flex: 0 0 200px;
  height: 140px;
}

.gs-preview-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gs-preview-content {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.gs-preview-content h5 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 18px;
}

.gs-preview-content p {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--gs-text-light);
  font-size: 14px;
}

.gs-preview-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
}

.gs-preview-price {
  font-weight: bold;
  color: var(--gs-primary);
}

.gs-preview-author {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin-top: auto;
}

.gs-preview-author-pic {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 8px;
}

/* Navigation Buttons */
.gs-form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.gs-prev-btn, .gs-next-btn, .gs-submit-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.gs-prev-btn {
  background-color: var(--gs-bg-light);
  border: 1px solid var(--gs-border);
  color: var(--gs-text-light);
}

.gs-prev-btn:hover {
  background-color: var(--gs-bg-white);
  color: var(--gs-text-dark);
}

.gs-next-btn, .gs-submit-btn {
  background: linear-gradient(45deg, var(--gs-gradient-start), var(--gs-gradient-end));
  border: none;
  color: white;
}

.gs-next-btn:hover, .gs-submit-btn:hover {
  background: linear-gradient(45deg, var(--gs-primary-dark), var(--gs-secondary));
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Success Message */
.gs-success-message {
  text-align: center;
  padding: 40px 20px;
}

.gs-success-icon {
  font-size: 64px;
  color: var(--gs-success);
  margin-bottom: 20px;
}

.gs-success-message h3 {
  margin-bottom: 15px;
  color: var(--gs-success);
}

.gs-success-message p {
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.gs-success-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.gs-button {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}

.gs-primary-button {
  background: linear-gradient(45deg, var(--gs-gradient-start), var(--gs-gradient-end));
  color: white;
}

.gs-primary-button:hover {
  background: linear-gradient(45deg, var(--gs-primary-dark), var(--gs-secondary));
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gs-secondary-button {
  background-color: white;
  border: 1px solid var(--gs-primary);
  color: var(--gs-primary);
}

.gs-secondary-button:hover {
  background-color: rgba(78, 104, 255, 0.05);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .gs-upload-container {
    padding: 20px;
  }
  
  .gs-form-row {
    flex-direction: column;
  }
  
  .gs-col-6 {
    width: 100%;
    padding: 0;
  }
  
  .gs-thumbnail-container {
    flex-direction: column;
  }
  
  .gs-thumbnail-preview {
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 15px;
  }
  
  .gs-progress-bar {
    overflow-x: auto;
    padding-bottom: 15px;
  }
  
  .gs-progress-step {
    min-width: 100px;
  }
  
  .gs-preview-card {
    flex-direction: column;
  }
  
  .gs-preview-thumbnail {
    flex: 0 0 auto;
    height: 180px;
  }
  
  .gs-form-navigation {
    flex-direction: column;
    gap: 15px;
  }
  
  .gs-prev-btn, .gs-next-btn, .gs-submit-btn {
    width: 100%;
  }
  
  .gs-success-actions {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .gs-step-label {
    display: none;
  }
  
  .gs-upload-header h2 {
    font-size: 24px;
  }
  
  .gs-upload-header p {
    font-size: 16px;
  }
  
  .gs-form-content h3 {
    font-size: 20px;
  }
}

/* Invalid field styling */
input:invalid, select:invalid, textarea:invalid {
  border-color: var(--gs-error);
}

.is-invalid {
  border-color: var(--gs-error) !important;
  background-color: rgba(220, 53, 69, 0.05);
}