@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

html {
  font-size: 14px;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background-color: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(22, 134, 247, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(45, 212, 191, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 100;
}

.header-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.header-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 8px 26px rgba(22, 134, 247, 0.22);
}

.header-logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px;
  background: var(--bg-white);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 30px rgba(24, 34, 56, 0.06);
  border: 1px solid var(--border-light);
}

.nav-link {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--text-white);
  background: var(--primary-gradient);
  box-shadow: 0 6px 22px rgba(22, 134, 247, 0.24);
}

.nav-link .dropdown-arrow {
  font-size: 10px;
  opacity: 0.7;
}

.nav-dropdown-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(16, 26, 51, 0.12);
  border: 1px solid rgba(16, 26, 51, 0.06);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 200;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #5E6A7E;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.nav-dropdown-item:hover {
  background: rgba(6, 125, 251, 0.06);
  color: #0A84F4;
}

.nav-dropdown-item.active {
  background: rgba(6, 125, 251, 0.06);
  color: #0A84F4;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  align-items: center;
  background: var(--bg-white);
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 8px 24px rgba(24, 34, 56, 0.06);
  border: 1px solid var(--border-light);
  height: 36px;
  width: 36px;
  justify-content: center;
}

.lang-switch-header {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
}

.lang-btn-header {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.lang-btn-header.active {
  color: var(--text-primary);
  font-weight: 600;
}

.lang-divider {
  color: var(--border-light);
  font-size: 12px;
}

.lang-btn {
  padding: 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn.active {
  background: transparent;
  color: var(--primary-blue);
  font-weight: 400;
}

.header-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  position: relative;
  background: var(--bg-white);
  box-shadow: 0 8px 24px rgba(24, 34, 56, 0.06);
  border: 1px solid var(--border-light);
}

.header-icon-btn:hover {
  color: var(--primary-blue);
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  background: var(--error-color);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-white);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.2s ease;
  background: var(--bg-white);
  box-shadow: 0 8px 24px rgba(24, 34, 56, 0.06);
  border: 1px solid var(--border-light);
}

.user-profile:hover {
  background: var(--bg-gray);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 8px 26px rgba(22, 134, 247, 0.22);
}

.user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.user-role {
  font-size: 11px;
  color: var(--primary-blue);
  font-weight: 700;
}

.page-wrapper {
  padding-top: var(--header-height);
  position: relative;
  z-index: 1;
}

.page-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 28px 24px 40px;
}

.card {
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(24, 34, 56, 0.06);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-white);
  box-shadow: 0 6px 24px rgba(22, 134, 247, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(22, 134, 247, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
}

.btn-outline:hover {
  background: var(--bg-light-blue);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-gray);
  color: var(--text-primary);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn-white {
  background: var(--bg-white);
  color: var(--primary-blue);
  font-weight: 700;
  box-shadow: 0 10px 34px rgba(24, 34, 56, 0.08);
}

.btn-white:hover {
  background: var(--bg-light-blue);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success-color);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning-color);
}

.badge-error {
  background: var(--error-bg);
  color: var(--error-color);
}

.badge-info {
  background: var(--info-bg);
  color: var(--info-color);
}

.badge-purple {
  background: var(--purple-bg);
  color: var(--purple-color);
}

.input-field {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-white);
  transition: all 0.2s ease;
}

.input-field:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(22, 134, 247, 0.1);
}

.input-field::placeholder {
  color: #757575;
  font-weight: 700;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-gray);
  border-radius: var(--radius-full);
  width: fit-content;
}

.tab-item {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-item:hover {
  color: var(--text-primary);
}

.tab-item.active {
  background: var(--bg-white);
  color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

.horizontal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  gap: 0;
  width: 100%;
}

.horizontal-tab {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.horizontal-tab:hover {
  color: var(--primary-blue);
}

.horizontal-tab.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--bg-gray);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-primary);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--bg-gray);
}

.table-container {
  overflow-x: auto;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px;
}

.pagination-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(.disabled) {
  background: var(--bg-gray);
  color: var(--primary-blue);
}

.pagination-btn.active {
  background: var(--primary-gradient);
  color: var(--text-white);
}

.pagination-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.search-input {
  position: relative;
}

.search-input input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 13px;
  background: var(--bg-white);
  transition: all 0.2s ease;
}

.search-input input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(22, 134, 247, 0.1);
}

.search-input svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
}
