:root {
  --bg-primary: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --border-glass: rgba(255, 255, 255, 0.3);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.05);

  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  
  --danger-color: #ef4444;
  --danger-hover: #dc2828;

  --success-color: #10b981;
  
  --radius-lg: 16px;
  --radius-sm: 8px;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, blinkmacsystemfont, sans-serif;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, hsla(253,16%,7%,0) 0, transparent 50%), 
    radial-gradient(at 50% 0%, hsla(225,39%,30%,0.05) 0, transparent 50%), 
    radial-gradient(at 100% 0%, hsla(339,49%,30%,0.05) 0, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
}

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

/* Glass panel */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group select {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background: white;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent-color);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(59, 130, 246, 0.3);
}

.btn-danger {
  background: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  background: var(--danger-hover);
}

/* File List */
.category-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  margin-bottom: 0.5rem;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.file-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  color: var(--text-secondary);
}

.file-icon.pdf { color: #ef4444; background: #fee2e2; }
.file-icon.zip { color: #eab308; background: #fef9c3; }
.file-icon.doc { color: #3b82f6; background: #dbeafe; }
.file-icon.img { color: #10b981; background: #d1fae5; }

.file-name {
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
}

.file-name:hover {
  color: var(--accent-color);
}

.file-actions {
  display: flex;
  gap: 0.5rem;
}

.action-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.4rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.action-link:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

.action-link.delete:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* Header/Nav */
.top-nav {
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-color);
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Drag and Drop Zone */
.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 3rem 2rem;
  text-align: center;
  background: #f8fafc;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.dropzone.dragover {
  border-color: var(--accent-color);
  background: #eff6ff;
}

.dropzone-icon {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.dropzone-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  pointer-events: none;
}

.dropzone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.5px;
}

.month-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.month-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
}
.month-nav a:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}
.month-label {
  font-weight: 600;
  color: var(--text-primary);
}

/* Footer */
footer {
  margin-top: 4rem;
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  border-top: 1px solid #e2e8f0;
}
footer a {
  color: var(--text-secondary);
  text-decoration: none;
}
footer a:hover {
  color: var(--text-primary);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .top-nav {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-links {
    justify-content: center;
    width: 100%;
  }
  .page-title {
    display: none;
  }
  .page-header {
    justify-content: center;
  }
}
