.admin-table-container {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 1000px;
}

.admin-table th, .admin-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: middle;
}

.admin-table thead th {
  background-color: var(--light-color);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.admin-table tbody tr:nth-child(even) {
  background-color: rgba(0,0,0,0.02);
}

.admin-table tbody tr:hover {
  background-color: rgba(0,0,0,0.05);
}

.admin-table tbody tr.inactive-row {
  opacity: 0.6;
}

/* Статистика (Admin Stats) */
.admin-stats, .stats-cards, .notes-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-color);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--primary-color);
  text-align: center;
  transition: transform 0.2s;
}

.stat-card:hover { transform: translateY(-2px); }

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}
.switch input { 
/* opacity: 0; width: 0; height: 0; */
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--border-color);
  transition: .4s;
  border-radius: 26px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: var(--bg-color);
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider { background-color: var(--success-color); }
input:checked + .slider:before { transform: translateX(24px); }

/* Storage Bar */
.storage-bar {
  height: 10px;
  background-color: var(--border-color);
  border-radius: 5px;
  margin-bottom: 8px;
  overflow: hidden;
}
.storage-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
  transition: width 0.5s ease;
}
.storage-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.storage-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 5px;
  background: var(--light-color);
  border-radius: 4px;
}
