/* ===================================
   Base Styles
   =================================== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  line-height: 1.4;
  background: white;
  color: black;
}

/* ===================================
   Typography
   =================================== */
h1 {
  font-size: 24px;
  font-weight: normal;
  margin-bottom: 10px;
}

/* ===================================
   Links
   =================================== */
a {
  color: #0000EE;
  text-decoration: underline;
  font-family: Arial, sans-serif;
}

a:visited {
  color: #0000EE;
}

a:hover {
  background: #ffffcc;
}

/* ===================================
   Filename Styles
   =================================== */
.filename {
  font-size: 14px;
  margin: 5px 0;
  word-break: break-all;
}

/* ===================================
   Lists
   =================================== */
ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

li {
  padding: 10px 0;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===================================
   Thumbnail Styles
   =================================== */
.thumbnail-container {
  margin: 10px 0;
  display: inline-block;
}

.thumbnail {
  max-width: 200px;
  max-height: 200px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
  background: white;
}

/* ===================================
   Meta Info
   =================================== */
.meta {
  font-size: 12px;
  color: #666;
}

/* ===================================
   Button Styles
   =================================== */
.btn-copy, .btn-show {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 4px;
  background: #4CAF50;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.btn-copy:hover, .btn-show:hover {
  background: #45a049;
}

.btn-delete {
  color: #f44336;
  text-decoration: none;
  padding: 8px 12px;
  margin: 0 4px;
  font-size: 14px;
}

/* ===================================
   Copy Notification Animation
   =================================== */
.copy-notification {
  position: relative;
  display: none;
}

.copy-notification.show {
  display: block;
  animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  15% {
    opacity: 1;
    transform: translateY(0);
  }
  85% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.notification-icon {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #4CAF50;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}

.btn-copy-container {
  position: relative;
  display: inline-block;
}

/* ===================================
   Upload Link Styles
   =================================== */
.upload-link {
  font-size: 24px;
  font-weight: normal;
  margin-bottom: 10px;
  color: #0000EE;
  text-decoration: underline;
  font-family: Arial, sans-serif;
  display: block;
}

.upload-link:visited {
  color: #0000EE;
}

.upload-link:hover {
  background: #ffffcc;
}

/* ===================================
   Dark Mode Toggle Button
   =================================== */
.dark-mode-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.dark-mode-toggle:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* ===================================
   Dark Mode Styles
   =================================== */
@media (prefers-color-scheme: dark) {
  body {
    background: #1a1a1a;
    color: #e0e0e0;
  }
  
  a {
    color: #58a6ff;
  }
  
  a:visited {
    color: #58a6ff;
  }
  
  a:hover {
    background: #2a2a2a;
  }
  
  .upload-link {
    color: #58a6ff;
  }
  
  .upload-link:hover {
    background: #2a2a2a;
  }
  
  ul {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    padding: 10px;
    border-radius: 4px;
  }
  
  li {
    border-bottom: 1px solid #3a3a3a;
  }
  
  .thumbnail {
    border: 1px solid #3a3a3a;
    background: #1a1a1a;
  }
  
  .btn-copy, .btn-show {
    background: #4a4a4a;
    color: #e0e0e0;
  }
  
  .btn-copy:hover, .btn-show:hover {
    background: #5a5a5a;
  }
  
  .btn-delete {
    color: #ff6b6b;
  }
  
  .notification-icon {
    background: #4a4a4a;
    color: #e0e0e0;
  }
  
  input[type="file"] {
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #3a3a3a;
  }
  
  button[type="submit"] {
    background: #4a4a4a;
    color: #e0e0e0;
  }
}

/* ===================================
   Manual Dark Mode (when .dark-mode class is added)
   =================================== */
body.dark-mode {
  background: #1a1a1a !important;
  color: #e0e0e0 !important;
}

body.dark-mode a {
  color: #58a6ff !important;
}

body.dark-mode a:visited {
  color: #58a6ff !important;
}

body.dark-mode a:hover {
  background: #2a2a2a !important;
}

body.dark-mode .upload-link {
  color: #58a6ff !important;
}

body.dark-mode .upload-link:hover {
  background: #2a2a2a !important;
}

body.dark-mode ul {
  background: #2a2a2a !important;
  border: 1px solid #3a3a3a !important;
  padding: 10px;
  border-radius: 4px;
}

body.dark-mode li {
  border-bottom: 1px solid #3a3a3a !important;
}

body.dark-mode .thumbnail {
  border: 1px solid #3a3a3a !important;
  background: #1a1a1a !important;
}

body.dark-mode .btn-copy, 
body.dark-mode .btn-show {
  background: #4a4a4a !important;
  color: #e0e0e0 !important;
}

body.dark-mode .btn-copy:hover, 
body.dark-mode .btn-show:hover {
  background: #5a5a5a !important;
}

body.dark-mode .btn-delete {
  color: #ff6b6b !important;
}

body.dark-mode .notification-icon {
  background: #4a4a4a !important;
  color: #e0e0e0 !important;
}

body.dark-mode input[type="file"] {
  background: #2a2a2a !important;
  color: #e0e0e0 !important;
  border: 1px solid #3a3a3a !important;
}

body.dark-mode button[type="submit"] {
  background: #4a4a4a !important;
  color: #e0e0e0 !important;
}

/* ===================================
   Layout Styles
   =================================== */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

ul {
  max-width: 1000px;
}
