/* Global */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: linear-gradient(135deg, #0f172a, #020617);
  color: #0f172a;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e5e7eb;
  margin-bottom: 20px;
}

.header h1 {
  margin: 0;
  font-size: 24px;
}

.subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: #9ca3af;
}

/* Cards */
.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

.section-title {
  margin: 0 0 6px;
  font-size: 18px;
}

.section-description {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6b7280;
}

/* Folder grid */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.folder-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f9fafb, #eef2ff);
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.folder-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
  border-color: #6366f1;
}

.folder-icon {
  font-size: 24px;
}

.folder-body {
  flex: 1;
  min-width: 0;
}

.folder-name {
  font-weight: 600;
  font-size: 14px;
  color: #111827;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.folder-prefix {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.folder-chevron {
  font-size: 18px;
  color: #9ca3af;
}

/* Buttons */
.btn-secondary {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #4b5563;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.8);
}

.btn-secondary:hover {
  background: rgba(31, 41, 55, 0.9);
}

/* Inputs */
.input {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 13px;
  width: 260px;
}

/* Table */
.table-toolbar {
  margin-bottom: 10px;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

th {
  background: #111827;
  color: #f9fafb;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

tr:nth-child(even) {
  background: #f9fafb;
}

tr.today {
  background: #dcfce7 !important;
}

.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  color: #065f46;
  background: #bbf7d0;
  border: 1px solid #22c55e;
}

/* Login page */
.login-body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #1d4ed8, #020617 55%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 16px;
}

.login-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 16px;
  padding: 24px 22px 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.login-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
}

.login-subtitle {
  margin: 0 0 16px;
  font-size: 13px;
  color: #9ca3af;
}

.login-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid #f87171;
  color: #fecaca;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 10px;
}

.login-form .form-group {
  margin-bottom: 10px;
}

.login-form label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: #cbd5f5;
}

.input.full {
  width: 100%;
}

.btn-primary.full {
  width: 100%;
}

.login-footer {
  margin-top: 14px;
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
}

/* Primary button (reuse theme) */
.btn-primary {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #22c55e);
  color: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(1.08);
}
