.create-post-container {
  padding: 20px;
  background: #d8d8d8;
  min-height: calc(100vh - 90px);
   
  
}


.create-post-container {
  background: url("https://static.vecteezy.com/system/resources/previews/058/170/767/large_2x/smooth-blue-and-purple-smoke-waves-flowing-gracefully-on-a-transparent-background-blue-purple-smooth-smoke-wave-isolated-on-transparent-background-free-png.png") no-repeat center center / cover;
}

.create-post-form {
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  background: rgb(247, 240, 247);
  border: 1px solid #999;
  
}

.create-post-form h2 {
  margin: 0 0 12px 0;
  font-size: 28px;
  font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif
}

.create-post-input,
.create-post-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  margin-bottom: 14px;
  border: 1px solid #777;
  border-radius: 0;
  background: #fff;
  font-size: 14px;
   
}

.create-post-textarea {
  min-height: 120px;
  resize: vertical;
   display: flex;
  flex-direction: column;
}

.image-preview-container {
  margin-bottom: 10px;
  border: 1px solid #aaa;
  background: #fff;
  padding: 6px;
}

.image-preview {
  max-width: 100%;
  max-height: 240px;
  display: block;
  object-fit: contain;
}

.create-post-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}

.cancel-button,
.submit-button {
  padding: 6px 10px;
  border: 1px solid #666;
  border-radius: 0;
  background: #e9e9e9;
  color: #111;
  cursor: pointer;
}

.submit-button:disabled,
.cancel-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.create-post-error {
  color: #a00000;
  margin: 0 0 8px 0;
  font-size: 13px;
}

.success-message {
  border: 1px solid #888;
  background: #fff;
  padding: 10px;
}

@media (max-width: 600px) {
  .create-post-form {
    width: 100%;
    padding: 10px;
  }

  .create-post-container {
    padding: 10px;
  }

  .create-post-form h2 {
    font-size: 22px;
  }

  .create-post-input,
  .create-post-textarea {
    font-size: 13px;
  }

  .create-post-actions {
    flex-direction: column;
  }

  .submit-button,
  .cancel-button {
    width: 100%;
  }
}
