/* =====================
   ROOT & RESET
===================== */
* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #f4f6fb;
  color: #222;
}

/* =====================
   HEADER
===================== */
.header {
  background: linear-gradient(135deg,#4f46e5,#6366f1);
  color: #fff;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .title {
  font-size: 18px;
  font-weight: 600;
}

.header .user {
  font-size: 13px;
  opacity: 0.9;
}

/* =====================
   LAYOUT
===================== */
.wrapper {
  display: flex;
  min-height: calc(100vh - 56px);
}

.sidebar {
  width: 220px;
  background: #111827;
  padding: 16px;
}

.sidebar a {
  display: block;
  color: #c7d2fe;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}

.sidebar a:hover {
  background: #1f2933;
}

.sidebar a.active {
  background: #4f46e5;
  color: #fff;
}

/* =====================
   CONTENT
===================== */
.content {
  flex: 1;
  padding: 22px;
}

.storage-container {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

/* =====================
   STORAGE USAGE
===================== */
.usage-text {
  font-size: 14px;
  margin-bottom: 6px;
}

.usage-bar {
  background: #e5e7eb;
  border-radius: 20px;
  overflow: hidden;
  height: 10px;
}

.usage-fill {
  background: linear-gradient(90deg,#4f46e5,#6366f1);
  height: 100%;
}

/* =====================
   BUTTONS
===================== */
button {
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  background: #4f46e5;
  color: #fff;
}

button:hover {
  background: #4338ca;
}

button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

/* =====================
   TOOLBAR
===================== */
.toolbar {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}

select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

/* =====================
   FILE LIST
===================== */
.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #f9fafb;
  transition: 0.2s ease;
}

.file-item:hover {
  background: #eef2ff;
}

.file-name {
  font-size: 14px;
}

.file-name a {
  color: #1e3a8a;
  font-weight: 500;
  text-decoration: none;
}

.file-name a:hover {
  text-decoration: underline;
}

/* =====================
   FILE ACTIONS
===================== */
.file-actions a {
  font-size: 13px;
  margin-left: 12px;
  color: #4f46e5;
  text-decoration: none;
}

.file-actions a:hover {
  text-decoration: underline;
}

/* =====================
   UPLOAD QUEUE
===================== */
#queue {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

#queue li {
  background: #f3f4f6;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 6px;
}

/* =====================
   PROGRESS
===================== */
progress {
  width: 100%;
  height: 12px;
  border-radius: 10px;
  overflow: hidden;
}

progress::-webkit-progress-bar {
  background: #e5e7eb;
}

progress::-webkit-progress-value {
  background: linear-gradient(90deg,#4f46e5,#6366f1);
}

/* =====================
   FLOATING UPLOAD BUTTON
===================== */
.fab-upload {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg,#4f46e5,#6366f1);
  color: #fff;
  font-size: 26px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(79,70,229,.4);
}

.fab-upload:hover {
  transform: scale(1.05);
}

/* =====================
   RESPONSIVE
===================== */
@media(max-width:900px){
  .sidebar {
    display: none;
  }
  .content {
    padding: 14px;
  }
}
