* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #525659;
}

.toolbar {
  background: #2d2d2d;
  color: white;
  padding: 15px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toolbar h1 {
  font-size: 18px;
  font-weight: normal;
}

.toolbar-actions {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #4285f4;
  color: white;
}

.btn-primary:hover {
  background: #357ae8;
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 1px solid white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.document-container {
  max-width: 850px;
  margin: 30px auto;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: relative;
}

.page {
  background: white;
  padding: 50px 60px;
  position: relative;
  min-height: 800px;
}

.doc-header {
  text-align: center;
  border-bottom: 3px solid #000;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.doc-header h1 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 6px;
}

.doc-header p {
  font-size: 11px;
  margin: 2px 0;
  color: #333;
}

.doc-header h2 {
  font-size: 16px;
  font-weight: bold;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid #999;
}

.form-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}

.form-field {
  position: relative;
  margin-bottom: 22px;
}

.form-field-label {
  font-size: 12px;
  font-weight: bold;
  color: #000;
  margin-bottom: 4px;
  display: block;
}

.fillable-input,
.fillable-select {
  width: 100%;
  border: none;
  border-bottom: 2px solid #4285f4;
  background: rgba(66, 133, 244, 0.08);
  padding: 10px 8px;
  font-size: 13px;
  font-family: Arial, sans-serif;
  transition: all 0.2s;
  color: #000;
}

.fillable-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234285f4' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 30px;
}

.fillable-input:focus,
.fillable-select:focus {
  outline: none;
  background: rgba(66, 133, 244, 0.15);
  border-bottom-color: #1a73e8;
}

.fillable-input::placeholder {
  color: #999;
  font-style: italic;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

.file-upload-container {
  position: relative;
  margin-bottom: 22px;
}

.file-upload-box {
  border: 2px dashed #4285f4;
  background: rgba(66, 133, 244, 0.05);
  padding: 30px;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.file-upload-box:hover {
  background: rgba(66, 133, 244, 0.1);
  border-color: #1a73e8;
}

.file-upload-box:focus {
  outline: 2px solid #4285f4;
  outline-offset: 2px;
  background: rgba(66, 133, 244, 0.1);
}

.file-upload-box.has-file {
  background: rgba(76, 175, 80, 0.1);
  border-color: #4caf50;
}

.file-upload-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.file-upload-text {
  font-size: 13px;
  color: #666;
}

.file-upload-text strong {
  color: #4285f4;
}

.file-name {
  margin-top: 10px;
  font-size: 12px;
  color: #4caf50;
  font-weight: bold;
}

input[type="file"] {
  display: none;
}

.image-preview-container {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  text-align: center;
  position: relative;
}

.image-preview-container img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.remove-image-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: white;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.remove-image-btn:hover {
  background: #dc3545;
  border-color: #dc3545;
  color: white;
  transform: scale(1.1);
}

.remove-image-btn:focus {
  outline: 2px solid #dc3545;
  outline-offset: 2px;
}




@media print {
  body {
    background: white;
    padding: 0;
  }
  .toolbar,
  .completion-indicator {
    display: none;
  }
  .document-container {
    box-shadow: none;
    margin: 0;
  }
}
