/* Minimal Oldschool Dark Theme */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --text-muted: #606060;
  --border-color: #333333;
  --accent-primary: #00ff00;
  --accent-secondary: #00cc00;
  --success: #00ff00;
  --warning: #ffff00;
  --danger: #ff0000;
  --info: #00ffff;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Courier New', 'Monaco', monospace;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.4;
  font-size: 14px;
}

/* Layout */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
header {
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

header h1 {
  font-size: 20px;
  color: var(--accent-primary);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Mobile menu toggle - hidden by default, shown on mobile */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}

/* Desktop navigation - ensure it's visible on larger screens */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  
  nav {
    display: flex !important;
    flex-direction: row;
    width: auto;
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 0;
    gap: 8px;
  }
  
  nav a {
    padding: 6px 12px;
    border: 1px solid transparent;
    text-align: center;
    font-size: 11px;
    border-bottom: none;
  }
  
  nav a:hover {
    background: transparent;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
  }
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid transparent;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  white-space: nowrap;
}

nav a:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* Auth status */
.auth-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

#user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

#user-pubkey-short {
  color: var(--text-primary);
  font-size: 10px;
  font-family: monospace;
  padding: 4px 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 2px;
}

/* Sections */
.section {
  display: none;
}

.section.active {
  display: block;
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--border-color);
  padding: 40px 20px;
  text-align: center;
  background-color: var(--bg-secondary);
  cursor: pointer;
  position: relative;
}

.upload-area:hover {
  border-color: var(--accent-primary);
}

.upload-area.drag-over {
  border-color: var(--accent-primary);
  background-color: var(--bg-tertiary);
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.upload-area h3 {
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.upload-area p {
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
}

#file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Upload Progress */
.upload-progress {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 15px;
  margin: 20px 0;
}

.upload-progress.hidden {
  display: none;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-header h4 {
  font-size: 14px;
  color: var(--text-primary);
  text-transform: uppercase;
}

#upload-cancel {
  cursor: pointer;
  color: var(--danger);
  padding: 2px 5px;
  border: 1px solid var(--danger);
}

#upload-cancel:hover {
  background-color: var(--danger);
  color: var(--bg-primary);
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background-color: var(--accent-primary);
  width: 0%;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Upload Options */
.upload-options {
  margin: 20px 0;
  padding: 15px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.upload-options label {
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
}

.upload-options input[type="checkbox"] {
  margin-right: 8px;
}

/* Buttons */
button, .action-btn {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 15px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

button:hover, .action-btn:hover {
  background-color: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

.action-btn.primary {
  background-color: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

.action-btn.danger {
  background-color: var(--bg-tertiary);
  color: var(--danger);
  border-color: var(--danger);
}

.action-btn.danger:hover {
  background-color: var(--danger);
  color: var(--bg-primary);
}

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.service-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 20px;
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.service-header h3 {
  font-size: 14px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-indicator {
  font-size: 14px;
}

.service-info p {
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.service-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* System Info */
.system-info {
  background-color: var(--bg-secondary);
  padding: 20px;
  border: 1px solid var(--border-color);
}

.system-info h3 {
  margin-bottom: 15px;
  color: var(--text-primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 5px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 20px;
  justify-content: space-between;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
}

.info-item:last-child {
  border-bottom: none;
}

.info-item label {
  color: var(--text-secondary);
  text-transform: uppercase;
}

.info-item span {
  color: var(--accent-primary);
  font-family: inherit;
}

/* Enhanced Stats */
.enhanced-stats {
  margin-top: 30px;
}

.stats-section {
  margin-bottom: 30px;
}

.stats-section h3 {
  margin-bottom: 15px;
  color: var(--text-primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 5px;
}

.stat-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 15px;
  text-align: center;
}

.stat-header {
  color: var(--text-secondary);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.stat-value {
  color: var(--accent-primary);
  font-size: 16px;
  font-weight: bold;
  font-family: inherit;
}

/* Status color coding */
.status-ok {
  color: var(--success) !important;
}

.status-error {
  color: var(--danger) !important;
}

.status-warning {
  color: var(--warning) !important;
}

/* About Section */
.about-header {
  text-align: left;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.about-header h2 {
  font-size: 20px;
  margin-bottom: 5px;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.about-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-primary);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 5px;
}

.about-content h4 {
  margin-top: 15px;
  margin-bottom: 8px;
  color: var(--accent-primary);
  font-size: 14px;
  text-transform: uppercase;
}

.intro-section p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Storage Flow */
.storage-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.flow-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 20px;
  text-align: left;
  flex: 1;
  min-width: 200px;
}

.flow-icon {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--accent-primary);
}

.flow-content strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 5px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.flow-content p {
  color: var(--text-secondary);
  font-size: 11px;
  margin: 0;
}

.flow-arrow {
  font-size: 18px;
  color: var(--accent-primary);
}

/* Architecture */
.arch-overview {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 20px;
  margin: 15px 0;
}

.tech-details {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 15px;
  margin: 10px 0;
}

.tech-details ul {
  margin: 10px 0;
  padding-left: 15px;
}

.tech-details li {
  margin-bottom: 5px;
  color: var(--text-secondary);
  font-size: 12px;
}

/* Pipeline Steps */
.pipeline-steps {
  display: flex;
  gap: 15px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.step {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 15px;
  flex: 1;
  min-width: 180px;
}

.step-number {
  background: var(--accent-primary);
  color: var(--bg-primary);
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 11px;
  margin-bottom: 8px;
}

.step-content strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 5px;
  font-size: 12px;
  text-transform: uppercase;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 11px;
  margin: 0;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 15px;
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--accent-primary);
}

.feature-content h4 {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feature-content p {
  color: var(--text-secondary);
  font-size: 11px;
  margin: 0;
}

/* Component List */
.component-list {
  margin-top: 20px;
}

.component {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 20px;
  margin-bottom: 15px;
}

.component h4 {
  color: var(--accent-primary);
  margin-bottom: 8px;
  font-size: 14px;
  text-transform: uppercase;
}

.component p {
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-size: 12px;
}

.component-specs {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.component-specs span {
  background: var(--bg-tertiary);
  color: var(--accent-primary);
  padding: 3px 8px;
  border: 1px solid var(--border-color);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* API Section */
.api-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.api-tab {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-bottom: none;
  padding: 10px 15px;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.api-tab.active {
  background: var(--bg-primary);
  color: var(--accent-primary);
}

.api-tab:hover {
  color: var(--accent-primary);
}

.api-content {
  display: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 20px;
}

.api-content.active {
  display: block;
}

.api-content h4 {
  margin-bottom: 15px;
  color: var(--text-primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.endpoint-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-color);
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 15px;
  background: var(--bg-tertiary);
}

.method {
  padding: 2px 6px;
  font-size: 10px;
  font-weight: bold;
  min-width: 35px;
  text-align: center;
  color: var(--bg-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.method.get { background: var(--success); }
.method.post { background: var(--info); }
.method.put { background: var(--warning); color: var(--bg-primary); }
.method.delete { background: var(--danger); }

.endpoint code {
  background: var(--bg-primary);
  padding: 3px 8px;
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 11px;
  color: var(--accent-primary);
  flex: 1;
}

.endpoint .desc {
  color: var(--text-secondary);
  font-size: 11px;
  flex: 2;
}

/* Tech Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.tech-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 15px;
}

.tech-item h4 {
  color: var(--accent-primary);
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tech-item p {
  color: var(--text-secondary);
  font-size: 11px;
  margin: 0;
}

/* Protocol Badges */
.protocols-section {
  text-align: left;
}

.protocol-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.protocol-badge {
  background: var(--bg-tertiary);
  color: var(--accent-primary);
  padding: 5px 10px;
  border: 1px solid var(--accent-primary);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* User Stats */
.user-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 15px;
  text-align: center;
}

.stat-number {
  font-size: 18px;
  font-weight: bold;
  color: var(--accent-primary);
  margin-bottom: 5px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-placeholder .stat-number {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

.stat-note {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* File Management */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.dashboard-header h2 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dashboard-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.view-toggle {
  display: flex;
  border: 1px solid var(--border-color);
}

.view-btn {
  padding: 5px 10px;
  background: var(--bg-secondary);
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-secondary);
}

.view-btn.active {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

/* File Filters */
.file-filters {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.filter-btn {
  padding: 8px 15px;
  background: var(--bg-secondary);
  border: none;
  border-right: 1px solid var(--border-color);
  cursor: pointer;
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-btn:last-child {
  border-right: none;
}

.filter-btn.active {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.filter-btn:hover {
  color: var(--accent-primary);
}

/* File Grid */
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
}

.file-card {
  background: var(--bg-secondary);
  padding: 15px;
  cursor: pointer;
}

.file-card:hover {
  background: var(--bg-tertiary);
}

.file-preview {
  text-align: center;
  font-size: 32px;
  margin-bottom: 10px;
  color: var(--accent-primary);
}

.file-name {
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--text-primary);
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.file-meta span {
  font-size: 9px;
  padding: 2px 5px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  text-transform: uppercase;
}

.access-level.private {
  background: var(--danger);
  color: var(--bg-primary);
  border-color: var(--danger);
}

.access-level.public {
  background: var(--success);
  color: var(--bg-primary);
  border-color: var(--success);
}

.file-date {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.file-actions {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.file-actions .action-btn {
  padding: 4px 8px;
  font-size: 10px;
}

/* File List View */
.file-list-view {
  background: var(--border-color);
  border: 1px solid var(--border-color);
}

.file-row {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--bg-secondary);
  padding: 10px;
  border-bottom: 1px solid var(--border-color);
}

.file-row:last-child {
  border-bottom: none;
}

.file-row:hover {
  background: var(--bg-tertiary);
}

.file-icon {
  font-size: 20px;
  color: var(--accent-primary);
  min-width: 30px;
  text-align: center;
}

.file-details {
  flex: 1;
}

.file-details .file-name {
  font-size: 12px;
  font-weight: normal;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.file-details .file-meta {
  font-size: 10px;
  color: var(--text-secondary);
}

/* Modals */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--bg-primary);
  border: 2px solid var(--border-color);
  padding: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  margin: auto;
}

.modal-content h2 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  color: var(--accent-primary);
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-secondary);
}

.close:hover {
  color: var(--danger);
}

/* Login */
.extension-info {
  margin: 20px 0;
  padding: 15px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.extension-info h4 {
  color: var(--accent-primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.browser-extensions {
  margin: 15px 0;
}

.browser-group {
  margin-bottom: 15px;
}

.browser-group:last-child {
  margin-bottom: 0;
}

.browser-group strong {
  color: var(--text-primary);
  font-size: 12px;
  display: block;
  margin-bottom: 8px;
}

.browser-group ul {
  margin: 8px 0 0 20px;
  list-style: none;
}

.browser-group li {
  margin-bottom: 5px;
  font-size: 11px;
  color: var(--text-secondary);
}

.browser-group a {
  color: var(--accent-primary);
  text-decoration: none;
}

.browser-group a:hover {
  text-decoration: underline;
}

.login-methods {
  margin: 20px 0;
}

.login-btn {
  width: 100%;
  padding: 10px;
  background-color: var(--accent-primary);
  color: var(--bg-primary);
  border: 1px solid var(--accent-primary);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.login-btn:hover {
  background-color: var(--bg-primary);
  color: var(--accent-primary);
}

.bunker-section {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.bunker-section h4 {
  margin-bottom: 10px;
  color: var(--text-primary);
  font-size: 12px;
  text-transform: uppercase;
}

.bunker-input {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 11px;
}

.bunker-input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* Status Messages */
.status {
  padding: 10px;
  margin: 10px 0;
  border: 1px solid var(--border-color);
  font-size: 11px;
  text-transform: uppercase;
}

.status.success {
  background-color: var(--success);
  color: var(--bg-primary);
  border-color: var(--success);
}

.status.error {
  background-color: var(--danger);
  color: var(--bg-primary);
  border-color: var(--danger);
}

/* Auth Status */
.auth-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-status button {
  background-color: var(--accent-primary);
  color: var(--bg-primary);
  border: 1px solid var(--accent-primary);
  padding: 5px 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-status button:hover {
  background-color: var(--bg-primary);
  color: var(--accent-primary);
}

#user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  text-transform: uppercase;
}

#user-pubkey-short {
  color: var(--accent-primary);
}

/* Share Modal */
.share-links {
  margin-top: 15px;
}

.share-link {
  margin-bottom: 15px;
}

.share-link label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-primary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.link-row {
  display: flex;
  gap: 10px;
}

.link-row input {
  flex: 1;
  padding: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 10px;
}

.link-row button {
  padding: 6px 10px;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: 1px solid var(--accent-primary);
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  text-transform: uppercase;
}

.link-row button:hover {
  background: var(--bg-primary);
  color: var(--accent-primary);
}

/* File Details Modal */
.file-preview-large {
  text-align: center;
  margin-bottom: 20px;
  padding: 15px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.file-preview-large #file-icon-large {
  font-size: 48px;
  color: var(--accent-primary);
  margin-bottom: 10px;
}

.file-preview-large h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  text-transform: uppercase;
  word-break: break-word;
}

.file-metadata {
  margin-bottom: 20px;
}

.metadata-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 11px;
}

.metadata-row:last-child {
  border-bottom: none;
}

.metadata-row label {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.metadata-row span {
  color: var(--text-primary);
  font-family: inherit;
}

.hash-text {
  font-size: 9px;
  word-break: break-all;
  color: var(--accent-primary);
}

.access-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.access-controls select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 4px 8px;
  font-family: inherit;
  font-size: 10px;
}

.file-actions-detail {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.toast {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 10px 15px;
  margin-bottom: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.toast.success {
  border-color: var(--success);
  background-color: var(--success);
  color: var(--bg-primary);
}

.toast.error {
  border-color: var(--danger);
  background-color: var(--danger);
  color: var(--bg-primary);
}

/* Loading States */
.loading-state {
  text-align: center;
  padding: 30px;
  color: var(--text-secondary);
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--accent-primary);
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 30px;
  font-style: italic;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.error-state {
  text-align: center;
  padding: 20px;
  color: var(--danger);
  background: var(--bg-secondary);
  border: 1px solid var(--danger);
  font-size: 12px;
  text-transform: uppercase;
}

/* Recent Uploads */
.recent-uploads h3 {
  margin-bottom: 15px;
  color: var(--text-primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 5px;
}

.uploads-list {
  background: var(--border-color);
  border: 1px solid var(--border-color);
}

.upload-item {
  background-color: var(--bg-secondary);
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}

.upload-item:last-child {
  border-bottom: none;
}

.upload-item:hover {
  background-color: var(--bg-tertiary);
}

.upload-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.upload-item-title {
  color: var(--text-primary);
  font-size: 12px;
  text-transform: uppercase;
}

.upload-item-meta {
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.upload-item-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  /* Touch-friendly buttons */
  button, .action-btn, .copy-btn, .stream-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 15px;
    font-size: 12px;
  }

  /* Header mobile layout */
  .header-content {
    margin-bottom: 10px;
  }
  
  header h1 {
    font-size: 16px;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Navigation - hide on mobile, show when toggled */
  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px 0;
    margin-top: 10px;
  }
  
  nav.mobile-nav-open {
    display: flex;
  }
  
  nav a {
    padding: 12px 20px;
    border: none;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    font-size: 12px;
  }
  
  nav a:last-child {
    border-bottom: none;
  }
  
  nav a:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
  }

  /* File grid - fixed sizing */
  .file-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .file-card {
    padding: 15px;
    min-height: auto;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Fix file card content overflow */
  .file-info {
    min-width: 0;
    overflow: hidden;
    width: 100%;
  }
  
  .file-name {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.2;
  }
  
  .file-meta {
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .file-size, .file-date {
    font-size: 10px;
  }
  
  .file-preview {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Ensure file cards stack properly */
  .file-grid {
    width: 100%;
    box-sizing: border-box;
  }

  /* File actions - stack vertically */
  .file-actions {
    flex-direction: column;
    gap: 8px;
  }

  .file-actions .action-btn {
    padding: 8px 12px;
    font-size: 11px;
  }

  /* Share modal improvements */
  .share-modal {
    padding: 15px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .share-modal .modal-content {
    width: 95vw;
    max-width: none;
  }

  /* Quality items - stack on mobile */
  .quality-item {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    padding: 15px;
  }

  .quality-info {
    text-align: center;
  }

  .quality-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Link inputs - full width on mobile */
  .link-row {
    flex-direction: column;
    gap: 8px;
  }

  .link-row input {
    width: 100%;
  }

  .link-row button {
    width: 100%;
  }

  /* Upload area */
  .upload-area {
    padding: 30px 15px;
  }

  /* Other responsive elements */
  .storage-flow {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .pipeline-steps {
    flex-direction: column;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .endpoint {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .dashboard-controls {
    justify-content: space-between;
  }

  .user-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 8px;
  }
  
  /* Even smaller header on tiny screens */
  header h1 {
    font-size: 14px;
    letter-spacing: 0.5px;
  }
  
  .header-right {
    gap: 8px;
  }

  /* Header adjustments */
  header h1 {
    font-size: 18px;
  }

  /* Single column layouts */
  .user-stats {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  /* File filters - stack on small screens */
  .file-filters {
    flex-direction: column;
    border-radius: 0;
  }

  .filter-btn {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    padding: 12px;
  }

  .filter-btn:first-child {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .filter-btn:last-child {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  /* Touch-friendly quality actions */
  .quality-actions {
    flex-direction: column;
    gap: 10px;
  }

  .quality-actions .stream-btn,
  .quality-actions .copy-btn {
    width: 100%;
    padding: 12px;
    font-size: 12px;
  }

  /* Modal adjustments */
  .modal-content {
    margin: 10px;
    padding: 15px;
  }

  .share-modal h3 {
    font-size: 14px;
  }

  /* File details modal */
  .file-details-modal .modal-content {
    width: 95vw;
  }

  /* Upload progress */
  .progress-info {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .progress-info span {
    font-size: 10px;
  }

  /* Auth status - better mobile positioning */
  .auth-status {
    flex-shrink: 0;
  }

  #user-info {
    flex-direction: column;
    gap: 3px;
    align-items: flex-end;
  }
  
  #user-pubkey-short {
    font-size: 9px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Toast positioning */
  .toast-container {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 1000;
  }

  .toast {
    width: 100%;
    text-align: center;
  }
}

/* Mobile Touch Improvements */
@media (hover: none) and (pointer: coarse) {
  /* Touch device specific styles */
  button, .action-btn, .copy-btn, .stream-btn {
    min-height: 48px;
    min-width: 48px;
  }
  
  .file-card {
    padding: 20px;
  }
  
  /* Improve tap targets */
  .file-card:hover {
    transform: none;
    background: var(--bg-secondary);
  }
  
  .file-card:active {
    transform: scale(0.98);
    background: var(--bg-tertiary);
  }
  
  /* Upload area - better for mobile */
  .upload-area {
    min-height: 120px;
    padding: 20px;
    border-width: 3px;
  }
  
  /* Remove hover effects that don't work on touch */
  .file-actions .action-btn:hover {
    transform: none;
  }
  
  .file-actions .action-btn:active {
    transform: scale(0.95);
    background: var(--accent-primary);
    color: var(--bg-primary);
  }
}

/* Add better scrolling on mobile */
.share-modal, .file-details-modal {
  -webkit-overflow-scrolling: touch;
}

/* Prevent zooming on input focus (iOS) */
input, select, textarea {
  font-size: 16px;
}

/* Better mobile upload experience */
@media (max-width: 768px) {
  .upload-area.dragover {
    border-color: var(--accent-primary);
    background-color: rgba(0, 255, 0, 0.05);
  }
  
  .upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
  }
}

/* Mobile touch feedback */
.mobile-device .upload-area.touched {
  background-color: rgba(0, 255, 0, 0.05);
  border-color: var(--accent-primary);
}

/* Better viewport handling for mobile browsers */
.mobile-device {
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

/* Account Creation Modal */
.account-explanation {
  margin: 20px 0;
  line-height: 1.6;
}

.account-explanation h4 {
  color: var(--accent-primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0 10px 0;
}

.account-explanation p {
  color: var(--text-primary);
  margin-bottom: 15px;
  font-size: 13px;
}

.account-explanation ul {
  margin: 10px 0 20px 20px;
  color: var(--text-primary);
}

.account-explanation li {
  margin-bottom: 8px;
  font-size: 12px;
}

.key-explanation {
  margin: 20px 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 20px;
}

.key-info {
  margin-bottom: 20px;
}

.key-info:last-child {
  margin-bottom: 0;
}

.key-info strong {
  color: var(--accent-primary);
  font-size: 13px;
  display: block;
  margin-bottom: 8px;
}

.key-info p {
  color: var(--text-primary);
  font-size: 12px;
  margin: 0;
}

.warning-box {
  background: var(--bg-tertiary);
  border: 2px solid var(--warning);
  padding: 20px;
  margin: 20px 0;
}

.warning-box h4 {
  color: var(--warning);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.warning-box p {
  color: var(--text-primary);
  font-size: 12px;
  margin: 0;
}

.key-generation {
  text-align: center;
  margin: 30px 0;
}

.key-display {
  margin: 20px 0;
}

.key-pair {
  margin: 20px 0;
}

.key-item {
  margin-bottom: 25px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 20px;
}

.key-item label {
  color: var(--accent-primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

.key-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.key-row input {
  flex: 1;
  padding: 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 11px;
}

.key-row button {
  padding: 10px 15px;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: 1px solid var(--accent-primary);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.key-row button:hover {
  background: var(--bg-primary);
  color: var(--accent-primary);
}

.save-instructions {
  margin: 25px 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 20px;
}

.save-instructions h4 {
  color: var(--accent-primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.save-instructions p {
  color: var(--text-primary);
  margin-bottom: 15px;
  font-size: 12px;
}

.save-instructions ul {
  margin: 0 0 0 20px;
}

.save-instructions li {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 12px;
}

.extension-reminder {
  margin: 25px 0;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--accent-primary);
}

.extension-reminder h4 {
  color: var(--accent-primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.extension-reminder p {
  color: var(--text-primary);
  margin-bottom: 15px;
  font-size: 12px;
}

.account-actions {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* Transcoding Status Styles */
.transcoding-status {
  margin-top: 20px;
  padding: 15px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  animation: pulse 2s infinite;
}

.transcoding-status.hidden {
  display: none;
}

.transcoding-status.completed {
  background-color: rgba(0, 255, 0, 0.1);
  border-color: var(--success);
  animation: none;
}

.transcoding-status.failed {
  background-color: rgba(255, 0, 0, 0.1);
  border-color: var(--danger);
  animation: none;
}

.status-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.status-icon {
  font-size: 16px;
  margin-right: 8px;
}

.status-text {
  color: var(--accent-primary);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
}

.progress-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  margin-right: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success), var(--accent-primary));
  width: 0%;
  transition: width 0.3s ease;
  animation: shimmer 1.5s infinite;
}

.progress-text {
  color: var(--text-secondary);
  font-size: 11px;
  min-width: 35px;
  text-align: right;
}

.status-message {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.4;
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes shimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}

/* Video Quality Section */
.video-streaming {
  border: 1px solid var(--accent-primary);
  background: var(--bg-tertiary);
}

.video-quality-section {
  margin-top: 10px;
}

.quality-loading {
  padding: 15px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 12px;
}

.quality-loading .error {
  color: var(--danger);
}

.quality-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quality-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  gap: 15px;
}

.quality-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.quality-info strong {
  color: var(--accent-primary);
  font-size: 12px;
  text-transform: uppercase;
}

.quality-info span {
  color: var(--text-muted);
  font-size: 10px;
}

.quality-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.stream-btn, .copy-btn {
  padding: 5px 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: 1px solid var(--border-color);
  text-decoration: none;
  background: var(--bg-primary);
  color: var(--text-primary);
}

.stream-btn:hover, .copy-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.stream-btn {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

.stream-btn:hover {
  background: var(--bg-primary);
  color: var(--accent-primary);
}