/* Centered login embed panel */
.login-embed-panel {
  background: #000;
  border: 2px solid #fff;
  border-radius: 16px;
  box-shadow: 0 0 24px #0ff4;
  padding: 2.5em 2.5em 2em 2.5em;
  margin: 4em auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 320px;
  max-width: 380px;
}
.login-form-embed {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  width: 100%;
  margin-bottom: 1.2em;
}
.login-label {
  color: #0ff;
  font-weight: 600;
  margin-bottom: 0.2em;
  margin-top: 0.5em;
  font-size: 1.05em;
}
.login-input-embed {
  background: #000;
  color: #fff;
  border: 1.5px solid #000;
  border-radius: 7px;
  padding: 0.7em 1em;
  font-size: 1.1em;
  outline: none;
  box-shadow: none;
  transition: border 0.2s, box-shadow 0.2s;
}
.login-input-embed:focus {
  border: 2px solid #fff;
  box-shadow: none;
}
.login-btn-embed {
  background: #000;
  color: #fff;
  border: 1.5px solid #000;
  border-radius: 7px;
  padding: 0.7em 0;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1.2em;
  box-shadow: none;
  transition: background 0.2s, color 0.2s;
}
.login-btn-embed:hover {
  background: #111;
  color: #fff;
}
/* Smaller Google login button for login page */
.google-login-btn {
  background: #fff;
  color: #222;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95em;
  font-weight: 500;
  padding: 0.4em 1.2em;
  margin: 1em auto 0 auto;
  display: block;
  width: fit-content;
  box-shadow: 0 0 6px #0ff2;
  transition: background 0.2s, color 0.2s;
}
.google-login-btn:hover {
  background: #0ff;
  color: #000;
}
/* File 3-dots menu styles */
.file-menu-wrapper {
  display: inline-block;
  position: relative;
}
.file-menu-btn {
  background: #222;
  color: #fff;
  border: none;
  font-size: 1.3em;
  padding: 0.2em 0.6em;
  border-radius: 50%;
  cursor: pointer;
  margin-left: 0.5em;
  transition: background 0.2s, color 0.2s;
}
.file-menu-btn:hover {
  background: #0ff;
  color: #000;
}
.file-menu {
  display: none;
  position: fixed;
  background: #181818;
  border: 1px solid #0ff;
  border-radius: 8px;
  box-shadow: 0 2px 12px #0ff6;
  min-width: 140px;
  z-index: 1000;
  padding: 0.3em 0;
}
.file-menu button {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  padding: 0.5em 1em;
  font-size: 1em;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.file-menu button:hover {
  background: #0ff;
  color: #000;
}
/* Make file boxes bigger */
.file-window {
  background: #181818;
  border: 1.5px solid #0ff;
  border-radius: 14px;
  box-shadow: 0 0 12px #0ff4;
  padding: 1.5em 1.5em 1.5em 1.5em;
  margin: 1.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 220px;
  min-height: 180px;
  max-width: 320px;
  max-height: 260px;
  font-size: 1.25em;
  transition: box-shadow 0.2s, border 0.2s;
  position: relative;
}
.file-window:hover {
  box-shadow: 0 0 24px #0ffb;
  border: 2px solid #fff;
}
.file-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5em;
}
.file-header .icon {
  font-size: 2.5em;
  flex: 1;
}

.file-header .icon.video-icon {
  font-size: 0.7em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
  line-height: 1.2;
}
.file-header .file-menu-wrapper {
  position: relative;
}
.storage-embed {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1em;
  font-size: 1.1em;
  color: #0ff;
  background: #111;
  border: 1px solid #0ff;
  border-radius: 8px;
  padding: 0.7em 2em;
  box-shadow: 0 0 8px #0ff4;
  font-weight: bold;
}
/* User dropdown styles */
.user-dropdown {
  position: absolute;
  top: 10px;
  right: 30px;
  z-index: 20;
}
.user-btn {
  background: #111;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 6px;
  padding: 0.5em 1em;
  cursor: pointer;
  font-weight: 600;
}
.user-panel {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  background: #222;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 2px 8px #000a;
  padding: 1em;
  font-size: 1em;
}
.welcome-section p {
  margin-top: 0.05em;
}
/* Welcome section in normal flow, above the grid */
.welcome-section {
  position: static;
  width: auto;
  text-align: left;
  margin: 0 0 1.2em 0;
  z-index: 1;
  pointer-events: auto;
}
.welcome-section h2, .welcome-section p {
  pointer-events: auto;
}
footer {
  position: fixed;
  right: 0;
  bottom: 0;
  background: #111;
  color: #fff;
  padding: 0.5em 2em;
  border-radius: 12px 0 0 0;
  z-index: 10;
  box-shadow: 0 0 8px #000a;
}
/* Glowing effect for VoltageDrive texts */
.voltagedrive-text {
/* Login page styles */
.login-bg {
  background: #000;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
    min-height: 100vh;
    height: 100vh;
}

.login-panel {
  background: #111;
  border: 1px solid #fff;
  border-radius: 12px;
  box-shadow: 0 0 16px #0ff8, 0 0 2px #fff;
  padding: 2em 3em;
  margin-top: 1em;
  text-align: center;
}

.login-brand {
  font-size: 2.5em;
  margin-bottom: 0.2em;
  text-shadow: 0 0 8px #0ff, 0 0 2px #fff;
  position: relative;
  left: 2%;
}

.login-btn {
  background: #0ff;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 0.7em 2em;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1em;
  box-shadow: 0 0 8px #0ff8;
  transition: background 0.2s, color 0.2s;
}
.login-btn:hover {
  background: #fff;
  color: #0ff;
}

.login-error {
  color: #f44;
  margin-top: 1em;
  min-height: 1.5em;
  font-weight: bold;
}

.login-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #111;
  color: #fff;
  text-align: center;
  padding: 0.5em 0;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 0 8px #000a;
  z-index: 10;
}

/* Upload section styles */
.upload-section {
  display: flex;
  align-items: center;
  gap: 1em;
  margin: 2em 0 1em 0;
  justify-content: center;
}
.upload-input {
  background: #222;
  color: #fff;
  border: 1px solid #0ff;
  border-radius: 6px;
  padding: 0.5em;
  font-size: 1em;
}
.upload-btn {
  background: #0ff;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 0.5em 1.5em;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 8px #0ff8;
  transition: background 0.2s, color 0.2s;
}
.upload-btn:hover {
  background: #fff;
  color: #0ff;
}
.upload-status {
  color: #0ff;
  font-size: 1em;
  margin-left: 1em;
}

/* Dropdown login button */
.dropdown-login-btn {
  background: #0ff;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 0.4em 1.2em;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1em;
  box-shadow: 0 0 8px #0ff8;
  transition: background 0.2s, color 0.2s;
  width: 100%;
}
.dropdown-login-btn:hover {
  background: #fff;
  color: #0ff;
}

/* Login form styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: 1em;
}
.login-input {
  background: #222;
  color: #fff;
  border: 1px solid #0ff;
  border-radius: 6px;
  padding: 0.7em 1em;
  font-size: 1.1em;
  outline: none;
  box-shadow: 0 0 8px #0ff4;
  transition: border 0.2s, box-shadow 0.2s;
}
.login-input:focus {
  border: 1.5px solid #fff;
  box-shadow: 0 0 12px #0ffb;
}
  color: #fff;
  font-weight: 600;
}
/* File grid and file window styles */
.file-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: flex-start;
  margin: 2rem 0;
}

.file-window {
  width: 180px;
  height: 160px;
  background: #111;
  border: 2px solid #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
    margin: 0 auto;
  position: relative;
  box-shadow: 0 2px 8px #000a;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.file-window:hover {
  border-color: #0ff;
  box-shadow: 0 4px 16px #0ff4;
}

.file-name-tooltip {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background: #000;
  color: #fff;
  padding: 0.4em 0.6em;
  border-radius: 6px;
  font-size: 0.8em;
  opacity: 0;
  pointer-events: none;
  white-space: normal;
  word-break: break-word;
  max-width: 150px;
  text-align: center;
  line-height: 1.2;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 2;
}

.file-window:hover .file-name-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.file-info {
  width: calc(100% - 16px);
  margin: 6px auto 0 auto;
  text-align: left;
  font-family: 'Roboto', 'Arial', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #e8eaed;
  line-height: 1.35;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
/* Pure black background with white accents */
body {
  background: #000;
  color: #fff;
  font-family: system-ui, sans-serif;
  margin: 0;
  min-height: 100vh;
}

a, button, input, select, textarea, label {
  color: #fff;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 0.5em 1em;
  transition: background 0.2s, color 0.2s;
}

a:hover, button:hover, input:focus, select:focus, textarea:focus {
  background: #fff;
  color: #000;
}

header, nav, footer {
  background: #111;
  color: #fff;
  border-bottom: 1px solid #222;
}

main, section, article, .container {
  background: #000;
  color: #fff;
}

.container {
  position: relative;
  z-index: 1;
}

.footer-overlay {
  position: fixed;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
  z-index: 0;
}

.footer-overlay p {
  margin: 0;
}

hr {
  border-color: #fff;
}

::-webkit-scrollbar {
  background: #111;
}
::-webkit-scrollbar-thumb {
  background: #fff;
  border-radius: 8px;
}

/* Shareable links page styles */
.links-container {
  max-width: 900px;
  margin: 2em auto;
  padding: 2em;
}

.links-container h2 {
  color: #0ff;
  font-size: 1.8em;
  margin-bottom: 1.5em;
  text-shadow: 0 0 10px #0ff4;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5em;
}

.link-card {
  background: #181818;
  border: 1.5px solid #0ff;
  border-radius: 10px;
  padding: 1.5em;
  box-shadow: 0 0 12px #0ff4;
  transition: box-shadow 0.2s, border 0.2s;
}

.link-card:hover {
  box-shadow: 0 0 20px #0ffb;
  border: 2px solid #fff;
}

.link-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1em;
}

.link-name {
  flex: 1;
}

.link-name strong {
  color: #fff;
  font-size: 1.1em;
  word-break: break-word;
}

.link-date {
  color: #888;
  font-size: 0.85em;
  margin-top: 0.3em;
}

.link-delete-btn {
  background: none;
  border: none;
  color: #f44;
  font-size: 1.3em;
  cursor: pointer;
  padding: 0;
  margin-left: 0.5em;
  transition: color 0.2s;
}

.link-delete-btn:hover {
  color: #f00;
}

.link-url {
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 0.8em;
  margin-bottom: 1em;
  display: flex;
  gap: 0.5em;
  align-items: center;
}

.link-url code {
  flex: 1;
  color: #0ff;
  font-family: monospace;
  font-size: 0.85em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-copy-btn {
  background: #0ff;
  color: #000;
  border: none;
  border-radius: 4px;
  padding: 0.4em 0.8em;
  font-size: 0.9em;
  cursor: pointer;
  font-weight: bold;
  white-space: nowrap;
  transition: background 0.2s;
}

.link-copy-btn:hover {
  background: #fff;
}

.link-info {
  color: #888;
  font-size: 0.9em;
}

/* Preview embed styling */
.preview-embed {
  width: 100%;
  max-width: 700px;
  margin-top: 1em;
  display: flex;
  justify-content: center;
}

.preview-embed iframe {
  max-width: 100%;
  height: auto;
}

.video-preview {
  width: 100%;
  max-width: 320px;
  margin-top: 0.6em;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 8px #0ff4;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Breadcrumb navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 1.5em;
  padding: 0.8em 1.2em;
  background: #111;
  border-left: 3px solid #0ff;
  border-radius: 4px;
}

.breadcrumb-item {
  color: #888;
  font-size: 0.95em;
  transition: color 0.2s;
}

.breadcrumb-item:hover {
  color: #0ff;
}
}

/* Accent for icons or highlights */
.accent, .icon, .highlight {
  color: #fff;
}

/* For disabled elements */
:disabled {
  opacity: 0.5;
  border-color: #444;
}
