@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --bg: #F8FAFC;
  --bg-card: #FFFFFF;
  --text: #4B5563;
  --text-title: #111827;
  --muted: #6B7280;
  --line: #E2E8F0;
  
  --primary: #2563EB;     /* Azul Elétrico */
  --primary-dark: #1B2A6B;/* Azul Escuro */
  --accent: #F68B1F;      /* Laranja */
  --danger: #EF4444;
  --success: #10B981;
  
  --sidebar: #1B2A6B;
  --sidebar-2: #1e293b;
  --shadow: 0 4px 20px rgba(27, 42, 107, 0.04);
  --shadow-hover: 0 8px 30px rgba(27, 42, 107, 0.08);
  --ring: 0 0 0 4px rgba(37, 99, 235, 0.15);
  
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  min-height: 100vh;
}

button {
  border: 0;
  border-radius: var(--radius) !important;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  min-height: 44px;
  padding: 0 20px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(246, 139, 31, 0.25);
  background: var(--accent); /* Hover fica Laranja! */
}

button.secondary {
  background: #F1F5F9;
  color: var(--text-title);
  border: 1px solid var(--line);
}

button.secondary:hover {
  background: var(--line);
  color: var(--text-title);
  box-shadow: none;
}

button.danger {
  background: var(--danger);
}

.domain-manage-tab.active {
  background: var(--bg-card);
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  font-weight: 700;
}

button.danger:hover {
  background: #DC2626;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25);
}

button.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: none;
}

button.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

button.icon {
  width: 40px;
  min-height: 40px;
  padding: 0;
  background: #F1F5F9;
  color: var(--text-title);
  border: 1px solid var(--line);
}

button.icon:hover {
  background: var(--line);
  box-shadow: none;
}

input,
select,
textarea {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius) !important;
  padding: 0 16px;
  color: var(--text-title);
  background: #fff;
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--ring);
}

.hidden {
  display: none !important;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(246, 139, 31, 0.04), transparent 40%);
}

.login-layout {
  width: min(1000px, 100%);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.login-showcase {
  color: #FFFFFF;
  padding: 40px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 10px 40px rgba(27, 42, 107, 0.1);
  display: grid;
  align-content: center;
  gap: 16px;
  animation: rise .4s ease;
  border: none;
}

.login-showcase h1 {
  margin: 0;
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.2;
  letter-spacing: -.03em;
  font-weight: 800;
  color: #FFFFFF;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-size: 15px;
  max-width: 62ch;
}

.showcase-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 12px;
}

.showcase-grid article {
  display: grid;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  padding: 14px;
}

.showcase-grid strong {
  font-size: 18px;
  color: var(--accent);
}

.showcase-grid span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.login-illustration {
  width: 100%;
  height: auto;
  margin-top: 8px;
}

.login-panel {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  display: grid;
  gap: 20px;
  animation: rise .4s ease;
}

.login-panel h2 {
  font-size: 26px;
  letter-spacing: -.03em;
  font-weight: 700;
  color: var(--text-title);
}

.muted {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}

.login-panel label {
  display: grid;
  gap: 6px;
  color: var(--text-title);
  font-size: 13px;
  font-weight: 600;
}

.portal-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
}

.portal-switch button {
  min-height: 38px;
  color: var(--muted);
  background: transparent;
  border-radius: 8px;
  box-shadow: none;
}

.portal-switch button:hover {
  transform: none;
  box-shadow: none;
}

.portal-switch button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.checkout-summary {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(20, 183, 137, 0.3);
  border-radius: 10px;
  background: rgba(20, 183, 137, 0.08);
  color: #176c55;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  position: relative;
}

.sidebar {
  background: linear-gradient(180deg, var(--sidebar), var(--sidebar-2));
  color: #fff;
  padding: 24px 20px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  box-shadow: 8px 0 24px rgba(5, 16, 32, 0.18);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(20, 183, 137, 0.28);
}

.brand strong {
  font-size: 19px;
}

.brand small {
  display: block;
  color: #90a4c2;
}

nav {
  display: grid;
  gap: 9px;
}

nav button {
  min-height: 44px;
  background: rgba(255, 255, 255, 0.02);
  color: #d7e2f3;
  text-align: left;
  border: 1px solid transparent;
  box-shadow: none;
}

nav button.active {
  background: linear-gradient(90deg, rgba(13, 142, 207, 0.22), rgba(26, 92, 255, 0.08));
  border-color: rgba(128, 198, 243, 0.42);
}

nav button:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.09);
}

.content {
  padding: 26px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 255, 0.92));
  border: 1px solid #dce7f3;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 22px rgba(8, 29, 58, 0.08);
}

.view {
  grid-row: 2;
  grid-column: 1;
  min-width: 0;
  animation: rise .25s ease;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.stat,
.item {
  background: var(--panel);
  border: 1px solid #d9e5f2;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.stat {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

.stat strong {
  display: block;
  font-size: 34px;
  letter-spacing: -.03em;
}

.stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  background: var(--panel-soft);
  border: 1px solid #dce6f4;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(15, 43, 78, 0.08);
}

.domain-toolbar {
  grid-template-columns: minmax(180px, 1.3fr) minmax(160px, 1fr) minmax(180px, 1.2fr) minmax(130px, .8fr) minmax(110px, .6fr) minmax(100px, .6fr) auto;
}

.hint {
  margin: 0 0 14px;
  padding: 13px 14px;
  border: 1px solid #b9ddf2;
  border-radius: 14px;
  background: linear-gradient(90deg, #f4fbff, #edf7ff);
  color: #1f4d66;
  line-height: 1.45;
}

.check {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.check input {
  min-height: auto;
}

.list {
  display: grid;
  gap: 12px;
}

.item {
  padding: 17px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(14, 39, 71, 0.14);
}

.item h3 {
  margin: 0 0 5px;
  font-size: 16px;
}

.item p {
  margin: 0;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.file-manager {
  min-height: calc(100vh - 132px);
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 14px;
}

.file-pane,
.editor-pane {
  min-width: 0;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid #dce6f4;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.file-pane {
  display: grid;
  grid-template-rows: auto 1fr;
}

.file-toolbar,
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #d9e4f1;
}

.file-toolbar {
  flex-wrap: wrap;
}

.zip-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #3f5876;
  background: #eef6ff;
  border: 1px solid #d2e5f9;
  border-radius: 999px;
  padding: 0 12px;
  min-height: 38px;
}

.zip-check input {
  min-height: auto;
}

.file-toolbar input {
  flex: 1 1 180px;
}

.editor-toolbar {
  justify-content: space-between;
}

.editor-toolbar strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list {
  max-height: 55vh;
  min-height: 320px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.file-row {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.file-row:hover {
  background: #eef6ff;
  border-color: #d1e3f8;
}

.file-kind {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.file-row small,
.empty-file {
  color: var(--muted);
}

.empty-file {
  padding: 14px;
}

.editor-pane {
  display: grid;
  grid-template-rows: auto 1fr;
}

#fileEditor {
  width: 100%;
  height: 100%;
  min-height: 520px;
  resize: none;
  border: 0;
  padding: 16px;
  background: #0c1727;
  color: #d8e6f7;
  font: 14px/1.6 "JetBrains Mono", Consolas, monospace;
  outline: 0;
}

#fileEditor:disabled {
  background: #f7f9fb;
  color: var(--muted);
}

dialog {
  width: min(860px, calc(100vw - 28px));
  border: 0;
  border-radius: 14px;
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(8, 22, 40, 0.45);
  backdrop-filter: blur(3px);
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid #dbe6f4;
}

pre {
  margin: 0;
  padding: 16px;
  max-height: 70vh;
  overflow: auto;
  background: #0c1727;
  color: #d7e9ff;
  white-space: pre-wrap;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav button i {
  margin-right: 8px;
  font-size: 15px;
  width: 18px;
  text-align: center;
  color: var(--accent);
}

.list, .file-pane {
  max-width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 600px;
}

@media (max-width: 900px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-showcase {
    padding: 22px;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 24px 20px;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .sidebar-overlay {
    display: block !important;
  }

  .sidebar-overlay.hidden {
    display: none !important;
  }

  .menu-toggle-btn {
    display: inline-flex !important;
  }

  .stats,
  .toolbar,
  .domain-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .item {
    grid-template-columns: 1fr;
  }

  .file-manager {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 12px;
  }

  .topbar {
    padding: 10px 12px;
  }

  .topbar h2 {
    font-size: 18px;
  }

  .actions {
    justify-content: flex-start;
  }
}

.run-now-label {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  user-select: none;
}
.run-now-label input[type="checkbox"] {
  min-height: auto;
  margin: 0;
  cursor: pointer;
}

/* File Manager Layout Overrides */
.file-manager {
  display: block; /* Ocupa a largura total */
  min-height: 550px;
}

.file-pane {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
}

.editor-pane {
  display: none !important;
}

.file-list-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 2px solid var(--line);
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}

.header-name {
  flex-grow: 1;
}

.file-row-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px; /* Aumentado padding de 6px 12px para 10px 16px */
  border-bottom: 1px solid #edf3fa;
  transition: background 0.15s ease;
  border-radius: 10px;
}

.file-row-wrapper:hover {
  background: var(--bg);
}

.file-row-select {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}

.file-row-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
  cursor: pointer;
  user-select: none;
  min-width: 0;
}

.file-kind-icon {
  font-size: 22px; /* Aumentado de 18px para 22px */
  flex-shrink: 0;
}

.file-row-name {
  font-weight: 600;
  font-size: 15px; /* Aumentado de 14px para 15px */
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.file-row-size {
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
}

/* Batch Action Bar */
.batch-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--sidebar-2);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  animation: slideUp 0.25s ease;
}

.batch-action-bar button {
  min-height: 32px;
  font-size: 12px;
  padding: 0 12px;
  border-radius: 6px;
}

.batch-action-bar div {
  display: flex;
  gap: 8px;
}

/* Properties & Actions Panel */
.properties-panel {
  background: var(--panel);
  border: 1px solid #d9e5f2;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
}

.properties-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.properties-icon {
  font-size: 36px;
}

.properties-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  word-break: break-all;
}

.properties-header small {
  color: var(--muted);
  font-size: 11px;
  word-break: break-all;
}

.properties-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  color: var(--ink);
}

.meta-row strong {
  color: var(--muted);
}

.properties-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.properties-actions button {
  min-height: 36px;
  font-size: 12px;
  border-radius: 8px;
  padding: 0 10px;
}

/* Editor Container */
.editor-container {
  background: var(--panel);
  border: 1px solid #d9e5f2;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
  margin-top: 14px;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.editor-toolbar strong {
  font-size: 14px;
  color: var(--ink);
}

.editor-toolbar button {
  min-height: 36px;
  font-size: 12px;
  border-radius: 8px;
}

#fileEditor {
  width: 100%;
  height: 320px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #f7f9fd;
  color: #1a2c42;
  resize: vertical;
  line-height: 1.5;
}

@keyframes slideUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Breadcrumbs Styling */
.file-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.breadcrumb-item {
  color: var(--accent);
  cursor: pointer;
  transition: color 0.15s ease;
  user-select: none;
}

.breadcrumb-item:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--muted);
  user-select: none;
}

/* File Selected Row Highlight */
.file-selected-row {
  background: #eef4fc !important;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

/* phpMyAdmin Banner Styling */
.pma-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid #e28743; /* borda laranja que lembra a identidade do phpmyadmin */
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 12px 24px rgba(226, 135, 67, 0.12);
  animation: rise 0.3s ease;
}

.pma-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.pma-banner-icon {
  font-size: 32px;
  background: rgba(226, 135, 67, 0.15);
  border: 1px dashed rgba(226, 135, 67, 0.4);
  border-radius: 12px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pma-banner-content h3 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
}

.pma-banner-content p {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

.pma-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  background: linear-gradient(135deg, #e28743, #e16a24);
  color: #ffffff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 6px 12px rgba(226, 135, 67, 0.24);
  white-space: nowrap;
}

.pma-banner-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 20px rgba(226, 135, 67, 0.38);
}

/* Custom Context Menu */
.context-menu {
  position: absolute;
  z-index: 10000;
  width: 200px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #dbe6f4;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(12, 33, 60, 0.18);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  backdrop-filter: blur(10px);
}

.context-menu-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: auto;
  box-shadow: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.context-menu-item:hover {
  background: #f0f6ff;
  color: var(--accent);
  transform: none;
  box-shadow: none;
}

.context-menu-item.danger {
  color: var(--danger);
}

.context-menu-item.danger:hover {
  background: #fff0f0;
  color: var(--danger);
}

.context-menu-item .icon {
  font-size: 14px;
}

.context-menu-separator {
  height: 1px;
  background: #eef3fa;
  margin: 4px 6px;
}

/* File Manager Search Bar */
.search-bar-container {
  margin-bottom: 12px;
}

#fileSearch {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0 14px;
  font-size: 13px;
  background: var(--panel);
  color: var(--ink);
  outline: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#fileSearch:focus {
  border-color: var(--accent);
  box-shadow: var(--ring);
}

/* Drag & Drop Visual Indicator */
.file-list.drag-over {
  background: rgba(13, 142, 207, 0.08) !important;
  border: 2px dashed var(--accent) !important;
  border-radius: 12px;
  transform: scale(0.995);
  transition: all 0.2s ease;
}

/* Mail Section Redesign */
.mail-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid #dce6f4;
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 20px;
  box-shadow: 0 10px 24px rgba(15, 43, 78, 0.06);
}

.mail-pane-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mail-pane-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

/* Metrics Cards */
.mail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.mail-metric-card {
  background: var(--panel);
  border: 1px solid #d9e5f2;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mail-metric-card span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.mail-metric-card strong {
  font-size: 24px;
  color: var(--ink);
  font-weight: 700;
}

/* Batch Actions Bar */
.mail-batch-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--sidebar-2);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.batch-select-all {
  display: flex;
  align-items: center;
  gap: 12px;
}

.batch-select-all input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}

.batch-buttons {
  display: flex;
  gap: 8px;
}

.batch-buttons button {
  min-height: 32px;
  font-size: 12px;
  padding: 0 14px;
  border-radius: 6px;
}

/* Mailboxes Table */
.mail-table-container {
  background: var(--panel);
  border: 1px solid #d9e5f2;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.mail-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.mail-table th,
.mail-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #edf3fa;
  font-size: 13px;
}

.mail-table th {
  background: #f8fafc;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.mail-table tr:hover td {
  background: #f8fafc;
}

.mail-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}

.mail-username {
  font-weight: 600;
  color: var(--ink);
}

/* Action Dropdown Menu */
.mail-action-cell {
  position: relative;
  text-align: center;
}

.btn-mail-actions {
  background: transparent;
  color: var(--muted);
  border: 0;
  min-height: auto;
  padding: 6px 12px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: none !important;
  border-radius: 6px;
}

.btn-mail-actions:hover {
  background: #eef3fa;
  color: var(--ink);
  transform: none;
}

.mail-dropdown {
  position: absolute;
  right: 18px;
  top: 36px;
  z-index: 1000;
  background: #ffffff;
  border: 1px solid #dbe6f4;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(12, 33, 60, 0.14);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 170px;
}

.mail-dropdown button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  min-height: auto;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mail-dropdown button:hover {
  background: #f0f6ff;
  color: var(--accent);
  transform: none;
}

.mail-dropdown button.danger {
  color: var(--danger);
}

.mail-dropdown button.danger:hover {
  background: #fff0f0;
}


