:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #64748b;
  --background: #f8fafc;
  --surface: #fff;
  --border: #e5e7eb;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(30, 64, 175, 0.07), 0 1.5px 3px rgba(100, 116, 139, 0.10);
  
  
  --btn-primary: #2563eb;
  --btn-primary-hover: #1e40af;
  --btn-secondary: #6c757d;
  --btn-secondary-hover: #5a6268;
  --btn-success: #28a745;
  --btn-success-hover: #218838;
  --btn-danger: #dc3545;
  --btn-danger-hover: #c82333;
  --btn-warning: #ffc107;
  --btn-warning-hover: #e0a800;
  --btn-info: #17a2b8;
  --btn-info-hover: #138496;
  --btn-light: #f8f9fa;
  --btn-light-hover: #e9ecef;
  --btn-dark: #343a40;
  --btn-dark-hover: #23272b;
}
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--background);
  color: #23272f;
  margin: 0;
}

.admin-nav {
  background: #1e40af;
  color: white;
  padding: 8px 0;
  margin-bottom: 0;
  border-radius: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.admin-nav-title {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}



.admin-nav { 
  position: relative; 
}


.admin-nav-title {
  position: absolute;
  left: 55px;              
  top: 50%;
  transform: translateY(-50%);
}


.admin-nav-content {
  position: relative;
  justify-content: initial;
  padding: 0 32px; 
  max-width: none;
  width: 100%;
}


.admin-nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px; 
  white-space: nowrap;
  flex-wrap: nowrap;
  z-index: 1;
}

.admin-nav-link {
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.admin-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.admin-nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}


.user-management-dropdown {
  position: relative;
  display: inline-block;
  z-index: 10;
}



.user-management-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999999;
  min-width: 200px;
  background-color: white !important;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  opacity: 1;
  background: white !important;
}

.user-management-dropdown .dropdown-menu.show {
  display: block;
}

.user-management-dropdown .dropdown-item {
  display: block;
  padding: 8px 16px;
  color: #000000 !important;
  text-decoration: none;
  background-color: white !important;
  position: relative;
  z-index: 1000000;
}

.user-management-dropdown .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #000000 !important;
  text-decoration: none;
}

.user-management-dropdown .dropdown-item:visited {
  color: #000000 !important;
}

.user-management-dropdown .dropdown-item:active {
  color: #000000 !important;
}

.user-management-dropdown .dropdown-item:focus {
  color: #000000 !important;
}

.user-management-dropdown .dropdown-divider {
  height: 0;
  margin: 8px 0;
  border-top: 1px solid #e9ecef;
}


.tools-dropdown {
  position: relative;
  display: inline-block;
  z-index: 10;
}

.tools-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999999;
  min-width: 200px;
  background-color: white !important;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tools-dropdown .dropdown-menu.show {
  display: block;
}

.tools-dropdown .dropdown-item {
  display: block;
  padding: 8px 16px;
  color: #000000 !important;
  text-decoration: none;
  background-color: white !important;
  position: relative;
  z-index: 1000000;
}


nav .tools-dropdown .dropdown-item,
nav .tools-dropdown .dropdown-item:active,
nav .tools-dropdown .dropdown-item:focus,
nav .tools-dropdown .dropdown-item:visited {
  color: #000000 !important;
  background-color: white !important;
}

nav .tools-dropdown .dropdown-item:hover {
  color: #000000 !important;
  background-color: #f8f9fa !important;
}

.tools-dropdown .dropdown-item:hover {
  background-color: #f8f9fa !important;
  color: #000000 !important;
  text-decoration: none;
}

.tools-dropdown .dropdown-item:visited {
  color: #000000 !important;
}

.tools-dropdown .dropdown-item:active {
  color: #000000 !important;
}

.tools-dropdown .dropdown-item:focus {
  color: #000000 !important;
}

.tools-dropdown .dropdown-divider {
  height: 0;
  margin: 8px 0;
  border-top: 1px solid #e9ecef;
}


nav {
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  align-items: center;
  padding: 0 32px;
  min-height: 60px;
  margin-bottom: 30px;
}

.logo-block {
  display: flex;
  align-items: center;
  margin-right: 36px;
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo {
  height: 32px;
}
.tagline {
  margin-left: 10px;
  font-size: 16px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
nav a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  margin-right: 28px;
  font-size: 15px;
  padding: 7px 14px;
  border-radius: 6px;
  transition: color 0.16s, background 0.18s;
  position: relative;
}
nav a.active, nav a:hover {
  background: var(--primary);
  color: #fff !important;
}
nav span[style] {
  margin-left: auto !important;
  font-size: 14px;
  color: var(--secondary) !important;
  font-weight: 400;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 6px;
}
.card-block {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 32px;
  margin-bottom: 36px;
}
.footer {
  width: 100%;
  background: var(--surface);
  color: var(--secondary);
  border-top: 1.5px solid var(--border);
  box-shadow: 0 -2px 10px rgba(37,99,235,0.05);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 20px 0 18px 0;
  margin: 0 auto 0 auto;
  min-height: 58px;
  position: relative;
}
.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  gap: 12px;
}
.footer-version {
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-copy {
  font-weight: 400;
  color: var(--secondary);
}
@media (max-width: 700px) {
  nav, .footer-content { padding-left: 7px; padding-right: 7px; }
  .card-block { padding: 18px 5px; }
  .footer-content { flex-direction: column; align-items: flex-start; gap: 7px; }
}
.container {
  max-width: 1500px;
  margin: 36px auto 36px auto;
  padding: 42px 40px 46px 40px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(30,64,175,0.07), 0 1.5px 3px rgba(100,116,139,0.10);
  min-height: 70vh;
}

@media (max-width: 1200px) {
  .container { max-width: 96vw; padding-left: 6vw; padding-right: 6vw; }
}
@media (max-width: 700px) {
  .container { padding: 16px 2vw; border-radius: 9px; }
}




.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

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


.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 0.25rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  border-radius: 0.5rem;
}


.btn-primary {
  color: #ffffff;
  background-color: var(--btn-primary);
  border-color: var(--btn-primary);
}

.btn-primary:hover {
  background-color: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  color: #ffffff;
  background-color: var(--btn-secondary);
  border-color: var(--btn-secondary);
}

.btn-secondary:hover {
  background-color: var(--btn-secondary-hover);
  border-color: var(--btn-secondary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-success {
  color: #ffffff;
  background-color: var(--btn-success);
  border-color: var(--btn-success);
}

.btn-success:hover {
  background-color: var(--btn-success-hover);
  border-color: var(--btn-success-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-danger {
  color: #ffffff;
  background-color: var(--btn-danger);
  border-color: var(--btn-danger);
}

.btn-danger:hover {
  background-color: var(--btn-danger-hover);
  border-color: var(--btn-danger-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-warning {
  color: #212529;
  background-color: var(--btn-warning);
  border-color: var(--btn-warning);
}

.btn-warning:hover {
  background-color: var(--btn-warning-hover);
  border-color: var(--btn-warning-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.btn-info {
  color: #ffffff;
  background-color: var(--btn-info);
  border-color: var(--btn-info);
}

.btn-info:hover {
  background-color: var(--btn-info-hover);
  border-color: var(--btn-info-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.btn-light {
  color: #212529;
  background-color: var(--btn-light);
  border-color: var(--btn-light);
}

.btn-light:hover {
  background-color: var(--btn-light-hover);
  border-color: var(--btn-light-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(248, 249, 250, 0.3);
}

.btn-dark {
  color: #ffffff;
  background-color: var(--btn-dark);
  border-color: var(--btn-dark);
}

.btn-dark:hover {
  background-color: var(--btn-dark-hover);
  border-color: var(--btn-dark-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52, 58, 64, 0.3);
}


.btn-addhost {
  color: #ffffff;
  background-color: var(--btn-primary);
  border-color: var(--btn-primary);
}

.btn-addhost:hover {
  background-color: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}


.btn-group {
  display: inline-flex;
  vertical-align: middle;
}

.btn-group > .btn {
  position: relative;
  flex: 1 1 auto;
}

.btn-group > .btn:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.btn-group > .btn:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}


.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}


.actions .btn {
  margin-right: 0.25rem;
}

.actions .btn:last-child {
  margin-right: 0;
}




.users-table thead,
.assets-table thead,
.licenses-table thead,
.policies-table thead,
.audit-table thead,
.awareness-table thead {
  background: #2563eb !important;
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
}



.users-table thead th,
.assets-table thead th,
.licenses-table thead th,
.policies-table thead th,
.audit-table thead th,
.awareness-table thead th {
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.6rem 1rem;
  border: none;
  background: transparent !important;
  color: #ffffff !important;
  border-bottom: 2px solid #1e40af;
  transition: all 0.2s ease;
}


.users-table thead th:hover,
.assets-table thead th:hover,
.licenses-table thead th:hover,
.policies-table thead th:hover,
.audit-table thead th:hover,
.awareness-table thead th:hover {
  background: rgba(255, 255, 255, 0.08);
}


.users-table,
.assets-table,
.licenses-table,
.policies-table,
.audit-table,
.awareness-table {
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: 
    0 2px 4px -1px rgba(0, 0, 0, 0.1),
    0 1px 2px -1px rgba(0, 0, 0, 0.06);
  border: none;
  background: #ffffff;
}


.users-table tbody,
.assets-table tbody,
.licenses-table tbody,
.policies-table tbody,
.audit-table tbody,
.awareness-table tbody {
  background: #ffffff;
}


.users-table tbody tr:hover,
.assets-table tbody tr:hover,
.licenses-table tbody tr:hover,
.policies-table tbody tr:hover,
.audit-table tbody tr:hover,
.awareness-table tbody tr:hover {
  background: #f1f5f9;
  transition: background 0.15s ease;
}


.users-table tbody tr:nth-child(even),
.assets-table tbody tr:nth-child(even),
.licenses-table tbody tr:nth-child(even),
.policies-table tbody tr:nth-child(even),
.audit-table tbody tr:nth-child(even),
.awareness-table tbody tr:nth-child(even) {
  background: #f8fafc;
}


.users-table td,
.assets-table td,
.licenses-table td,
.policies-table td,
.audit-table td,
.awareness-table td {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #374151;
  border: none;
  vertical-align: middle;
}


.users-table .badge,
.assets-table .badge,
.licenses-table .badge,
.policies-table .badge,
.audit-table .badge,
.awareness-table .badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}


.users-table .actions,
.assets-table .actions,
.licenses-table .actions,
.policies-table .actions,
.audit-table .actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  white-space: nowrap;
}


.section-title {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  color: #1e40af;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title:first-of-type {
  margin-top: 0;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 2px;
}


@media (max-width: 768px) {
  .users-table thead th,
  .assets-table thead th,
  .licenses-table thead th,
  .policies-table thead th,
  .audit-table thead th,
  .awareness-table thead th {
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
  }
  
  .users-table td,
  .assets-table td,
  .licenses-table td,
  .policies-table td,
  .audit-table td,
  .awareness-table td {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .section-title {
    font-size: 1.1rem;
  }
}


.user-profile-dropdown {
  position: relative;
  display: inline-block;
  z-index: 1000;
}

.user-profile-link {
  display: flex;
  align-items: center;
  color: #ffffff !important;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
}

.user-profile-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  color: white;
  margin-right: 10px;
}

.user-profile-dropdown .user-info {
  display: flex;
  flex-direction: column;
  margin-right: 8px;
  color: #333;
}

.user-profile-dropdown .user-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.user-profile-dropdown .user-role {
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.2;
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.user-profile-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 9999;
  min-width: 280px;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: none;
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
}

.user-dropdown-menu.show {
  display: block;
}

.dropdown-header {
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  border-radius: 8px 8px 0 0;
}

.user-dropdown-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  margin-right: 12px;
}

.user-dropdown-info {
  flex: 1;
}

.user-dropdown-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.user-dropdown-email {
  font-size: 13px;
  opacity: 0.9;
}

.user-dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  background-color: white;
  transition: background-color 0.2s ease;
}

.user-dropdown-menu .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #333;
}

.dropdown-icon {
  margin-right: 12px;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.logout-link {
  color: #dc3545 !important;
}

.logout-link:hover {
  background-color: #f8d7da !important;
  color: #721c24 !important;
}

.user-dropdown-menu .dropdown-divider {
  height: 0;
  margin: 8px 0;
  border-top: 1px solid #e9ecef;
}


@media (max-width: 768px) {
  .user-profile-link {
    padding: 6px 8px;
  }
  
  .user-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
    margin-right: 8px;
  }
  
  .user-name {
    font-size: 13px;
  }
  
  .user-role {
    font-size: 11px;
  }
  
  .user-dropdown-menu {
    min-width: 260px;
    right: -10px;
  }
}


