/* ==========================================================================
   MINIMALIST STUDIO & VAULT UPLOAD STYLES
   Jonas Thiemann (jominer6028.de)
   ========================================================================== */

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 10090;
  background: rgba(6, 7, 10, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-modal.active {
  opacity: 1;
  visibility: visible;
}

.admin-card {
  background: #090a10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.admin-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Login View */
.admin-login-box {
  text-align: center;
  padding: 20px 0;
  max-width: 380px;
  margin: 0 auto;
}

.admin-form-group {
  margin-bottom: 16px;
  text-align: left;
}

.admin-label {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.admin-input, .admin-select {
  width: 100%;
  padding: 12px 14px;
  background: #0d0f17;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.admin-input:focus, .admin-select:focus {
  outline: none;
  border-color: var(--accent, #00f2fe);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.15);
}

/* Tabs */
.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.admin-tab-btn {
  background: none;
  border: none;
  color: var(--text-dim, #64748b);
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.admin-tab-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Dropzone */
.upload-dropzone {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  background: rgba(14, 17, 26, 0.5);
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 20px;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--accent, #00f2fe);
  background: rgba(0, 242, 254, 0.04);
}

.dropzone-icon {
  width: 36px;
  height: 36px;
  color: var(--text-dim, #64748b);
  margin-bottom: 10px;
}

.file-preview-box {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  display: none;
  align-items: center;
  justify-content: space-between;
}

.file-preview-box.active {
  display: flex;
}

/* Status & Progress */
.upload-status-box {
  padding: 12px 16px;
  border-radius: 6px;
  background: #0d0f17;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  margin-top: 14px;
  display: none;
}

.upload-status-box.active {
  display: block;
}

.upload-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent, #00f2fe);
  transition: width 0.3s ease;
}

/* Manager List */
.media-manager-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
}

.media-manager-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(14, 17, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.media-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.media-thumb-mini {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  background: #000;
}

.media-item-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: #fff;
  font-family: var(--font-mono, monospace);
}

.media-item-meta {
  font-size: 0.74rem;
  color: var(--text-dim, #64748b);
}

.btn-delete-item {
  background: none;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-family: var(--font-mono, monospace);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-delete-item:hover {
  background: rgba(239, 68, 68, 0.15);
}
