/* Imagen de fondo en login hero ajustada */
.login-page .login-hero-img img {
  width: 100%;
  height: auto;
  max-width: 340px;
  max-height: 420px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
/* --- Login Page Styles --- */
.login-page {
  background: #e0e7ff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}
.login-page .login-hero-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 380px;
  margin: 48px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 32px #7e9cff22;
  overflow: hidden;
  min-height: 0;
  padding: 32px 18px 28px 18px;
}
.login-page .login-hero-img {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  min-height: 480px;
  background: none;
}
.login-page .login-hero-form {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 32px;
  min-width: 320px;
}
.login-page .login-logo img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 2px 8px #7e9cff33;
  margin-bottom: 18px;
}
.login-page .login-title {
  font-size: 1.7em;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
  text-align: center;
}
.login-page .login-subtitle {
  font-size: 1.08em;
  color: #41444c;
  margin-bottom: 32px;
  text-align: center;
}
.login-page .login-form {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.login-page .input-icon {
  position: relative;
  display: flex;
  align-items: center;
  background: #f7f8fa;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  padding: 0 12px;
  margin-bottom: 0;
}
.login-page .input-icon i {
  color: #7e9cff;
  font-size: 1.1em;
  margin-right: 8px;
}
.login-page .input-icon input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 1em;
  padding: 12px 0;
  width: 100%;
  color: #222;
}
.login-page .input-icon input::placeholder {
  color: #aaa;
  font-weight: 400;
}
.login-page .error-message {
  background: #ffe5e5;
  color: #c00;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.98em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-page .login-btn-center {
  background: #6a8cff;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 8px 0;
  width: 100%;
  font-size: 1em;
  box-shadow: 0 2px 8px #7e9cff22;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 38px;
  gap: 8px;
}
.login-page .login-btn-center:hover {
  background: #6a8cff;
}
@media (max-width: 700px) {
  .login-page {
    background: #fff;
  }

  .login-page .login-hero-flex {
    flex-direction: column;
    min-width: 0;
    max-width: 98vw;
    box-shadow: 0 2px 12px #7e9cff22;
  }
  .login-page .login-hero-img {
    min-height: 180px;
    min-width: 100%;
  }
  .login-page .login-hero-form {
    padding: 32px 12px;
    min-width: 0;
  }
}
/* Ocultar icono de ojo predeterminado en input password */
.login-page input[type="password"]::-ms-reveal {
  display: none;
}
.login-page input[type="password"]::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
}
/* Tabla moderna y elegante para panel-table */
.panel-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  border: 1px solid #ececec;
}
.panel-table th {
  background: rgb(249, 249, 249);
  color: #222;
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 1em;
}
.panel-table td {
  background: #fff;
  color: #222;
  padding: 12px 14px;
  border-bottom: 1px solid #f3f3f3;
  font-size: 0.98em;
}
.panel-table tr:last-child td {
  border-bottom: none;
}
.panel-table th:first-child, .panel-table td:first-child {
  border-top-left-radius: 12px;
}
.panel-table th:last-child, .panel-table td:last-child {
  border-top-right-radius: 12px;
}
.panel-navbar-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
}
/* --- Modern Elegant Flat Panel Design --- */
body {
  background: #f4f5f7;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  margin: 0;
  padding: 0;
}
.panel-navbar {
  width: 97%;
  height: 54px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 0 20px;
  border-bottom: none;
}
.panel-navbar-logo {
  display: flex;
  align-items: center;
  height: 54px;
}
.panel-navbar-logo img {
  height: 36px;
  width: auto;
  max-height: 100%;
  vertical-align: middle;
}
.panel-navbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-navbar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #f4f5f7;
  border: 2px solid #e0e0e0;
  overflow: hidden;
}
.panel-navbar-username {
  font-size: 1em;
  font-weight: 500;
  color: #222;
}
.panel-sidebar {
  width: 240px;
  min-width: 240px;
  max-width: 240px;
  flex-shrink: 0;
  background: #f7f8fa;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0 16px 0;
  border: none;
  box-shadow: none;
  min-height: 100vh;
  position: fixed;
  top: 54px;
  left: 0;
  z-index: 99;
  gap: 18px;
}
.panel-menu {
  width: 220px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  align-items: flex-start;
}
.panel-menu-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  border-radius: 8px;
  color: #222;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s, color 0.2s;
  text-decoration: none !important;
  width: 220px;
  box-sizing: border-box;
}
.panel-menu-item:hover, .panel-menu-item.active {
  background: #e3eafd;
  color: #1976d2;
}
.panel-menu-item i {
  font-size: 1.18em;
  color: #222;
  background: none;
  border-radius: 0;
  padding: 0;
}
.panel-content {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  background: #f4f5f7;
  min-width: 0;
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  margin-left: 220px;
  padding: 64px 24px 0 24px;
  width: calc(100vw - 220px);
  min-width: 0;
}
.panel-main-card {
  background: none;
  border-radius: 0;
  box-shadow: none;
  border: none !important;
  padding: 0;
  margin: 18px 0 8px 0;
  max-width: 100%;
  width: 100%;
  font-size: 1em;
}
/* Mejoras visuales para panel-topbar y títulos */
.panel-topbar {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  border-radius: 8px;
  padding: 12px 18px 10px 18px;
  margin-bottom: 10px;
}
.panel-section-title {
  font-size: 1.32em;
  font-weight: 700;
  color: #1976d2;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 0 #e3eafd;
}
.panel-breadcrumb {
  display: none;
}
.muted {
  font-size: 1.05em;
  color: #444;
  margin-top: 4px;
  font-weight: 400;
  opacity: 0.92;
}
.panel-btn-download {
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 1em;
  box-shadow: none;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}
.panel-btn-download:hover {
  background: #0f62fe;
  color: #fff;
}
/* --- End Modern Elegant Flat Panel Design --- */

/* --- Centro de Practica: mobile + structure refinements --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.panel-wrapper {
  width: 100% !important;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip !important;
  position: relative;
}

.panel-navbar {
  width: 100% !important;
  max-width: 100%;
  padding: 0 16px;
  border-bottom: 1px solid #eceff3;
}

.panel-navbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-navbar-avatar img,
.panel-navbar-avatar-img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.panel-sidebar {
  border-right: 1px solid #eceff3;
}

.panel-menu-toggle,
.panel-menu-close {
  display: none;
}

.panel-menu-backdrop {
  display: none;
}

.panel-menu {
  margin-top: 10px;
}

.panel-content {
  margin-left: 240px;
  width: calc(100% - 240px);
  padding: 74px 24px 24px;
}

.panel-main-card {
  margin-top: 0;
}

.panel-topbar {
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.panel-section-title {
  text-shadow: none;
}

.panel-actions-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-biblioteca-content {
  width: 100%;
}

.card {
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 12px;
  padding: 14px;
}

.panel-alert-success {
  background: #e3f6e8;
  color: #197d4c;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-weight: 500;
  border: 1px solid #c6e9d0;
}

.panel-upload-form {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eceff3;
  box-shadow: none;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
}

.panel-upload-form .input-icon {
  min-height: 46px;
}

.panel-upload-form input[type="file"] {
  background: #f8faff;
  border-radius: 9px;
  border: 0;
  padding-left: 12px;
  font-size: 1rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-file-input::file-selector-button {
  margin-right: 10px;
  border: 1px solid #d5deea;
  background: #eef4ff;
  color: #1f4f8a;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.9rem;
  cursor: pointer;
}

.panel-upload-form .panel-btn-download {
  min-width: 160px;
  margin: 0 auto;
  justify-content: center;
}

.panel-table-wrap {
  overflow-x: hidden;
  padding: 6px 2px;
}

.panel-table {
  min-width: 640px;
}

.panel-table td,
.panel-table th {
  vertical-align: middle;
}

.panel-table-center {
  text-align: center;
}

.panel-actions-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.panel-actions-cell .panel-btn-download,
.panel-actions-cell .panel-btn-bookmark {
  min-width: 132px;
  height: 38px;
  padding: 0 12px;
  justify-content: center;
}

.panel-btn-bookmark {
  background: #f5f5f5;
  color: #555;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 0.92rem;
  border: 1px solid #bdbdbd;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  cursor: pointer;
  line-height: 1.2;
}

.panel-btn-bookmark:hover {
  background: #ebebeb;
}

.panel-btn-download {
  line-height: 1.2;
}

.panel-btn-icon {
  background: none;
  border: 0;
  color: #1976d2;
  padding: 4px 6px;
}

.panel-stats-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
  margin: 0 auto;
  max-width: 980px;
}

.panel-stats-chart {
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 12px;
  padding: 16px;
  flex: 1 1 520px;
  min-width: 280px;
}

.panel-stats-metrics {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 240px;
  flex: 1 1 240px;
}

.panel-btn-secondary {
  background: #fff;
  color: #1976d2;
  border: 1px solid #bfd5f8;
}

.panel-btn-secondary:hover {
  background: #eef4ff;
  color: #1257a8;
}

.panel-settings-alert {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: grid;
  gap: 8px;
  position: relative;
  padding-right: 48px;
  opacity: 1;
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.panel-settings-alert i {
  margin-right: 8px;
}

.panel-flash-message.is-fading-out {
  opacity: 0;
  transform: translateY(-6px);
}

.panel-flash-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.75;
}

.panel-flash-close:hover {
  background: rgba(255, 255, 255, 0.28);
  opacity: 1;
}

.panel-settings-alert-success {
  background: #e8f6ee;
  border: 1px solid #cce8d8;
  color: #126b3f;
}

.panel-settings-alert-error {
  background: #fff2f2;
  border: 1px solid #f0cccc;
  color: #b42318;
}

.panel-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.panel-settings-card {
  background: #fff;
  border: 1px solid #e7edf5;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(26, 53, 87, 0.06);
}

.panel-settings-card form {
  display: grid;
  gap: 18px;
}

.panel-settings-card-title {
  font-size: 1.16rem;
  font-weight: 700;
  color: #184f93;
  margin-bottom: 14px;
}

.panel-settings-field {
  display: grid;
  gap: 8px;
}

.panel-settings-field label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #21364f;
}

.panel-settings-field small,
.panel-settings-intro,
.panel-avatar-cropper-controls small {
  color: #69778a;
  font-size: 0.86rem;
}

.panel-settings-field input {
  width: 100%;
  border: 1px solid #d9e1ec;
  border-radius: 12px;
  background: #fbfcfe;
  min-height: 46px;
  padding: 11px 14px;
  font: inherit;
  color: #16293f;
}

.panel-settings-field input:disabled {
  background: #f1f4f8;
  color: #738195;
}

.panel-settings-password-grid {
  display: grid;
  gap: 10px;
}

.panel-settings-avatar-layout {
  display: grid;
  gap: 14px;
}

.panel-settings-avatar-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}

.panel-settings-avatar-current {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #e8eef7;
  background: #fff;
}

.panel-settings-avatar-copy {
  display: grid;
  gap: 5px;
  color: #4d5f76;
}

.panel-avatar-cropper {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e3eaf4;
  border-radius: 14px;
  background: linear-gradient(180deg, #f9fbff 0%, #f2f6fc 100%);
}

.panel-avatar-cropper[hidden] {
  display: none !important;
}

body.panel-avatar-modal-open {
  overflow: hidden;
}

.panel-avatar-modal[hidden] {
  display: none !important;
}

.panel-avatar-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.panel-avatar-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 35, 0.58);
  backdrop-filter: blur(3px);
}

.panel-avatar-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e1e9f3;
  box-shadow: 0 28px 70px rgba(19, 35, 55, 0.22);
  padding: 20px;
  display: grid;
  gap: 18px;
}

.panel-avatar-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.panel-avatar-modal-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f2f5f9;
  color: #31465d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.panel-avatar-modal-close:hover {
  background: #e4ebf4;
}

.panel-avatar-cropper-stage {
  position: relative;
  width: min(100%, 280px);
  overflow: hidden;
  border-radius: 24px;
}

.panel-avatar-cropper-stage canvas {
  width: 100%;
  height: auto;
  border-radius: 24px;
  touch-action: none;
  display: block;
}

.panel-avatar-cropper-ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(10, 21, 35, 0.28);
  border: 3px solid rgba(255, 255, 255, 0.92);
  pointer-events: none;
}

.panel-avatar-cropper-controls {
  display: grid;
  gap: 8px;
}

.panel-avatar-cropper-controls label {
  font-weight: 700;
  color: #21364f;
}

.panel-avatar-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.panel-theme-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.panel-theme-option {
  display: block;
}

.panel-theme-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.panel-theme-option-card {
  min-height: auto;
  border-radius: 16px;
  border: 1px solid #dbe3f0;
  padding: 12px 14px;
  display: grid;
  align-content: end;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.panel-theme-option input:checked + .panel-theme-option-card {
  border-color: #1c67d1;
  box-shadow: 0 10px 24px rgba(28, 103, 209, 0.18);
  transform: translateY(-2px);
}

.panel-theme-preview-white {
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  color: #173863;
}

.panel-theme-preview-white strong,
.panel-theme-preview-white small {
  color: inherit;
}

.panel-theme-preview-dark {
  background: linear-gradient(180deg, #232831 0%, #11151c 100%);
  color: #f2f5f9;
}

.panel-theme-preview-dark strong,
.panel-theme-preview-dark small {
  color: inherit;
}

.panel-theme-preview-magenta {
  background: #ffffff;
  color: #c31686;
  border: 1px solid #f0e6f4;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.95),
    inset -3px -4px 0 rgba(230, 220, 236, 0.85),
    0 12px 24px rgba(60, 25, 60, 0.12);
}

.panel-theme-preview-magenta strong,
.panel-theme-preview-magenta small {
  color: inherit;
}

.panel-settings-actions {
  display: flex;
  justify-content: flex-start;
}

.panel-settings-confirm-form {
  display: grid;
  gap: 14px;
}

.panel-settings-confirm-block {
  border: 1px solid #e2e9f2;
  border-radius: 14px;
  padding: 16px;
  background: #fafcff;
  display: grid;
  gap: 12px;
}

.panel-settings-confirm-block.is-disabled {
  opacity: 0.6;
}

.panel-settings-confirm-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 0.92rem;
}

.panel-settings-confirm-block input {
  width: 100%;
  border: 1px solid #d9e1ec;
  border-radius: 12px;
  background: #fff;
  min-height: 46px;
  padding: 11px 14px;
  font: inherit;
}

.panel-theme-dark {
  background: #11161c;
}

.panel-theme-dark .panel-navbar,
.panel-theme-dark .panel-topbar,
.panel-theme-dark .panel-settings-card,
.panel-theme-dark .panel-avatar-modal-card,
.panel-theme-dark .card,
.panel-theme-dark .panel-table td,
.panel-theme-dark .panel-table th,
.panel-theme-dark .panel-upload-form,
.panel-theme-dark .panel-stats-chart {
  background: #181f27;
  color: #f3f5f7;
  border-color: #2b3642;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.07),
    inset -4px -6px 0 rgba(0, 0, 0, 0.72),
    0 14px 22px rgba(0, 0, 0, 0.45);
}

.panel-theme-dark .panel-sidebar {
  background: #141a21;
  border-color: #28313a;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.05),
    inset -4px -6px 0 rgba(0, 0, 0, 0.72);
}

.panel-theme-dark .panel-navbar-logo img {
  content: url("/style/images/logo2.svg");
}

.panel-theme-dark .panel-content,
.panel-theme-dark body {
  background: #11161c;
}

.panel-theme-dark .panel-section-title,
.panel-theme-dark .panel-navbar-username,
.panel-theme-dark .panel-settings-card-title,
.panel-theme-dark .panel-settings-field label,
.panel-theme-dark .panel-avatar-cropper-controls label,
.panel-theme-dark .panel-avatar-modal-close {
  color: #f0f4f8;
}

.panel-theme-dark .muted,
.panel-theme-dark .panel-settings-field small,
.panel-theme-dark .panel-settings-intro,
.panel-theme-dark .panel-settings-avatar-copy {
  color: #c7d1dd;
}

.panel-theme-dark .panel-menu-item {
  color: #e8edf2;
}

.panel-theme-dark .panel-menu-item i {
  color: #e8edf2;
}

.panel-theme-dark .panel-menu-item:hover,
.panel-theme-dark .panel-menu-item.active {
  background: #222c37;
  color: #FF5F00;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.06),
    inset -4px -5px 0 rgba(0, 0, 0, 0.65);
}

.panel-theme-dark .panel-settings-field input,
.panel-theme-dark .panel-settings-confirm-block input {
  background: #10161d;
  border-color: #2d3947;
  color: #eff3f7;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.06),
    inset -4px -5px 0 rgba(0, 0, 0, 0.7);
}

.panel-theme-dark .panel-avatar-modal-close {
  background: #222c37;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.06),
    inset -4px -5px 0 rgba(0, 0, 0, 0.7);
}

.panel-theme-dark .panel-btn-secondary {
  background: #1a232d;
  color: #d7e9ff;
  border-color: #32465b;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.06),
    inset -4px -6px 0 rgba(0, 0, 0, 0.7);
}

.panel-theme-dark .panel-btn-download {
  background: #ff5e00ec;
  color: #ffffff;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.22),
    inset -4px -6px 0 rgba(0, 0, 0, 0.7),
    0 12px 18px rgba(0, 0, 0, 0.45);
}

.panel-theme-dark .panel-btn-download:hover {
  background: #FF5F00;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.25),
    inset -4px -6px 0 rgba(0, 0, 0, 0.65),
    0 12px 18px rgba(0, 0, 0, 0.45);
}


.panel-theme-magenta {
  background: #f5f3f8;
}

.panel-theme-magenta .panel-navbar {
  background: #ffffff;
  border-bottom-color: #e8d7f0;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.95),
    inset -2px -3px 0 rgba(225, 215, 232, 0.9),
    0 10px 20px rgba(40, 20, 40, 0.08);
}

.panel-theme-magenta .panel-navbar-logo img {
  filter: hue-rotate(310deg) saturate(220%) brightness(1.05);
}

.panel-theme-magenta .panel-sidebar {
  background: #ffffff;
  border-right-color: #eadcf2;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.96),
    inset -2px -4px 0 rgba(230, 220, 238, 0.92);
}

.panel-theme-magenta .panel-topbar,
.panel-theme-magenta .panel-settings-card,
.panel-theme-magenta .panel-avatar-modal-card,
.panel-theme-magenta .card,
.panel-theme-magenta .panel-upload-form,
.panel-theme-magenta .panel-stats-chart {
  background: #ffffff;
  border-color: #eadcf2;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.95),
    inset -3px -4px 0 rgba(230, 220, 236, 0.9),
    0 12px 22px rgba(55, 26, 58, 0.1);
}

.panel-theme-magenta .panel-section-title,
.panel-theme-magenta .panel-settings-card-title {
  color: #b01573;
}

.panel-theme-magenta .panel-navbar-username,
.panel-theme-magenta .panel-settings-field label,
.panel-theme-magenta .panel-avatar-cropper-controls label,
.panel-theme-magenta .panel-menu-item,
.panel-theme-magenta .panel-menu-item i {
  color: #2f2433;
}

.panel-theme-magenta .muted,
.panel-theme-magenta .panel-settings-field small,
.panel-theme-magenta .panel-settings-intro,
.panel-theme-magenta .panel-settings-avatar-copy {
  color: #7b6b80;
}

.panel-theme-magenta .panel-menu-item:hover,
.panel-theme-magenta .panel-menu-item.active {
  background: #f6e5f1;
  color: #a41268;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.9),
    inset -2px -3px 0 rgba(221, 198, 224, 0.75);
}

.panel-theme-magenta .panel-btn-download {
  background: #c31686;
  color: #fff;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.35),
    inset -3px -5px 0 rgba(129, 20, 86, 0.36),
    0 10px 18px rgba(141, 28, 99, 0.25);
}

.panel-theme-magenta .panel-btn-download:hover {
  background: #d11a92;
}

.panel-theme-magenta .panel-btn-secondary,
.panel-theme-magenta .panel-btn-bookmark {
  background: #ffffff;
  color: #9b1162;
  border-color: #eadcf2;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.95),
    inset -3px -4px 0 rgba(230, 220, 236, 0.9);
}

.panel-theme-magenta .panel-settings-field input,
.panel-theme-magenta .panel-settings-confirm-block input {
  background: #ffffff;
  border-color: #eadcf2;
  color: #2e2633;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.95),
    inset -2px -3px 0 rgba(230, 220, 236, 0.9);
}

@media (max-width: 1024px) {
  .panel-settings-grid {
    grid-template-columns: 1fr;
  }

  body.panel-menu-open {
    overflow: hidden;
  }

  .panel-navbar {
    height: 56px;
  }

  .panel-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    border: 1px solid #dbe2ea;
    background: #fff;
    color: #1b3f6b;
    cursor: pointer;
    font-size: 1rem;
  }

  .panel-menu-toggle:hover {
    background: #f4f8ff;
  }

  .panel-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: 100vh;
    height: 100vh;
    padding: 72px 16px 20px;
    border-right: 0;
    border-bottom: 0;
    background: #f7f8fa;
    z-index: 140;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  body.panel-menu-open .panel-sidebar {
    transform: translateX(0);
  }

  .panel-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 16px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #dbe2ea;
    background: #fff;
    color: #1b3f6b;
    cursor: pointer;
    font-size: 1rem;
  }

  .panel-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 130;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  body.panel-menu-open .panel-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .panel-menu {
    width: 100%;
    max-width: 560px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 0;
    overflow: visible;
    padding-bottom: 0;
  }

  .panel-menu-item {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    border-radius: 10px;
    gap: 8px;
    font-size: 0.98rem;
  }

  .panel-content {
    margin-left: 0;
    width: 100%;
    padding: 72px 14px 16px;
  }

  .panel-topbar {
    padding: 14px 14px 12px;
  }

  .panel-section-title {
    font-size: 1.16rem;
  }

  .muted {
    font-size: 0.95rem;
  }
}

@media (max-width: 700px) {
  .panel-navbar {
    padding: 0 12px;
    height: 52px;
  }

  .panel-navbar-logo {
    height: 52px;
  }

  .panel-navbar-logo img {
    height: 30px;
  }

  .panel-navbar-username {
    display: none;
  }

  .panel-sidebar {
    padding: 68px 12px 16px;
  }

  .panel-content {
    padding: 66px 10px 14px;
  }

  .panel-main-card {
    margin-bottom: 6px;
  }

  .card {
    padding: 10px;
  }

  .panel-btn-download,
  .panel-btn-bookmark {
    width: 100%;
    justify-content: center;
  }

  .panel-actions-cell {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-table-wrap {
    overflow: visible;
    padding: 0;
  }

  .panel-table {
    display: block;
    width: 100% !important;
    min-width: 0;
    border: 0;
    background: transparent;
  }

  .panel-table colgroup {
    display: none;
  }

  .panel-table thead {
    display: none;
  }

  .panel-table tbody,
  .panel-table tr,
  .panel-table td {
    display: block;
    width: 100% !important;
  }

  .panel-table tr {
    margin-left: 0;
    margin-right: 0;
    border: 1px solid #e6ebf1;
    border-radius: 10px;
    background: #fff;
    padding: 8px 10px;
    margin-bottom: 10px;
  }

  .panel-table td {
    font-size: 0.88rem;
    padding: 8px 4px;
    border-bottom: 1px dashed #edf0f5;
  }

  .panel-table tr td:last-child {
    border-bottom: 0;
  }

  .panel-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #607086;
    margin-bottom: 4px;
  }

  .panel-table-center {
    text-align: left;
  }

  .panel-upload-form {
    padding: 16px 12px;
  }

  .panel-file-input {
    font-size: 0.84rem;
  }

  .panel-file-input::file-selector-button {
    padding: 5px 8px;
    font-size: 0.8rem;
    margin-right: 8px;
  }

  .panel-upload-form .panel-btn-download {
    width: 100%;
    max-width: none;
  }

  .panel-settings-card {
    padding: 14px;
    border-radius: 14px;
  }

  .panel-avatar-modal {
    padding: 12px;
  }

  .panel-avatar-modal-card {
    padding: 14px;
  }

  .panel-avatar-modal-actions {
    flex-direction: column;
  }

  .panel-settings-avatar-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-theme-options {
    grid-template-columns: 1fr;
  }

  .panel-settings-actions .panel-btn-download,
  .panel-settings-actions .panel-btn-secondary {
    width: 100%;
  }

  .panel-settings-confirm-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-stats-layout {
    gap: 12px;
  }

  .panel-stats-chart {
    padding: 10px;
    min-width: 0;
  }
}
