body {
  margin: 0;
  padding: 3rem 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #000000;
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100dvh;
  width: 100dvw;
  overflow: hidden;
  min-height: 100vh;
}


h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  animation: fadeInDown 1s ease-out;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1a1a1a;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease-out;
  max-width: 400px;
  width: 100%;
}

input[type="file"] {
  position: relative;
  overflow: hidden;
  display: inline-block;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 10px;
  color: #e0e0e0;
  padding: 0.75rem 1rem;
  width: 100%;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  box-shadow: inset 0 0 6px #1a73e8aa;
}

input[type="file"]:hover {
  background: #333;
  border-color: #61dafb;
  box-shadow: 0 0 10px #61dafbaa, inset 0 0 8px #61dafbaa;
  color: #61dafb;
}

input[type="file"]::file-selector-button {
  cursor: pointer;
  background: #000000;
  border: none;
  padding: 0.5rem 1.2rem;
  margin-right: 0.5rem;
  border-radius: 10px;
  color: #61dafb;
  font-weight: 700;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 10px #61dafb88;
}

input[type="file"]::file-selector-button:hover {
  background: #b30000;
  color: white;
  box-shadow: 0 0 15px #b30000cc;
}
button {
  background: #000000;
  color: white;
  border: none;
  padding: 0.8rem 1.6rem;
  margin-top: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 0 10px #706544aa, inset 0 0 8px #706544aa;
  font-size: 1.5rem;
  width: 100%;
}

button:hover {
  background: #b30000;
  box-shadow: 0 0 10px #800000, inset 0 0 8px #800000;
  transform: translateY(-2px);
}

#preview {
  max-width: 100%;
  width: 300px;
  margin-top: 2rem;
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.6);
  animation: fadeIn 1s ease-out;
  transition: transform 0.3s ease;
}

#preview:hover {
  transform: scale(1.02);
}

#videoPreview {
  max-width: 100%;
  width: 300px;
  margin-top: 2rem;
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.6);
  animation: fadeIn 1s ease-out;
  transition: transform 0.3s ease;
}

#videoPreview:hover {
  transform: scale(1.02);
}

#link {
  margin-top: 1rem;
  font-size: 1.05rem;
  animation: fadeIn 1s ease-out;
  text-align: center;
}

#link a {
  color: #61dafb;
  text-decoration: none;
  transition: color 0.3s ease;
}

#link a:hover {
  color: #90e0ff;
  text-decoration: underline;
}

#status {
  margin-top: 1rem;
  font-style: italic;
  color: #bbbbbb;
  animation: fadeIn 0.8s ease-out;
  text-align: center;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


.api-options {
  margin-top: 4rem;
  text-align: center;
  animation: fadeIn 1s ease-out;
}

.api-options h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.api-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.api-card {
  background: #1a1a1a;
  padding: 1rem 2rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(97, 218, 251, 0.3);
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s, box-shadow 0.3s;
}

.api-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(97, 218, 251, 0.5);
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
}

.modal-content {
  background-color: #1a1a1a;
  margin: 10% auto;
  padding: 2rem;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 14px;
  color: #e0e0e0;
  box-shadow: 0 0 24px rgba(0, 123, 255, 0.6);
  animation: fadeInUp 0.5s ease-out;
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover {
  color: white;
}

.image-expired-container {
  margin-top: 3rem;
  text-align: center;
  animation: fadeIn 1s ease-out;
  color: #ff4d4d;
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(255, 77, 77, 0.4);
  max-width: 400px;
  width: 100%;
}

.image-expired-container h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #ff4d4d;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.image-expired-container .upload-link {
  display: inline-block;
  margin-top: 1rem;
  background: #000000;
  color: #61dafb;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 10px #61dafb88, inset 0 0 6px #61dafbaa;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.image-expired-container .upload-link:hover {
  background: #b30000;
  color: #ffffff;
  box-shadow: 0 0 15px #b30000cc, inset 0 0 10px #b30000aa;
  transform: translateY(-2px);
}


/* Add these styles to your existing CSS file */

.user-container {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-actions a {
    text-decoration: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.dashboard-btn {
    background-color: #6441a5; /* Twitch Purple */
}
.dashboard-btn:hover {
    background-color: #7d5bbe;
}

.logout-btn {
    background-color: #c4302b;
}

.logout-btn:hover {
    background-color: #d9534f;
}

.twitch-login-btn {
    display: inline-block;
    background-color: #6441a5; /* Twitch Purple */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.twitch-login-btn:hover {
    background-color: #7d5bbe;
}