body {
  font-size: .875rem;
}

/* Custom Scrollbar Styling - Subtle and Minimal */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

/*
 * Sidebar
 */

.sidebar {
  position: fixed;
  top: 0;
  /* rtl:raw:
  right: 0;
  */
  bottom: 0;
  /* rtl:remove */
  left: 0;
  z-index: 100; /* Behind the navbar */
  padding: 48px 0 0; /* Height of navbar */
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

@media (max-width: 767.98px) {
  .sidebar {
    top: 5rem;
  }
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

.sidebar .nav-link {
  font-weight: 500;
  color: #333;
}

.sidebar .nav-link .feather {
  margin-right: 4px;
  color: #727272;
}

.sidebar .nav-link.active {
  color: #2470dc;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}

/*
 * Navbar
 */

.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1rem;
  background-color: #013b67;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .navbar-toggler {
  top: .25rem;
  right: 1rem;
}

.navbar .form-control {
  padding: .75rem 1rem;
  border-width: 0;
  border-radius: 0;
}
.form-control::-moz-placeholder {
  color: #f8f8f8;
  opacity: 1;
  text-shadow: 1px 1px 8px #000000;
}
.form-control::placeholder {
  color: #f8f8f8;
  opacity: 1;
  text-shadow: 1px 1px 8px #000000;
}

.bg-dark-blue{
  background-color:#013b67  !important;
}

.form-control-blue {
  color: #fff;
  background-color: #1976be;
  border-color: rgba(255, 255, 255, .1);
}

.form-control-blue:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

.form-control-dark {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}
span.tablecell {
  display: inline-block;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  width: 450px;
}

.hidden {
visibility: hidden;
}
.visible{
  visibility: visible;
}
.pagination {
  display: flex;
  justify-content: center;
}

.pagination li {
  display: block;
 }
 #footer{
    text-align:center;
    /*position:absolute;  
    width: 80.5%;  */              /* added */
    bottom:0;                           /* added */
    margin-left: 0 !important;
    margin-top: 10px;
    
 }
 #footer h6 {
  margin:auto;
  line-height:51px;
  vertical-align:middle;
}
input[type=search]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  position:relative;
    /*right:10px;   */
  background: url("/assets/img/x.svg");
}
/*
table {
  table-layout:fixed !important; 
}
table tr { 
  height:1em;  
}
td { 
  text-overflow: ellipsis;
  overflow:hidden !important;
  white-space:nowrap !important; 
 } */

/* Log values styling */
.log-values {
  font-size: 0.85rem;
  line-height: 1.6;
}

.log-field {
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.log-field:last-child {
  border-bottom: none;
}

.log-key {
  font-weight: 600;
  color: #495057;
  margin-right: 0.5rem;
}

.log-value {
  color: #212529;
}

.log-values .badge {
  font-size: 0.75rem;
  padding: 0.25em 0.5em;
}

/* Apps Grid Styling */
.apps-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.app-grid-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.app-grid-card:hover {
  border-color: #ff8c42;
  box-shadow: 0 8px 20px rgba(255, 140, 66, 0.2);
  transform: translateY(-4px);
}

.app-card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #ff8c42 0%, #ffa940 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.app-card-icon i {
  font-size: 32px;
  color: white;
}

.app-card-name {
  margin: 0 0 0.75rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #212529;
  word-break: break-word;
}

.app-card-badge {
  background: #fff3e0;
  color: #f57c00;
  padding: 0.375rem 1rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Apps List Styling (păstrat pentru backward compatibility) */
.apps-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.app-list-item {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.app-list-item:hover {
  border-color: #0d6efd;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
  transform: translateY(-2px);
}

.app-item-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff8c42 0%, #ffa940 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-item-icon i {
  font-size: 24px;
  color: white;
}

.app-item-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-item-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
}

.app-item-badge {
  background: #e7f3ff;
  color: #0d6efd;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.app-item-action {
  color: #6c757d;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.app-list-item:hover .app-item-action {
  color: #0d6efd;
  transform: translateX(4px);
}

/* Profile List Styling */
.profile-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-list-item {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.profile-list-item:hover {
  border-color: #0d6efd;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
  transform: translateY(-2px);
}

.profile-item-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff8c42 0%, #ffa940 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-item-icon i {
  font-size: 24px;
  color: white;
}

.profile-item-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-item-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
}

.profile-item-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.profile-item-action {
  color: #6c757d;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.profile-list-item:hover .profile-item-action {
  color: #0d6efd;
  transform: translateX(4px);
}

/* Form Styling */
.form-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.modern-form {
  max-width: 900px;
}

.form-section {
  margin-bottom: 1.5rem;
}

.form-section:last-of-type {
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i {
  color: #ff8c42;
  font-size: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-control-lg {
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  transition: all 0.2s ease;
}

.form-control-lg:focus {
  border-color: #ff8c42;
  box-shadow: 0 0 0 0.2rem rgba(255, 140, 66, 0.15);
}

.select-all-wrapper {
  background: #fff8f0;
  border: 2px solid #ffd699;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.75rem;
}

.right-item {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s ease;
}

.right-item:hover {
  background: #fff;
  border-color: #ff8c42;
  box-shadow: 0 2px 8px rgba(255, 140, 66, 0.1);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  margin: 0;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #ff8c42;
}

.checkbox-text {
  font-size: 0.9rem;
  color: #495057;
  font-weight: 500;
}

.select-all-wrapper .checkbox-text {
  font-weight: 600;
  color: #d97706;
}

.form-actions {
  display: flex;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #f0f0f0;
}

.form-actions .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
}