@import url('/static/css/theme.css');

/* LOGIN PAGE */
.login-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: var(--surface);
  border: 3px solid var(--border);
  border-radius: 0;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .08), inset -1px -1px 0 rgba(0, 0, 0, .6), 0 8px 0 #08090c;
  padding: 36px 32px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: fadeUp .4s ease backwards;
}

.logo-box {
  width: 58px;
  height: 58px;
  border-radius: 0;
  background: var(--surface-light);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
  color: #f5f6fa;
  text-shadow: 1px 1px 0 #000;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .15), inset -2px -2px 0 rgba(0, 0, 0, .6), 0 4px 0 #08090c;
}

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

label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #f5f6fa;
  margin-bottom: 8px;
  text-shadow: 1px 1px 0 #000;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  background: #111317;
  border: 2px solid var(--border);
  border-radius: 0;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7);
  transition: border-color .15s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #555e70;
}

.btn-submit {
  width: 100%;
  padding: 13px;
  background: var(--surface-light);
  border: 2px solid var(--border);
  border-radius: 0;
  color: #f5f6fa;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: all .12s;
  margin-top: 10px;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .15), 0 4px 0 #08090c;
  text-shadow: 1px 1px 0 #000;
}

.btn-submit:hover {
  background: #323846;
  border-color: #555e70;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .22), 0 6px 0 #08090c;
}

.btn-submit:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #08090c;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error-box {
  background: rgba(255, 68, 102, 0.18);
  border: 2px solid #ff4466;
  color: #ff99aa;
  border-radius: 0;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 3px 0 #08090c;
  display: none;
}

/* STORAGE DASHBOARD */
.storage-header {
  background: rgba(26, 29, 36, 0.95);
  border-bottom: 2px solid var(--border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 0 #08090c;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 0;
  background: var(--surface-light);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .15), 0 3px 0 #08090c;
  color: #f5f6fa;
  text-shadow: 1px 1px 0 #000;
}

.brand-text h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-text p {
  font-size: 13px;
  color: var(--text-secondary);
  text-shadow: 1px 1px 0 #000;
}

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

.user-badge {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 0;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #f5f6fa;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 3px 0 #08090c;
  text-shadow: 1px 1px 0 #000;
}

.user-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: #33cc66;
  box-shadow: 0 0 8px #33cc66;
}

.btn-logout {
  background: var(--surface-light);
  border: 2px solid var(--border);
  color: #ff99aa;
  padding: 8px 18px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .12s;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .12), 0 3px 0 #08090c;
  text-shadow: 1px 1px 0 #000;
}

.btn-logout:hover {
  background: rgba(255, 68, 102, 0.2);
  border-color: #ff4466;
  color: #ffb8c4;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #08090c;
}

.btn-logout:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #08090c;
}

.container {
  max-width: 1080px;
  margin: 24px auto;
  padding: 0 20px;
}

/* DROPZONE */
.dropzone {
  border: 2px dashed #4f586d;
  border-radius: 0;
  background: rgba(26, 29, 36, 0.6);
  padding: 32px 20px;
  text-align: center;
  transition: all .2s ease;
  cursor: pointer;
  position: relative;
  margin-bottom: 24px;
  box-shadow: 0 4px 0 #08090c;
}

.dropzone.dragover {
  border-color: #555e70;
  background: rgba(37, 42, 52, 0.5);
}

.dropzone-icon {
  font-size: 40px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.dropzone-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  text-shadow: 1px 1px 0 #000;
}

.dropzone-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-shadow: 1px 1px 0 #000;
}

.dropzone-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-select {
  background: var(--surface-light);
  color: #f5f6fa;
  border: 2px solid var(--border);
  padding: 9px 20px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .12), 0 3px 0 #08090c;
  text-shadow: 1px 1px 0 #000;
}

.btn-select:hover {
  background: #323846;
  border-color: #555e70;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .22), 0 5px 0 #08090c;
}

.btn-select.folder {
  background: #1a1d24;
  border: 2px solid #4f586d;
}

/* UPLOAD PROGRESS */
#upload-progress-wrap {
  display: none;
  margin-bottom: 24px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 0;
  padding: 14px 18px;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 4px 0 #08090c;
}

.upload-item {
  margin-bottom: 10px;
}

.upload-item:last-child {
  margin-bottom: 0;
}

.upload-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}

.upload-item-name {
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 75%;
}

.upload-item-status {
  color: var(--text-secondary);
  font-weight: 600;
}

.prog-bar-bg {
  background: #111317;
  border-radius: 0;
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.prog-bar-fill {
  background: #555e70;
  height: 100%;
  width: 0%;
  transition: width .1s linear;
}

/* TOOLBAR */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 14px;
  flex-wrap: wrap;
}

.stats-info {
  font-size: 13px;
  color: var(--text-secondary);
  text-shadow: 1px 1px 0 #000;
}

.stats-info span {
  color: var(--text-primary);
  font-weight: 700;
}

.toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-tool {
  background: var(--surface-light);
  color: var(--text-primary);
  border: 2px solid var(--border);
  border-radius: 0;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .12), 0 3px 0 #08090c;
  text-shadow: 1px 1px 0 #000;
}

.btn-tool:hover {
  background: #323846;
  border-color: #555e70;
  color: #fff;
  transform: translateY(-1px);
}

.search-wrap {
  position: relative;
  width: 220px;
}

.search-input {
  width: 100%;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 0;
  padding: 7px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}

.search-input:focus {
  border-color: #555e70;
}

/* FILES TABLE */
.table-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 5px 0 #08090c;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background: #14171d;
  color: var(--text-secondary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 12px 18px;
  border-bottom: 2px solid var(--border);
  text-shadow: 1px 1px 0 #000;
}

td {
  padding: 12px 18px;
  border-bottom: 1px solid #232731;
  font-size: 14px;
  vertical-align: middle;
}

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

tr.file-row:hover {
  background: #252a34;
}

.col-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.file-name {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 440px;
  transition: color .15s;
  text-shadow: 1px 1px 0 #000;
}

.file-name:hover {
  color: #fff;
  text-decoration: underline;
}

.file-name.dir-name {
  color: #f5f6fa;
  font-weight: 700;
}

.file-name.dir-name:hover {
  color: #fff;
  text-decoration: underline;
}

.parent-row td {
  background: rgba(26, 29, 36, 0.5);
}

.parent-link {
  color: #f5f6fa;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-shadow: 1px 1px 0 #000;
}

.parent-link:hover {
  text-decoration: underline;
  color: #fff;
}

.parent-link em {
  color: var(--text-secondary);
  font-size: 12px;
  font-style: normal;
}

.col-size {
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
  width: 120px;
  text-shadow: 1px 1px 0 #000;
  font-family: var(--pixel-font);
}

.col-date {
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
  width: 160px;
  text-shadow: 1px 1px 0 #000;
}

.col-actions {
  text-align: right;
  white-space: nowrap;
  width: 140px;
  vertical-align: middle;
}

.actions-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  vertical-align: middle;
}

.act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 0;
  border: 2px solid var(--border);
  background: var(--surface-light);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .15s;
  padding: 0;
  margin: 0;
  vertical-align: middle;
  line-height: 1;
  box-sizing: border-box;
  text-decoration: none;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .1), 0 2px 0 #08090c;
}

.act-btn svg {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.act-btn:hover {
  background: #323846;
  border-color: #555e70;
  color: #fff;
  transform: translateY(-1px);
}

.act-btn.delete:hover {
  background: rgba(255, 68, 102, 0.25);
  border-color: #ff4466;
  color: #ff4466;
}

.act-btn.copy:hover {
  background: #323846;
  border-color: #555e70;
  color: #fff;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 0;
  box-shadow: 0 4px 0 #08090c;
  text-shadow: 1px 1px 0 #000;
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.empty-state p {
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--text-primary);
  font-weight: 700;
}

.empty-state small {
  font-size: 13px;
  color: var(--text-secondary);
}
