/**
 * Portal do Colaborador FAM
 * SCSS - Compilar para ../css/style.css
 */
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
.permission-group, .profile-section-header, .modal-header, .card-header {
  border-bottom: 1px solid var(--border-light);
}

.doc-files-list, .doc-card-footer, .doc-card-meta, .profile-meta, .modal-footer, .card-footer, .sidebar-footer {
  border-top: 1px solid var(--border-light);
}

.filters-form .filter-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

:root {
  --primary: #0055a4;
  --primary-dark: #003b73;
  --primary-rgb: 0, 85, 164;
  --text-color: #0f172a;
  --text-light: #334155;
  --text-muted: #64748b;
  --bg-color: #ffffff;
  --bg-alt: #f1f3f8;
  --bg-hover: #e8ebf2;
  --border-color: #bcc3cf;
  --border-light: #d8dde6;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08), 0 20px 48px rgba(0, 0, 0, 0.05);
  --sidebar-bg: #ffffff;
  --sidebar-border: #e2e6ed;
  --sidebar-hover: #f1f3f8;
  --sidebar-active-bg: rgba(0, 85, 164, 0.06);
  --sidebar-active-border: #0055a4;
  --header-bg: #ffffff;
  --header-border: #e2e6ed;
  --theme-transition: background-color 0.3s ease, color 0.2s ease, border-color 0.3s ease;
}

[data-theme=dark] {
  --primary: #38bdf8;
  --primary-dark: #7dd3fc;
  --primary-rgb: 56, 189, 248;
  --text-color: #e2e8f0;
  --text-light: #aab8cb;
  --text-muted: #8299b4;
  --bg-color: #1c2640;
  --bg-alt: #0f1524;
  --bg-hover: #253256;
  --border-color: #3b5080;
  --border-light: #2d3e66;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5), 0 16px 48px rgba(0, 0, 0, 0.4);
  --sidebar-bg: #161e35;
  --sidebar-border: #2d3e66;
  --sidebar-hover: #253256;
  --sidebar-active-bg: rgba(56, 189, 248, 0.1);
  --sidebar-active-border: #38bdf8;
  --header-bg: #1c2640;
  --header-border: #2d3e66;
}
[data-theme=dark] .sidebar-logo img {
  filter: brightness(0) invert(1);
}
[data-theme=dark] .form-control,
[data-theme=dark] select.form-control,
[data-theme=dark] textarea.form-control,
[data-theme=dark] input[type=color] {
  background-color: var(--bg-alt);
  color: var(--text-color);
  border-color: var(--border-color);
}
[data-theme=dark] .form-control:focus,
[data-theme=dark] select.form-control:focus,
[data-theme=dark] textarea.form-control:focus,
[data-theme=dark] input[type=color]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}
[data-theme=dark] .form-control::-moz-placeholder, [data-theme=dark] select.form-control::-moz-placeholder, [data-theme=dark] textarea.form-control::-moz-placeholder, [data-theme=dark] input[type=color]::-moz-placeholder {
  color: var(--text-muted);
}
[data-theme=dark] .form-control::placeholder,
[data-theme=dark] select.form-control::placeholder,
[data-theme=dark] textarea.form-control::placeholder,
[data-theme=dark] input[type=color]::placeholder {
  color: var(--text-muted);
}
[data-theme=dark] .badge-primary,
[data-theme=dark] .stat-card-icon.primary {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}
[data-theme=dark] .alert-success {
  background: rgba(62, 178, 136, 0.12);
  color: #4ade80;
  border-color: rgba(62, 178, 136, 0.25);
}
[data-theme=dark] .alert-warning {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.25);
}
[data-theme=dark] .alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}
[data-theme=dark] .alert-info {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.25);
}
[data-theme=dark] .btn-primary {
  background: #38bdf8;
  color: #0f172a;
  font-weight: 600;
}
[data-theme=dark] .btn-primary:hover:not(:disabled) {
  background: #7dd3fc;
  color: #0f172a;
}
[data-theme=dark] .btn-secondary {
  background: var(--bg-hover);
  border-color: var(--border-color);
  color: var(--text-color);
}
[data-theme=dark] .btn-secondary:hover:not(:disabled) {
  background: var(--border-color);
}
[data-theme=dark] .btn-danger {
  border-color: #f87171;
  color: #f87171;
}
[data-theme=dark] .btn-danger:hover:not(:disabled) {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}
[data-theme=dark] .ql-toolbar {
  background: var(--bg-hover);
  border-color: var(--border-color);
}
[data-theme=dark] .ql-toolbar .ql-stroke {
  stroke: var(--text-light);
}
[data-theme=dark] .ql-toolbar .ql-fill {
  fill: var(--text-light);
}
[data-theme=dark] .ql-toolbar .ql-picker-label {
  color: var(--text-light);
}
[data-theme=dark] .ql-container {
  border-color: var(--border-color);
  color: var(--text-color);
  background: var(--bg-alt);
}
[data-theme=dark] .ql-editor.ql-blank::before {
  color: var(--text-muted);
}
[data-theme=dark] * {
  scrollbar-color: var(--border-color) var(--bg-alt);
}
[data-theme=dark] ::-webkit-scrollbar-track {
  background: var(--bg-alt);
}
[data-theme=dark] ::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
[data-theme=dark] ::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
[data-theme=dark] ::-moz-selection {
  background: rgba(56, 189, 248, 0.3);
  color: #fff;
}
[data-theme=dark] ::selection {
  background: rgba(56, 189, 248, 0.3);
  color: #fff;
}
[data-theme=dark] .tag-badge {
  filter: brightness(1.15) saturate(0.9);
}
[data-theme=dark] .approval-card:hover {
  box-shadow: var(--shadow-md);
}
[data-theme=dark] .table tbody tr:hover {
  background: var(--bg-hover);
}
[data-theme=dark] .profile-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #0c1017 100%);
}
[data-theme=dark] .auth-brand img {
  filter: brightness(0) invert(1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-alt);
  min-height: 100vh;
  font-family: "Source Sans 3", sans-serif;
  transition: var(--theme-transition);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.app-wrapper {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-alt);
}

.content-area {
  flex: 1;
  padding: 1.5rem;
  padding-top: calc(64px + 1.5rem);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  padding: 2rem 1.5rem;
}
.auth-container {
  width: 100%;
  max-width: 400px;
}
.auth-brand {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-brand img {
  height: 100px;
  width: auto;
  margin-bottom: 1rem;
}
.auth-brand h1 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}
.auth-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}
.auth-card {
  background: var(--bg-color);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2rem;
}
.auth-remember {
  margin-bottom: 0.5rem !important;
}
.auth-remember .form-check {
  justify-content: flex-start;
}
.auth-remember .form-check-label {
  font-size: 0.85rem;
  color: var(--text-light);
}
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.auth-footer a {
  color: var(--primary);
  font-weight: 500;
}
.auth-footer a:hover {
  text-decoration: underline;
}
.auth-notice {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.auth-notice i {
  margin-right: 4px;
}

.sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}
.sidebar-header {
  padding: 1.5rem;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}
.nav-section {
  margin-bottom: 1rem;
}
.nav-section-title {
  padding: 0.5rem 1.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.nav-item {
  display: block;
  padding: 0.5rem 1.5rem;
  color: var(--text-color);
  font-size: 0.9rem;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}
.nav-item:hover {
  background: var(--sidebar-hover);
  color: var(--primary);
}
.nav-item.active {
  background: var(--sidebar-active-bg);
  color: var(--primary);
  font-weight: 600;
}
.nav-item-icon {
  display: inline-block;
  width: 20px;
  margin-right: 0.5rem;
  text-align: center;
}
.nav-item-icon i {
  font-size: 1rem;
  vertical-align: middle;
}

.header {
  height: 64px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  position: fixed;
  top: 0;
  left: 260px;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.header-user:hover {
  background: var(--bg-hover);
}
.header-user-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.header-user-link:hover {
  opacity: 0.85;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}
.user-info {
  text-align: right;
}
.user-name {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-color);
}
.user-role {
  font-size: 0.75rem;
  color: var(--text-light);
}

.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 0.5rem 0;
  z-index: 1000;
  display: none;
  margin-top: 0.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}
.dropdown-menu.show {
  display: block;
}
.dropdown-item {
  display: block;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-color);
  transition: background 0.15s ease;
}
.dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--primary);
}
.dropdown-item i {
  margin-right: 0.5rem;
  width: 16px;
  text-align: center;
}
.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 0.5rem 0;
}

.menu-toggle {
  display: none;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-color);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 1rem;
  padding: 0;
}
.theme-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--border-color);
  color: var(--primary);
}
.theme-toggle i {
  transition: transform 0.4s ease;
}
.theme-toggle:hover i {
  transform: rotate(20deg);
}

.card {
  background: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.card-header {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header-collapsible {
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.card-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}
.card-title i {
  margin-right: 0.5rem;
}
.card-body {
  padding: 1rem;
}
.card-body-collapsible {
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  max-height: 1000px;
  opacity: 1;
}
.card-footer {
  padding: 1rem 1.5rem;
  background: var(--bg-color);
}

.collapsible-card .btn-collapse {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--text-light);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.collapsible-card .btn-collapse:hover {
  color: var(--primary);
}
.collapsible-card.collapsed .card-body-collapsible {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}
.collapsible-card.collapsed .btn-collapse {
  transform: rotate(-90deg);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.modal-overlay.show .modal {
  transform: scale(1);
}
.modal {
  background: var(--bg-alt);
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.modal-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 1.1rem;
  font-weight: 600;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.15s ease;
}
.modal-close:hover {
  background: var(--bg-color);
  color: var(--text-color);
}
.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}
.modal-footer {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.section-header {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.section-header h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-color);
}
.section-header h2 i {
  font-size: 1.25rem;
  color: var(--text-muted);
}
.section-header p {
  margin: 0.25rem 0 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.section-header .btn {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  color: var(--text-color);
}
.section-header .btn:hover {
  background: var(--bg-color);
  border-color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 3rem;
}
.empty-state-icon {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.empty-state-icon i {
  margin-right: 0.5rem;
}
.empty-state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}
.empty-state-text {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.editor-toolbar {
  display: flex;
  gap: 4px;
  padding: 8px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  flex-wrap: wrap;
}
.editor-btn {
  padding: 6px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--text-color);
}
.editor-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.editor-content {
  min-height: 300px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
  outline: none;
  background: var(--bg-alt);
}
.editor-content:focus {
  border-color: var(--primary);
}

.ql-toolbar {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background: var(--bg-color);
}

.ql-container {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-color);
}
.form-label.required::after {
  content: " *";
  color: #e74c3c;
}
.form-control {
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: border-color 0.15s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}
.form-control::-moz-placeholder {
  color: var(--text-muted);
}
.form-control::placeholder {
  color: var(--text-muted);
}
.form-control.error {
  border-color: #e74c3c;
}
.form-control:disabled {
  background: var(--bg-alt);
  color: var(--text-light);
  cursor: not-allowed;
  opacity: 0.8;
}
.form-control[type=textarea],
.form-control textarea.form-control {
  min-height: 120px;
  resize: vertical;
}
.form-control select.form-control {
  cursor: pointer;
}
.form-hint {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-light);
}
.form-error {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #e74c3c;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.form-layout-main-sidebar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}
.form-check input[type=checkbox],
.form-check input[type=radio] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--primary);
}
.form-check-label {
  font-size: 0.9rem;
  color: var(--text-color);
  cursor: pointer;
}
.form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
}

.verification-input-group {
  display: flex;
  gap: 0.5rem;
}
.verification-input-group .form-control {
  flex: 1;
  letter-spacing: 8px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
}
.verification-input-group .form-control.valid {
  border-color: #3eb288;
  background: rgba(62, 178, 136, 0.05);
}
.verification-input-group .btn {
  white-space: nowrap;
  min-width: 140px;
}
.verification-status {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.verification-status.success {
  color: #3eb288;
}
.verification-status.error {
  color: #e74c3c;
}

.password-strength {
  margin-top: 0.25rem;
}
.password-strength-bar {
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.quill-editor {
  background: white;
  border: 1px solid var(--border-light);
}
.quill-editor .ql-container {
  border: none !important;
  font-family: inherit;
}
.quill-editor .ql-editor {
  padding: 12px 14px;
  font-size: 0.95rem;
  color: var(--text-color);
  cursor: text;
}
.quill-editor--sm .ql-editor {
  min-height: 100px;
}
.quill-editor--md .ql-editor {
  min-height: 200px;
}
.quill-editor--lg .ql-editor {
  min-height: 300px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  font-family: "Source Sans 3", sans-serif;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  color: white;
}
.btn-success {
  background: #3eb288;
  color: white;
}
.btn-success:hover:not(:disabled) {
  background: #45b7e5;
  color: white;
}
.btn-secondary {
  background: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--border-light);
  color: var(--text-color);
}
.btn-danger {
  background: var(--bg-color);
  border: 1px solid #e74c3c;
  color: #e74c3c;
}
.btn-danger:hover:not(:disabled) {
  background: #e74c3c;
  border-color: #e74c3c;
  color: var(--bg-alt);
}
.btn-link {
  background: none;
  color: var(--primary);
  padding: 0.25rem 0.5rem;
}
.btn-link:hover:not(:disabled) {
  color: var(--primary-dark);
  text-decoration: underline;
}
.btn-sm {
  padding: 0.25rem 1rem;
  font-size: 0.8rem;
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}
.btn-block {
  width: 100%;
}
.btn-group {
  display: flex;
  gap: 0.5rem;
}

.table-container {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.table th {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  background: var(--bg-color);
}
.table td {
  font-size: 0.9rem;
}
.table tbody tr:hover {
  background: var(--bg-hover);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 4px;
}
.badge-primary {
  background: rgba(0, 85, 164, 0.1);
  color: #0055a4;
}
.badge-success {
  background: rgba(62, 178, 136, 0.1);
  color: #3eb288;
}
.badge-warning {
  background: rgba(243, 156, 18, 0.1);
  color: #f39c12;
}
.badge-danger {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}
.badge-info {
  background: rgba(69, 183, 229, 0.1);
  color: #45b7e5;
}
.badge-secondary {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}

.alert {
  padding: 1rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-success {
  background: rgba(62, 178, 136, 0.1);
  color: #3eb288;
  border: 1px solid rgba(62, 178, 136, 0.2);
}
.alert-error {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.2);
}
.alert-warning {
  background: rgba(243, 156, 18, 0.1);
  color: #d68910;
  border: 1px solid rgba(243, 156, 18, 0.2);
}
.alert-info {
  background: rgba(69, 183, 229, 0.1);
  color: #45b7e5;
  border: 1px solid rgba(69, 183, 229, 0.2);
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 4px;
  background: var(--bg-color);
  color: var(--text-light);
}

.permission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.users-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.user-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: var(--bg-color);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.2s ease;
  gap: 1.5rem;
}
.user-card:hover {
  border-color: rgba(0, 85, 164, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.user-card-main {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex: 1;
  min-width: 0;
}
.user-card-avatar {
  flex-shrink: 0;
}
.user-card-avatar .user-avatar {
  width: 56px;
  height: 56px;
  font-size: 1.25rem;
  font-weight: 600;
}
.user-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.user-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.user-card-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}
.user-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}
.user-card-detail {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.user-card-detail i {
  width: 16px;
  text-align: center;
  opacity: 0.6;
}
.user-card-detail a {
  color: var(--primary);
  text-decoration: none;
}
.user-card-detail a:hover {
  text-decoration: underline;
}
.user-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.25rem;
}
.user-card-tags .badge {
  font-size: 0.75rem;
  font-weight: 500;
}
.user-card-actions {
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .user-card {
    flex-direction: column;
    align-items: stretch;
  }
  .user-card-main {
    flex-direction: column;
  }
  .user-card-actions {
    width: 100%;
  }
  .user-card-actions .btn {
    width: 100%;
  }
}

.file-icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--bg-color);
  color: var(--text-muted);
}

.filter-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  background: rgba(69, 183, 229, 0.1);
  color: #45b7e5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.welcome-section {
  margin-bottom: 2rem;
}
.welcome-section h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0.25rem 0;
}
.welcome-section p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.9rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  transition: all 0.15s ease;
}
.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.stat-card-icon i {
  margin-right: 0.5rem;
}
.stat-card-icon.primary {
  background: rgba(0, 85, 164, 0.1);
  color: #0055a4;
}
.stat-card-icon.success {
  background: rgba(62, 178, 136, 0.1);
  color: #3eb288;
}
.stat-card-icon.warning {
  background: rgba(243, 156, 18, 0.1);
  color: #f39c12;
}
.stat-card-icon.danger {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}
.stat-card-icon.info {
  background: rgba(69, 183, 229, 0.1);
  color: #45b7e5;
}
.stat-card-icon.secondary {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}
.stat-card-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1;
}
.stat-card-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.widget-list-docs {
  display: flex;
  gap: 10px;
}
.widget-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s ease;
  text-decoration: none;
  color: inherit;
}
.widget-list-item:last-child {
  border-bottom: none;
}
.widget-list-item:hover {
  background: var(--bg-hover);
}

.widget-item-content {
  flex: 1;
  min-width: 0;
}
.widget-item-content h4 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
  margin: 0 0 0.25rem 0;
  line-height: 1.4;
}
.widget-item-date, .widget-item-meta {
  font-size: 0.75rem;
  color: var(--text-light);
}

.widget-arrow {
  color: var(--text-light);
  font-size: 0.75rem;
}

.widget-news .card-header,
.widget-docs .card-header {
  background: transparent;
}
.widget-news .card-header .card-title,
.widget-docs .card-header .card-title {
  color: var(--text-color);
}
.widget-news .card-header .card-title i,
.widget-docs .card-header .card-title i {
  color: var(--text-muted);
}
.widget-news .btn-link.btn-sm,
.widget-docs .btn-link.btn-sm {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.15s ease;
}
.widget-news .btn-link.btn-sm:hover,
.widget-docs .btn-link.btn-sm:hover {
  background: var(--bg-hover);
  text-decoration: none;
  border-color: var(--border-color);
}

.widget-news .card {
  padding-bottom: 10px;
}

.widget-docs-horizontal .card {
  border: 1px solid var(--border-light);
  box-shadow: none;
}
.widget-docs-horizontal .card-header {
  border-bottom: 1px solid var(--border-light);
}
.widget-docs-horizontal .widget-list {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.widget-docs-horizontal .widget-list::-webkit-scrollbar {
  height: 8px;
}
.widget-docs-horizontal .widget-list::-webkit-scrollbar-track {
  background: var(--bg-color);
  border-radius: 4px;
}
.widget-docs-horizontal .widget-list::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
.widget-docs-horizontal .widget-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}
.widget-docs-horizontal .empty-state {
  padding: 2rem;
  min-width: 100%;
}

.doc-chip {
  min-width: 240px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.doc-chip-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
  color: var(--primary);
  flex-shrink: 0;
}
.doc-chip-title {
  font-size: 0.95rem;
  margin: 0 0 4px 0;
  color: var(--text-color);
}
.doc-chip-meta {
  color: var(--text-light);
  font-size: 0.85rem;
}
.doc-chip-download {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  color: var(--primary);
  background: var(--bg-alt);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.doc-chip-download:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  min-height: calc(100vh - 200px);
}
.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.profile-user-card {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  background-color: var(--bg-color);
}
.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
}
.profile-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 auto 1rem;
}
.profile-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0.25rem 0;
}
.profile-role {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  margin: 0 0 0.25rem 0;
}
.profile-email {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0 0 1rem 0;
}
.profile-status {
  margin-bottom: 1rem;
}
.profile-meta {
  padding-top: 1rem;
}
.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.profile-meta-item i {
  width: 16px;
  text-align: center;
  color: var(--text-light);
}
.profile-nav {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-color);
}
.profile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.15s ease;
}
.profile-nav-item:hover {
  background: var(--bg-hover);
  color: var(--primary);
}
.profile-nav-item.active {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  color: var(--primary);
  font-weight: 500;
}
.profile-nav-item i {
  width: 20px;
  text-align: center;
}
.profile-main {
  min-width: 0;
}
.profile-section {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  border-radius: 8px;
  padding: 2rem;
  background-color: var(--bg-color);
}
.profile-section-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}
.profile-section-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.profile-section-header h3 i {
  color: var(--text-light);
}
.profile-section-header p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}
.profile-form {
  max-width: 600px;
}
.profile-form-narrow {
  max-width: 400px;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--auth-gradient-start) 0%, var(--auth-gradient-end) 100%);
  border-radius: 8px;
  color: white;
  margin-bottom: 2rem;
}
.profile-info h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.profile-info p {
  opacity: 0.9;
  font-size: 0.9rem;
}
.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}
.profile-tab {
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.profile-tab:hover {
  color: var(--primary);
}
.profile-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.profile-permissions h3, .profile-permissions h4 {
  color: var(--text-color);
}

.permission-group {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
}
.permission-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.permission-group-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.permission-group-header > i {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-top: 2px;
}
.permission-group-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0.25rem 0;
}
.permission-group-header p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

.user-select-card {
  background: var(--bg-color);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.approval-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: color-mix(in srgb, #3eb288 8%, transparent);
  border: 1px solid color-mix(in srgb, #3eb288 25%, transparent);
  border-radius: 8px;
  margin-top: 1rem;
}
.approval-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, #3eb288 15%, transparent);
  color: #3eb288;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.approval-info-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.approval-info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}
.approval-info-name {
  font-size: 0.95rem;
  color: var(--text-color);
}
.approval-info-date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-card {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.15s ease;
}
.news-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.news-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.4;
}
.news-card-title a {
  color: inherit;
}
.news-card-title a:hover {
  color: var(--primary);
}
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-light);
}
.news-card-excerpt {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.news-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.news-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  padding-left: 22px;
}
.news-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-light);
  border-radius: 1px;
}

.news-timeline-group-header {
  --article-accent: #0055a4;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}
.news-timeline-group-header:first-child {
  margin-top: 0;
}
.news-timeline-group-header::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  z-index: 1;
  background-color: var(--article-accent);
}
.news-timeline-group-header__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--article-accent);
  white-space: nowrap;
}

.news-timeline-item {
  --article-accent: #0055a4;
  display: flex;
  background: var(--bg-color);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.news-timeline-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.news-timeline-item__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.5rem;
  min-width: 0;
}
.news-timeline-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.news-timeline-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.78rem;
}
.news-timeline-item__meta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
}
.news-timeline-item__time, .news-timeline-item__author {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.news-timeline-item__time i, .news-timeline-item__author i {
  font-size: 0.7rem;
}
.news-timeline-item--compact .news-timeline-item__body {
  padding: 0.5rem 1rem;
}
.news-timeline-item--compact .news-timeline-title {
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .news-timeline-item__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .news-timeline-item__footer {
    flex-wrap: wrap;
  }
}

.news-timeline-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.4;
  margin: 0;
}
.news-timeline-title a {
  color: inherit;
  transition: color 0.15s ease;
}
.news-timeline-title a:hover {
  color: var(--article-accent);
}

.news-timeline-excerpt {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-timeline-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.news-timeline-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.news-timeline-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--article-accent, #0055a4);
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.15s ease;
}
.news-timeline-readmore:hover {
  gap: 0.5rem;
  background: var(--bg-hover);
  border-color: var(--border-color);
}

.content-detail {
  --detail-accent: #0055a4;
  background: var(--bg-color);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.content-detail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: rgba(0, 85, 164, 0.05);
  border-bottom: 2px solid var(--detail-accent);
}
.content-detail__type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--detail-accent);
}
.content-detail__type-badge i {
  font-size: 0.85rem;
}
.content-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.content-detail__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.35;
  padding: 1.5rem 1.5rem 0.5rem;
  margin: 0;
}
.content-detail__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0 1.5rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.content-detail__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.content-detail__meta span i {
  font-size: 0.75rem;
}
.content-detail__divider {
  height: 1px;
  background: var(--border-light);
  margin: 0 1.5rem;
}
.content-detail__body {
  padding: 1.5rem;
  line-height: 1.8;
  color: var(--text-color);
  font-size: 0.95rem;
}
.content-detail__body h1, .content-detail__body h2, .content-detail__body h3, .content-detail__body h4 {
  color: var(--text-color);
  margin: 1.5rem 0 0.5rem;
  line-height: 1.3;
}
.content-detail__body p {
  margin-bottom: 1rem;
}
.content-detail__body a {
  color: var(--detail-accent);
  text-decoration: underline;
}
.content-detail__body ul, .content-detail__body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.content-detail__body img {
  max-width: 100%;
  border-radius: 4px;
}
.content-detail__body blockquote {
  border-left: 3px solid var(--detail-accent);
  padding-left: 1rem;
  color: var(--text-light);
  font-style: italic;
  margin: 1rem 0;
}
@media (max-width: 768px) {
  .content-detail__title {
    font-size: 1.25rem;
    padding: 1rem 1rem 0.25rem;
  }
  .content-detail__meta {
    padding: 0 1rem 1rem;
  }
  .content-detail__divider {
    margin: 0 1rem;
  }
  .content-detail__body {
    padding: 1rem;
  }
  .content-detail__header {
    padding: 0.5rem 1rem;
  }
}

.doc-card {
  background: var(--bg-color);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.doc-card:hover {
  border-color: var(--border-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.doc-card-icon {
  font-size: 1rem;
  color: #45b7e5;
  margin-right: 0.5rem;
  font-weight: normal;
}
.doc-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.doc-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.doc-card-description {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 1rem;
}
.doc-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 0.5rem;
}
.doc-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.doc-card-footer {
  padding: 1rem;
  background: var(--bg-color);
}
.doc-card-footer .btn-download {
  width: 100%;
  background: var(--text-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.15s ease;
}
.doc-card-footer .btn-download:hover {
  background: var(--primary);
  color: white;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.docs-grid > * {
  display: none;
}
.docs-grid > *:nth-child(1) {
  display: flex;
}
@media (max-width: 768px) {
  .docs-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 768px) {
  .docs-grid > *:nth-child(n+3) {
    display: none;
  }
  .docs-grid > *:nth-child(-n+2) {
    display: flex;
  }
}
@media (min-width: 1200px) {
  .docs-grid > *:nth-child(n+4) {
    display: none;
  }
  .docs-grid > *:nth-child(-n+3) {
    display: flex;
  }
}
@media (min-width: 1600px) {
  .docs-grid > *:nth-child(n+5) {
    display: none;
  }
  .docs-grid > *:nth-child(-n+4) {
    display: flex;
  }
}

.doc-files-list {
  padding: 1rem;
  background: var(--bg-color);
}

.doc-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}
.doc-file-item:last-child {
  border-bottom: none;
}
.doc-file-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}
.doc-file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
}
.doc-file-size {
  color: var(--text-muted);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.calendars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
  gap: 1.5rem;
}

.calendar-widget {
  min-width: 0;
}
.calendar-container iframe {
  display: block;
  min-height: 600px;
  height: calc(100vh - 64px - 112px);
}

@media (max-width: 768px) {
  .calendars-grid {
    grid-template-columns: 1fr;
  }
}
.calendar-body {
  padding: 0 !important;
}

.calendar-container {
  width: 100%;
  overflow: hidden;
  background: var(--bg-color);
}
.calendar-container iframe {
  transition: filter 0.2s ease;
}

[data-theme=dark] .calendar-container iframe {
  filter: invert(0.9) hue-rotate(180deg);
}

@media (max-width: 768px) {
  .calendar-container iframe {
    min-height: 500px;
  }
}
.card-header .btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.comunicados-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.widget-news .card:last-of-type {
  padding-bottom: 0;
}

.comunicado-item {
  --comunicado-accent: var(--primary);
  --comunicado-accent-rgb: var(--primary-rgb);
  display: flex;
  gap: 0;
  background: var(--bg-color);
  border-radius: 8px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.comunicado-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-color);
}
.comunicado-item__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: rgba(var(--comunicado-accent-rgb), 0.06);
  border-right: 1px solid var(--comunicado-accent);
  min-width: 72px;
  text-align: center;
}
.comunicado-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--comunicado-accent);
  color: #fff;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.comunicado-item__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1;
}
.comunicado-item__day {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--comunicado-accent);
  line-height: 1;
}
.comunicado-item__month {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
}
.comunicado-item__year {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.comunicado-item__time {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--comunicado-accent);
  margin-top: 2px;
  letter-spacing: 0.03em;
}
.comunicado-item__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.5rem;
  min-width: 0;
}
.comunicado-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.comunicado-item__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.4;
  margin: 0;
}
.comunicado-item__title a {
  color: inherit;
  transition: color 0.15s ease;
}
.comunicado-item__title a:hover {
  color: var(--comunicado-accent);
}
.comunicado-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  flex-shrink: 0;
}
.comunicado-item__excerpt {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.comunicado-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.78rem;
}
.comunicado-item__author {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
}
.comunicado-item__author i {
  font-size: 0.7rem;
}
.comunicado-item__readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--comunicado-accent);
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.15s ease;
}
.comunicado-item__readmore:hover {
  gap: 0.5rem;
  background: var(--bg-hover);
  border-color: var(--border-color);
}
.comunicado-item--compact .comunicado-item__aside {
  padding: 1rem 0.5rem;
  min-width: 60px;
}
.comunicado-item--compact .comunicado-item__icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.comunicado-item--compact .comunicado-item__day {
  font-size: 1.1rem;
}
.comunicado-item--compact .comunicado-item__body {
  padding: 0.5rem 1rem;
}
.comunicado-item--compact .comunicado-item__title {
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .comunicado-item__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .comunicado-item__footer {
    flex-wrap: wrap;
  }
}

.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.inline-create-form {
  background: var(--bg-color);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.inline-create-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}
.inline-create-form .form-group {
  margin-bottom: 0;
}
.inline-create-form .form-group.flex-grow {
  flex: 1;
  min-width: 200px;
}
.inline-create-form .form-group label {
  font-size: 0.8rem;
  margin-bottom: 4px;
  display: block;
}
.inline-create-form input[type=color] {
  width: 60px;
  height: 38px;
  padding: 4px;
}

.tag-card {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  min-width: 320px;
  align-items: center;
  background-color: var(--bg-color);
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}
#tab-roles .tag-card {
  width: 100%;
}
.tag-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tag-card-actions {
  display: flex;
  gap: 8px;
  margin-left: 1rem;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}
.tag-badge i {
  font-size: 0.85rem;
}

.tags-badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-description {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}

.tag-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.tag-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-light);
  background: var(--bg-color);
  padding: 4px 10px;
  border-radius: 4px;
}
.tag-stat i {
  color: var(--primary);
  font-size: 0.75rem;
}

.tabs-container,
.tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.tabs {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.tab-button,
.tab-item {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 4px 4px 0 0;
  transition: all 0.15s ease;
}
.tab-button i,
.tab-item i {
  font-size: 0.95rem;
}
.tab-button:hover,
.tab-item:hover {
  color: var(--primary);
  background: rgba(0, 85, 164, 0.04);
}
.tab-button.active,
.tab-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
  background: rgba(0, 85, 164, 0.06);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.tag-assignment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.tag-assignment-card {
  border: 2px solid var(--border-light);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.15s ease;
}
.tag-assignment-card:hover {
  border-color: var(--primary);
}
.tag-assignment-card:has(input[type=checkbox]:checked) {
  border-color: #3eb288;
  background: rgba(62, 178, 136, 0.05);
}
.tag-assignment-card:has(input[type=checkbox]:checked) h4 {
  color: #3eb288;
  font-weight: 600;
}
.tag-assignment-card label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  margin: 0;
}
.tag-assignment-card input[type=checkbox] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.tag-assignment-card input[type=checkbox]:checked {
  accent-color: #3eb288;
}
.tag-assignment-card h4 {
  margin: 0 0 4px 0;
  font-size: 0.95rem;
  color: var(--text-color);
}
.tag-assignment-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.approval-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.approval-stat-card {
  background: var(--bg-color);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border-light);
}
.approval-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.approval-stat-icon.pending {
  background: rgba(243, 156, 18, 0.15);
  color: #f39c12;
}
.approval-stat-icon.professor {
  background: rgba(69, 183, 229, 0.15);
  color: #45b7e5;
}
.approval-stat-icon.admin {
  background: rgba(0, 85, 164, 0.15);
  color: #0055a4;
}
.approval-stat-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  line-height: 1;
}
.approval-stat-content p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0.25rem 0 0 0;
}
.approval-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}
.approval-card {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid var(--border-light);
}
.approval-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.approval-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.approval-card-header .user-avatar {
  width: 56px;
  height: 56px;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.approval-card-info {
  flex: 1;
  min-width: 0;
}
.approval-card-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}
.approval-card-email {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
  word-break: break-word;
}
.approval-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.5rem;
}
.approval-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.approval-card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}
.approval-card-meta-item i {
  width: 16px;
  text-align: center;
  color: var(--text-muted);
}
.approval-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}
.approval-card-actions .btn {
  flex: 1;
  justify-content: center;
}

.activity-log-page {
  margin: 0 auto;
}
.activity-filters {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.activity-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}
.activity-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.activity-count i {
  color: var(--primary);
}
.activity-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
}

.filters-form .filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}
.filters-form .filter-group {
  flex: 1;
  min-width: 150px;
}
.filters-form .filter-group label {
  display: block;
  margin-bottom: 0.25rem;
}
.filters-form .filter-group label i {
  margin-right: 4px;
}
.filters-form .filter-actions {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.activity-timeline {
  position: relative;
  padding-left: 28px;
}
.activity-timeline::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
}

.timeline-date-separator {
  position: relative;
  margin: 1.5rem 0 1rem -28px;
  padding-left: 0;
}
.timeline-date-separator span {
  display: inline-block;
  padding: 0.25rem 1rem;
  background: var(--bg-color);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.activity-item {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  margin-left: -28px;
}

.activity-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  z-index: 1;
}

.activity-content {
  flex: 1;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  min-width: 0;
  background-color: var(--bg-color);
}

.activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.activity-user {
  font-size: 0.9rem;
  color: var(--text-color);
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.activity-description {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.activity-description strong {
  color: var(--text-color);
  font-weight: 600;
}
.activity-description em {
  color: var(--text-muted);
  font-style: italic;
}

.activity-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.activity-action-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.activity-exact-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.table-docs thead th,
.table-news thead th {
  background: var(--bg-color);
  color: var(--text-color);
}
.table-docs tbody tr:hover,
.table-news tbody tr:hover {
  background: var(--bg-hover);
}

.pagination-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-item-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-color);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.15s ease;
}
.admin-item-card:hover {
  border-color: rgba(0, 85, 164, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.admin-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.admin-item-icon--primary {
  background: rgba(0, 85, 164, 0.1);
  color: #0055a4;
}
.admin-item-icon--success {
  background: rgba(62, 178, 136, 0.1);
  color: #3eb288;
}
.admin-item-icon--warning {
  background: rgba(243, 156, 18, 0.1);
  color: #f39c12;
}
.admin-item-icon--danger {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}
.admin-item-icon--info {
  background: rgba(69, 183, 229, 0.1);
  color: #45b7e5;
}
.admin-item-icon--secondary {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
}

.admin-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-item-badges {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.admin-item-subtitle {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-item-extra {
  font-size: 0.82rem;
  color: var(--text-light);
}
.admin-item-extra i {
  margin-right: 4px;
  opacity: 0.7;
}
.admin-item-extra small {
  color: var(--text-muted);
}

.admin-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2px;
}

.admin-item-meta-item {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.admin-item-meta-item i {
  font-size: 0.72rem;
  opacity: 0.7;
}

.admin-item-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  background: var(--bg-color);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.82rem;
  text-decoration: none;
}
.btn-icon:hover {
  border-color: var(--border-color);
  color: var(--text-color);
  background: var(--bg-alt);
}
.btn-icon--edit:hover {
  border-color: rgba(0, 85, 164, 0.4);
  color: var(--primary);
  background: rgba(0, 85, 164, 0.06);
}
.btn-icon--delete:hover {
  border-color: rgba(231, 76, 60, 0.4);
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.06);
}

@media (max-width: 768px) {
  .admin-item-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }
  .admin-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
  }
  .admin-item-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .admin-item-meta {
    gap: 0.5rem;
  }
}
.chat-container {
  display: flex;
  height: 100vh;
  margin-left: -25px;
  margin-top: calc(-1.5rem - 64px);
  padding-top: 64px;
  overflow: hidden;
  position: relative;
}

.chat-container.sidebar-open .chat-main {
  margin-left: 280px;
  transition: margin-left 0.3s ease;
}

.chat-toolbar {
  width: 48px;
  background: var(--bg-color);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0;
  gap: 0.25rem;
  flex-shrink: 0;
  z-index: 2;
  position: sticky;
  top: 64px;
  align-self: flex-start;
  height: calc(100vh - 64px);
}

.chat-toolbar-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}
.chat-toolbar-btn:hover {
  background: var(--bg-hover);
  color: var(--primary);
}

.chat-sidebar {
  position: fixed;
  left: calc(260px + 48px);
  top: 64px;
  bottom: 0;
  width: 280px;
  background: var(--bg-color);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transform: translateX(-110%);
  transition: transform 0.3s ease, visibility 0.3s ease, opacity 0.3s ease;
  box-shadow: none;
  visibility: hidden;
  opacity: 0;
}
.chat-sidebar.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
  z-index: 1;
}

.chat-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}
.chat-sidebar-backdrop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.chat-sidebar-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-sidebar-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chat-sidebar-header h3 i {
  color: var(--primary);
}

.chat-sidebar-close {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.chat-sidebar-close:hover {
  background: var(--bg-hover);
  color: var(--text-color);
}

.chat-sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.conv-item {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
  margin-bottom: 2px;
}
.conv-item:hover {
  background: var(--bg-hover);
}
.conv-item.active {
  background: rgba(0, 85, 164, 0.08);
  border-left: 3px solid var(--primary);
}
.conv-item:hover .conv-delete {
  opacity: 1;
}

.conv-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 1.5rem;
}

.conv-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.conv-delete,
.conv-action-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
  font-size: 0.75rem;
  padding: 4px;
}
.conv-delete:hover,
.conv-action-btn:hover {
  color: #e74c3c;
}

.conv-actions {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.conv-item:hover .conv-actions,
.conv-item:hover .conv-delete {
  opacity: 1;
}

.conv-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 2rem 1rem;
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-alt);
  position: relative;
  transition: margin-left 0.3s ease;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  flex: 1;
}
.chat-welcome h2 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.chat-welcome-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 85, 164, 0.1), rgba(108, 92, 231, 0.1));
  color: var(--primary);
}

.chat-welcome-subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

.chat-config-notice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(243, 156, 18, 0.1);
  border: 1px solid rgba(243, 156, 18, 0.25);
  border-radius: 8px;
  color: #f39c12;
  font-size: 0.85rem;
  font-weight: 500;
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 600px;
}

.chat-suggestion {
  padding: 0.6rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--bg-color);
  color: var(--text-light);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chat-suggestion:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 85, 164, 0.04);
}
.chat-suggestion i {
  font-size: 0.9rem;
}

.chat-message {
  display: flex;
  gap: 0.75rem;
  max-width: 800px;
  animation: fadeInUp 0.3s ease-out;
}

.chat-message-user {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.chat-message-error {
  align-self: center;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.chat-avatar-bot {
  background: var(--primary);
  color: white;
  font-size: 0.95rem;
}

.chat-avatar-error {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  font-size: 0.85rem;
}

.chat-bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  min-width: 0;
}

.chat-bubble {
  padding: 0.85rem 1.15rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.chat-message-user .chat-bubble {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-message-assistant .chat-bubble {
  background: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 4px;
}
.chat-message-error .chat-bubble {
  background: rgba(231, 76, 60, 0.08);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.2);
  font-size: 0.85rem;
}
.chat-bubble h3,
.chat-bubble h4,
.chat-bubble h5 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem 0;
  color: var(--text-color);
}
.chat-bubble h3:first-child,
.chat-bubble h4:first-child,
.chat-bubble h5:first-child {
  margin-top: 0;
}
.chat-bubble ul, .chat-bubble ol {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}
.chat-bubble li {
  margin: 0.25rem 0;
}
.chat-bubble code.chat-inline-code {
  background: rgba(0, 85, 164, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
}
.chat-bubble strong {
  font-weight: 600;
}
.chat-bubble .chat-error-text {
  color: #e74c3c;
}

.chat-code-block {
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: 8px;
  padding: 1rem;
  margin: 0.5rem 0;
  overflow-x: auto;
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.chat-code-block code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.chat-msg-actions {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.25rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.chat-message:hover .chat-msg-actions {
  opacity: 1;
}

.chat-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  transition: all 0.15s ease;
}
.chat-action-btn:hover {
  background: var(--bg-hover);
  color: var(--primary);
}
.chat-action-btn.copied {
  color: #3eb288;
}

.stream-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 1rem 1.25rem !important;
}
.chat-typing .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingDot 1.4s infinite ease-in-out;
}
.chat-typing .dot:nth-child(2) {
  animation-delay: 0.2s;
}
.chat-typing .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}
.chat-input-area {
  padding: 1rem 1.5rem 1.25rem;
  background: var(--bg-alt);
}

.chat-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  background: var(--bg-color);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  transition: border-color 0.15s ease;
  max-width: 800px;
  margin: 0 auto;
}
.chat-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 85, 164, 0.1);
}
.chat-input-wrapper textarea {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-color);
  resize: none;
  line-height: 1.5;
  padding: 0.35rem 0;
  max-height: 150px;
}
.chat-input-wrapper textarea::-moz-placeholder {
  color: var(--text-muted);
}
.chat-input-wrapper textarea::placeholder {
  color: var(--text-muted);
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.chat-send-btn:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: scale(1.05);
}
.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-disclaimer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stats-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.stat-card {
  background: var(--bg-color);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}
.stat-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.01em;
}

.tab-item {
  font-size: 0.9rem;
}

.assistant-page .content-area {
  padding-bottom: 0;
  padding-right: 0;
}

.knowledge-item {
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  background: var(--bg-color);
  position: relative;
}
.knowledge-item:last-child {
  margin-bottom: 0;
}
.knowledge-item:hover {
  border-color: rgba(0, 85, 164, 0.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.knowledge-item:hover .knowledge-item-actions {
  opacity: 1;
}

.knowledge-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.knowledge-item-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  min-width: 0;
}
.knowledge-item-info h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
}

.knowledge-item-actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.knowledge-item-content {
  margin-bottom: 0.75rem;
}
.knowledge-item-content p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

.knowledge-item-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 85, 164, 0.06);
}
.knowledge-item-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.assistant-settings .alert-info {
  border-radius: 8px;
}
.assistant-settings .alert-secondary {
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--bg-color);
}
.assistant-settings .form-text {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

.base-rules-display {
  margin-top: 0.5rem;
  padding: 1rem;
  background: rgba(0, 85, 164, 0.02);
  border-radius: 8px;
  border: 1px dashed rgba(0, 85, 164, 0.15);
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-light);
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-quill-wrapper {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
}
.admin-quill-wrapper .ql-toolbar {
  border: none;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-alt);
}
.admin-quill-wrapper .ql-container {
  border: none;
}

.admin-test-chat {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
}

.admin-test-messages {
  min-height: 300px;
  max-height: 500px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-test-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  color: var(--text-muted);
}
.admin-test-empty p {
  margin: 0;
  font-size: 0.85rem;
}

.admin-test-msg {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-test-msg-user {
  align-items: flex-end;
}

.admin-test-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.admin-test-label i {
  font-size: 0.65rem;
}

.admin-test-bubble {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 85%;
  word-wrap: break-word;
}
.admin-test-msg-user .admin-test-bubble {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}
.admin-test-msg-bot .admin-test-bubble {
  background: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 4px;
}
.admin-test-bubble h3, .admin-test-bubble h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.5rem 0 0.25rem 0;
}
.admin-test-bubble h3:first-child, .admin-test-bubble h4:first-child {
  margin-top: 0;
}
.admin-test-bubble ul, .admin-test-bubble ol {
  margin: 0.25rem 0;
  padding-left: 1.15rem;
}
.admin-test-bubble li {
  margin: 2px 0;
}
.admin-test-bubble code {
  background: rgba(0, 85, 164, 0.08);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-size: 0.78rem;
}
.admin-test-bubble strong {
  font-weight: 600;
}
.admin-test-bubble .stream-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s ease-in-out infinite;
}

.admin-test-input {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-color);
  border-top: 1px solid var(--border-light);
  align-items: flex-end;
}
.admin-test-input textarea {
  flex: 1;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-color);
  background: var(--bg-alt);
  resize: none;
  line-height: 1.5;
  max-height: 120px;
  outline: none;
  transition: border-color 0.15s ease;
}
.admin-test-input textarea:focus {
  border-color: var(--primary);
}
.admin-test-input textarea::-moz-placeholder {
  color: var(--text-muted);
}
.admin-test-input textarea::placeholder {
  color: var(--text-muted);
}
.admin-test-input .btn {
  height: 38px;
  width: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-test-context summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-test-context summary:hover {
  color: var(--primary);
}

@media (max-width: 1200px) {
  .stats-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1024px) {
  .chat-sidebar {
    left: 47px;
  }
  .chat-container.sidebar-open .chat-main {
    margin-left: auto;
  }
}
@media (max-width: 600px) {
  .stats-grid,
  .stats-grid-4 {
    grid-template-columns: 1fr;
  }
  .tabs-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tab-item {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }
  .knowledge-item-header {
    flex-direction: column;
  }
  .knowledge-item-actions {
    opacity: 1;
  }
  .chat-msg-actions {
    opacity: 1;
  }
  .chat-message {
    max-width: 100%;
  }
  .chat-bubble-wrap {
    max-width: calc(100% - 48px);
  }
  .admin-test-bubble {
    max-width: 95%;
  }
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-muted {
  color: var(--text-muted);
}
.text-primary {
  color: var(--primary);
}
.text-success {
  color: #3eb288;
}
.text-warning {
  color: #f39c12;
}
.text-danger {
  color: #e74c3c;
}
.text-info {
  color: #45b7e5;
}
.text-secondary {
  color: #6c757d;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mr-1 {
  margin-right: 0.5rem;
}

.mr-2 {
  margin-right: 1rem;
}

.d-none {
  display: none;
}

.d-flex {
  display: flex;
}

.d-block {
  display: block;
}

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

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-3 {
  gap: 1.5rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 2rem;
}
.pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--text-color);
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  transition: all 0.15s ease;
}
.pagination-item:hover:not(.active):not(.disabled) {
  border-color: var(--primary);
  color: var(--primary);
}
.pagination-item.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.pagination-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fade-in {
  animation: fadeInUp 0.3s ease-out forwards;
}

.news-timeline-item,
.doc-card {
  animation: fadeInUp 0.3s ease-out forwards;
}

.news-timeline-item:nth-child(1),
.doc-card:nth-child(1) {
  animation-delay: 0s;
}

.news-timeline-item:nth-child(2),
.doc-card:nth-child(2) {
  animation-delay: 0.05s;
}

.news-timeline-item:nth-child(3),
.doc-card:nth-child(3) {
  animation-delay: 0.1s;
}

.news-timeline-item:nth-child(4),
.doc-card:nth-child(4) {
  animation-delay: 0.15s;
}

.news-timeline-item:nth-child(5),
.doc-card:nth-child(5) {
  animation-delay: 0.2s;
}

@media (min-width: 1025px) {
  .menu-toggle {
    display: none !important;
  }
}
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.25rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s ease;
  }
  .menu-toggle:hover {
    background: var(--bg-color);
  }
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
  }
  .main-content {
    margin-left: 0;
  }
  .header {
    left: 0;
    padding: 0 1rem;
  }
  .header-title {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
  }
  .user-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
  .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 200px;
  }
}
@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
  }
  .header {
    left: 0;
    padding: 0 1rem;
  }
  .header-title {
    font-size: 1rem;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-user {
    padding: 0;
  }
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .menu-toggle {
    display: inline-flex !important;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .docs-grid {
    grid-template-columns: 1fr;
  }
  .news-timeline {
    padding-left: 18px;
  }
  .news-timeline-item::before {
    left: -16px;
    width: 6px;
    height: 6px;
  }
  .tag-assignment-grid {
    grid-template-columns: 1fr;
  }
  .tabs {
    flex-direction: column;
  }
  .tab-button, .tab-item {
    width: 100%;
    text-align: left;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-sidebar {
    order: -1;
  }
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  .profile-user-card {
    padding: 1.5rem;
  }
  .profile-avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }
  .profile-nav {
    display: flex;
    overflow-x: auto;
  }
  .profile-nav-item {
    flex: 1;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-bottom: 3px solid transparent;
  }
  .profile-nav-item.active {
    border-bottom-color: var(--primary);
  }
  .profile-nav-item span {
    display: none;
  }
  .profile-section {
    padding: 1.5rem;
  }
  #docs-widget:not(.user-interacted) .card-body-collapsible {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
  }
  #docs-widget:not(.user-interacted) .btn-collapse {
    transform: rotate(-90deg);
  }
  .filters-form .filters-row {
    flex-direction: column;
  }
  .filters-form .filter-group {
    min-width: 100%;
  }
  .filters-form .filter-actions {
    width: 100%;
  }
  .filters-form .filter-actions .btn {
    flex: 1;
  }
  .activity-timeline {
    padding-left: 20px;
  }
  .activity-timeline::before {
    left: 13px;
  }
  .activity-item {
    margin-left: -20px;
  }
  .activity-icon {
    width: 28px;
    height: 28px;
    font-size: 0.65rem;
  }
  .activity-content {
    padding: 0.5rem 1rem;
  }
  .activity-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  .header {
    padding: 0 0.5rem;
  }
  .header-left {
    gap: 0.5rem;
  }
  .header-title {
    max-width: 120px;
    font-size: 0.9rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .btn-group {
    flex-direction: column;
  }
  .btn-group .btn {
    width: 100%;
  }
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .approval-grid {
    grid-template-columns: 1fr;
  }
  .approval-card-actions {
    flex-direction: column;
  }
}/*# sourceMappingURL=style.css.map */