* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #eef1f4;
  color: #23324a;
}

.window-shell {
  width: 94%;
  max-width: 1320px;
  margin: 14px auto 28px;
  background: #f5f6f7;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.window-bar {
  height: 24px;
  background: #d9d9db;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
}

.window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f5f5f5;
  display: inline-block;
}

.top-header {
  background: #f4f4f4;
}

.top-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 26px 10px 26px;
}

.top-raamp-logo {
  width: 150px;
  height: 64px;
  object-fit: contain;
  object-position: left center;
  display: block;
  flex: 0 0 auto;
}

.top-header-text {
  min-width: 0;
}

.top-header-text h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
  color: #2f7f4a;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.top-header-text p {
  margin: 5px 0 0;
  font-size: 0.84rem;
  color: #43695b;
  font-weight: 700;
}

.top-header-line {
  height: 6px;
  background: linear-gradient(90deg, #2f7f4a 0%, #88bc88 55%, #ecf2ec 100%);
}

.page {
  display: flex;
  min-height: 680px;
  background: #f1f3f6;
}

.sidebar {
  width: 250px;
  background: #0a2148;
  color: #ffffff;
  position: relative;
  padding: 225px 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.sidebar-overlap-logo-wrap {
  position: absolute;
  top: 18px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  background: transparent;
  z-index: 5;
}

.badge-home-btn {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  cursor: pointer;
}

.badge-home-btn:hover {
  transform: none;
}

.badge-home-btn:active {
  transform: none;
}

.sidebar-overlap-logo {
  width: 170px;
  max-width: 90%;
  height: auto;
  display: block;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.sidebar-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: -18px;
  margin-left: 2px;
}

.brand-badge {
  width: 64px;
  height: 74px;
  border-radius: 18px;
  background: #0aa000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 400;
  color: #ffffff;
  flex-shrink: 0;
}

.brand-text h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1;
  color: #ffffff;
}

.brand-text p {
  margin: 8px 0 0;
  font-size: 0.68rem;
  color: #edf3ff;
}

.side-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px 16px;
}

.side-card h3 {
  margin: 0 0 12px;
  font-size: 0.96rem;
  color: #ffffff;
}

.side-card p {
  margin: 0 0 10px;
  font-size: 0.77rem;
  line-height: 1.4;
  color: #f0f4fb;
  word-break: break-word;
}

.side-card ol {
  margin: 0;
  padding-left: 20px;
  font-size: 0.76rem;
  line-height: 1.55;
  color: #f3f6fc;
}

.sidebar-footer {
  margin-top: 14px;
}

.sidebar-logout {
  width: 118px;
  margin: 0 auto;
  display: block;
  background: #405982;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.main {
  flex: 1;
  padding: 24px 24px 24px 28px;
  background: #f1f3f6;
}

.hero {
  margin-bottom: 16px;
}

.hero h2 {
  margin: 0 0 8px;
  font-size: 1.55rem;
  line-height: 1.05;
  color: #32486a;
  font-weight: 700;
}

.hero p {
  margin: 0;
  color: #687b95;
  font-size: 0.82rem;
}

.card {
  background: #ffffff;
  border: 1px solid #dfe6ee;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(32, 52, 84, 0.04);
}

.card h3 {
  margin: 0 0 14px;
  font-size: 1.02rem;
  color: #1f3250;
}

label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 700;
  font-size: 0.84rem;
  color: #22324a;
}

input,
select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d2d9e5;
  border-radius: 10px;
  background: #ffffff;
  font-size: 0.82rem;
  color: #22324a;
  outline: none;
}

input:focus,
select:focus {
  border-color: #7ea4f2;
  box-shadow: 0 0 0 3px rgba(47, 102, 227, 0.12);
}

.top-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

button {
  border: none;
  border-radius: 9px;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

.primary {
  background: #2f66e3;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px #163a87;
}

.secondary {
  background: #e2e5eb;
  color: #22324a;
  box-shadow: inset 0 0 0 1px #b7c1cf;
}

.message {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  display: none;
}

.message.success {
  display: block;
  background: #e0f1e3;
  border: 1px solid #b4dbbd;
  color: #2e7d4b;
}

.message.info {
  display: block;
  background: #e8f0ff;
  border: 1px solid #c8d9ff;
  color: #2a5cbf;
}

.message.error {
  display: block;
  background: #fdeaea;
  border: 1px solid #f3bbbb;
  color: #ba2d2d;
}

.files-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.files-header h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.files-header p {
  margin: 0;
  color: #6f8098;
  font-size: 0.76rem;
}

.files-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.refresh-btn {
  background: #f2f3f5;
  border: 2px solid #2e3b4d;
  color: #1f2f45;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.breadcrumb {
  background: #f7f8fa;
  border-top: 1px solid #e0e5ed;
  padding-top: 12px;
  font-size: 0.78rem;
  color: #54667f;
}

.crumb-label {
  font-weight: 700;
  color: #344760;
}

.crumb {
  background: none;
  border: none;
  color: #2f66e3;
  cursor: pointer;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: none;
}

.crumb.current {
  color: #22324a;
  font-weight: 700;
}

.crumb-separator {
  color: #8897ab;
}

.file-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #e2e7ef;
  border-radius: 14px;
  background: #fff;
  margin-top: 12px;
}

.folder-item {
  background: #f9fbff;
}

.clickable-folder {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.clickable-folder:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(32, 52, 84, 0.06);
  background: #f3f8ff;
}

.file-meta {
  flex: 1;
  min-width: 0;
}

.file-meta h4 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  color: #203454;
}

.file-meta p {
  margin: 4px 0;
  font-size: 0.79rem;
  color: #5f7088;
  word-break: break-word;
}

.file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.multi-actions button {
  white-space: nowrap;
}

.danger {
  background: #fbe9e9;
  color: #a22626;
  box-shadow: inset 0 0 0 1px #e1aaaa;
}

.no-action {
  font-size: 0.78rem;
  color: #7a889c;
}

.empty-state {
  text-align: center;
  padding: 36px 16px;
  color: #61738f;
}

.error-box {
  background: #fff3f3;
  border: 1px solid #f0c5c5;
  border-radius: 12px;
}

.muted {
  color: #6e7f97;
  font-size: 0.82rem;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #d3d9e4;
  border-top: 3px solid #2f66e3;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#filesPanel {
  display: none;
}

#loginPanel {
  display: block;
}

@media (max-width: 1100px) {
  .top-header-inner {
    padding: 12px 20px 10px 20px;
  }

  .top-raamp-logo {
    width: 128px;
    height: 56px;
  }

  .top-header-text h1 {
    font-size: 1.6rem;
  }

  .top-header-text p {
    font-size: 0.74rem;
  }

  .page {
    flex-direction: column;
    min-height: auto;
  }

  .sidebar {
    width: 100%;
    padding-top: 210px;
  }

  .sidebar-overlap-logo {
    width: 150px;
  }

  .brand {
    margin-top: -8px;
  }
}

@media (max-width: 800px) {
  .file-item {
    flex-direction: column;
  }

  .file-actions {
    justify-content: flex-start;
  }

  .files-header {
    flex-direction: column;
    align-items: stretch;
  }

  .files-actions {
    justify-content: flex-start;
  }

  .top-header-inner {
    gap: 10px;
    padding: 10px 14px 8px 14px;
  }

  .top-raamp-logo {
    width: 108px;
    height: 46px;
  }

  .top-header-text h1 {
    font-size: 1.2rem;
  }

  .top-header-text p {
    font-size: 0.6rem;
  }

  .sidebar {
    padding-top: 200px;
  }

  .sidebar-overlap-logo {
    width: 135px;
  }

  .brand {
    margin-top: -4px;
  }

  .main {
    padding: 16px 14px;
  }

  .hero h2 {
    font-size: 1.25rem;
  }
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.modal-card-sm {
  max-width: 520px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #22324a;
}

.icon-close {
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #475569;
  padding: 0;
}

.modal-body {
  padding: 22px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px 22px;
}

.form-group {
  margin-top: 14px;
}

.confirm-message {
  margin: 0;
  color: #475569;
  line-height: 1.5;
}

.danger {
  background: #dc2626;
  color: #fff;
  box-shadow: inset 0 0 0 1px #991b1b;
}

.is-disabled,
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}