:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --accent-color: #764ba2;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: #f0f2f5;
  background-image: radial-gradient(circle at 0% 0%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

.layout-content {
  flex: 1 0 auto;
}

.main-container {
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  padding: 2rem;
  margin-top: 1rem;
}

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

.page-title {
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.5px;
}

.file-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.file-table tr {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.file-table tr:not(.header-row):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.file-table th {
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  padding: 1rem;
  border: none;
}

.file-table td {
  padding: 1.2rem 1rem;
  background: white;
  border-top: 1px solid #f1f2f6;
  border-bottom: 1px solid #f1f2f6;
}

.file-table td:first-child {
  border-left: 1px solid #f1f2f6;
  border-radius: 12px 0 0 12px;
}

.file-table td:last-child {
  border-right: 1px solid #f1f2f6;
  border-radius: 0 12px 12px 0;
}

.file-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.2rem;
  background: #f8f9fa;
}

.file-name {
  font-weight: 600;
  color: var(--text-primary);
}

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

.badge-ext {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #eef2ff;
  color: #4f46e5;
}

.btn-download {
  color: var(--accent-color);
  background: transparent;
  border: 1px solid var(--accent-color);
  padding: 6px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-download:hover {
  background: var(--accent-color);
  color: white;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.navbar {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  padding: 0.8rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  color: var(--accent-color) !important;
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.navbar-brand i {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 0.5rem;
  font-size: 1.5rem;
}


.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  border-radius: 10px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.nav-link i {
  font-size: 1.1rem;
}

.nav-link:hover {
  color: var(--accent-color) !important;
  background: rgba(118, 75, 162, 0.05);
}

.user-greeting {
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-logout {
  background: white;
  color: #ff4757;
  border: 1px solid #ff4757;
  padding: 6px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 0.5rem;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: #ff4757;
  color: white;
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.2);
}