
:root {
    --bg-color: #f4f4f9;
    --text-color: #333;
    --navbar-bg: #333;
    --navbar-text: white;
    --btn-primary: #FF4500;
    --btn-primary-hover: #e03e00;
    --btn-secondary: #FF4500;
    --btn-secondary-hover: #e03e00;
    --modal-bg: #fefefe;
    --modal-text: #333;
  }
  
  .dark-mode {
    --bg-color: #222;
    --text-color: #f4f4f9;
    --navbar-bg: #111;
    --navbar-text: #f4f4f9;
    --btn-primary: #FF6347;
    --btn-primary-hover: #FF4500;
    --btn-secondary: #FF6347;
    --btn-secondary-hover: #FF4500;
    --modal-bg: #333;
    --modal-text: #f4f4f9;
  }
  
  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
  }
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--navbar-bg);
    padding: 1rem;
  }
  .navbar h1 {
    color: var(--navbar-text);
    margin: 0;
  }
  .search-bar {
    display: flex;
    align-items: center;
  }
  .search-bar input[type="text"] {
    padding: 8px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
    width: 250px;
  }
  .search-bar button {
    padding: 8px 12px;
    margin-left: 10px;
    background-color: var(--btn-primary);
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
  }
  .search-bar button:hover {
    background-color: var(--btn-primary-hover);
  }
  .login-btn, .theme-toggle {
    background-color: var(--btn-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    margin-left: 10px;
  }
  .login-btn:hover, .theme-toggle:hover {
    background-color: var(--btn-primary-hover);
  }
  .container {
    text-align: center;
    margin-top: 50px;
  }
  .status {
    margin-top: 20px;
  }
  .action-buttons {
    margin-top: 30px;
  }
  .action-buttons button {
    background-color: var(--btn-secondary);
    color: white;
    border: none;
    padding: 12px 24px;
    margin: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
  }
  .action-buttons button:hover {
    background-color: var(--btn-secondary-hover);
  }
  .action-buttons button i {
    margin-right: 8px;
  }
  #image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
  }
  .image-item {
    margin: 10px;
    text-align: center;
    width: 220px;
    background-color: var(--modal-bg);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  .image-item img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 4px;
  }
  .image-item p {
    margin: 5px 0;
    font-size: 0.9rem;
  }
  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
  }
  .modal-content {
    background-color: var(--modal-bg);
    color: var(--modal-text);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
  }
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  .close:hover,
  .close:focus {
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
  }
  .modal input[type="text"],
  .modal textarea {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    box-sizing: border-box;
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--text-color);
    border-radius: 4px;
  }
  .modal button {
    background-color: var(--btn-secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
  }
  .modal button:hover {
    background-color: var(--btn-secondary-hover);
  }
  .vote-btn, .delete-btn {
    background-color: var(--btn-secondary);
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    margin-top: 5px;
    font-size: 0.9rem;
  }
  .vote-btn:hover {
    background-color: var(--btn-secondary-hover);
  }
  .vote-count {
    font-size: 0.9rem;
    margin-top: 5px;
  }
  .view-versions-btn {
      background-color: orange;
      color: white;
      border: none;
      padding: 8px 12px;
      font-size: 14px;
      border-radius: 4px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }
    
    .view-versions-btn:hover {
      background-color: darkorange;
    }
    
  .loading {
    position: relative;
    min-height: 200px;
  }
  .loading::after {
    content: "Loading...";
    position: absolute; top: 50%;
    left: 50%;
  }
  /* Modal container styles */
  .modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
  z-index: 1000;
  }
  
  /* Modal content box */
  .modal-content {
  position: relative;
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  }
  
  /* Close button */
  .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  }
  
  /* Button styling */
  button {
  display: inline-block;
  padding: 10px 20px;
  margin: 10px 5px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  border: none;
  background-color: #007bff;
  color: white;
  }
  
  /* Input and textarea styling */
  input[type="text"],
  textarea {
  width: 100%;
  padding: 8px;
  margin: 5px 0;
  border-radius: 4px;
  border: 1px solid #ccc;
  }
  
  /* Responsive adjustments */
  @media (max-width: 600px) {
  .modal-content {
    width: 90%;
  }
  }
  /* Add these styles to your existing CSS */
  .preview-container {
  margin-bottom: 1rem;
  }
  
  .preview-wrapper {
  background: var(--bg-color);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  }
  
  .preview-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f0f0f0;
  }
  
  .preview-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  }
  
  .loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-color);
  }
  
  .success-modal {
  display: flex !important;
  animation: fadeIn 0.3s ease;
  }
  
  .success-preview {
  width: 100%;
  height: 200px;
  margin: 1rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
  }
  
  .success-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  }
  
  .success-details {
  text-align: center;
  margin: 1rem 0;
  }
  
  @keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
  }
  .logo-container {
    position: absolute;
    top: 10px;
    left: 10px;
  }
  
  .logo {
    width: 500px; /* Adjust the size as needed */
    height: auto;
  }
  
  
