body { background: #f4f6fa; }
h1 { font-weight: 700; letter-spacing: 1px; }
.container { max-width: 1600px !important; width: 100% !important; }
.card { box-shadow: 0 2px 12px rgba(0,0,0,0.07); border-radius: 12px; border: none; overflow: hidden; }
.card-header { background: #0d6efd; color: #fff; font-size: 1.3rem; border-radius: 12px 12px 0 0; }

/* Stiluri pentru hamburger menu mobil */
.header-buttons-desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-buttons-mobile {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

#hamburger-menu {
  padding: 0.375rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: white;
  transition: all 0.2s ease;
}

#hamburger-menu:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

#hamburger-menu i {
  font-size: 1rem;
}

.mobile-menu-items {
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.mobile-menu-items .btn {
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: white;
  transition: all 0.2s ease;
}

.mobile-menu-items .btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Stiluri responsive pentru card-header */
@media (max-width: 767px) {
  .card-header {
    font-size: 1.1rem;
    padding: 1rem;
    position: relative;
    overflow: visible;
  }
  
  .card-header .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.5rem;
  }
  
  .header-buttons-desktop {
    display: none !important;
  }
  
  .header-buttons-mobile {
    display: flex !important;
    width: 100%;
    justify-content: space-between;
  }
  
  #btn-documentatie-mobile,
  #folder-select-mobile {
    flex: 1;
    max-width: 45%;
  }
  
  #hamburger-menu {
    flex-shrink: 0;
  }
  
  /* Meniu mobil colapsabil */
  .mobile-menu-items {
    position: relative;
    background: #0d6efd;
    border-radius: 8px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
}

/* Stiluri pentru hamburger meniul butoanelor callbook */
#hamburger-callbook {
  padding: 0.1rem 0.2rem;
  border: 1px solid #6c757d;
  background: transparent;
  color: #6c757d;
  transition: all 0.2s ease;
  max-width: 35px;
  min-width: 30px;
  min-height: 32px;
}

/* Stiluri pentru butoanele callbook desktop */
.callbook-buttons-desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.callbook-buttons-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
}

/* Stiluri responsive pentru butoanele callbook */
@media (max-width: 767px) {
  .callbook-buttons-desktop {
    display: none !important;
  }
  
  .callbook-buttons-mobile {
    display: flex !important;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 1rem;
  }
  
  .callbook-buttons-mobile .btn {
    width: auto;
    text-align: center;
    max-width: 50%;
    min-width: 35px;
    margin: 0 auto;
  }
  
  /* Stiluri specifice pentru butoanele mobile callbook */
  #reset-callbook-mobile,
  #export-callbook-mobile {
    font-size: 0.75rem !important;
    padding: 0 !important;
    min-height: 32px;
    max-width: 45px;
  }
  
  #hamburger-callbook {
    align-self: center;
  }
}

#hamburger-callbook:hover {
  background: #6c757d;
  color: white;
  border-color: #6c757d;
}

#hamburger-callbook i {
  font-size: 0.875rem;
}

#mobile-callbook-menu {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  background: #f8f9fa;
  margin-top: 0.5rem;
  padding: 0.5rem;
}

#mobile-callbook-menu .btn {
  text-align: center;
  border: 1px solid #dee2e6;
  background: white;
  transition: all 0.2s ease;
  font-size: 0.75rem;
  padding: 0.3rem 0.5rem;
  max-width: 100%;
}

#mobile-callbook-menu .btn:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

/* Stiluri responsive pentru butoanele callbook */
@media (max-width: 767px) {
  .col-md-2.d-flex.align-items-end.gap-2 {
    flex-direction: column;
    align-items: stretch !important;
    position: relative;
    gap: 0.25rem !important;
  }
  
  .col-md-2.d-flex.align-items-end.gap-2 .d-flex.gap-1 {
    justify-content: center;
    padding: 0 1rem;
  }
  
  #reset-callbook-mobile,
  #export-callbook-mobile {
    flex: 1;
    margin: 0;
  }
  
  #hamburger-callbook {
    flex-shrink: 0;
    width: auto;
    margin: 0;
  }
  
  /* Meniu mobil colapsabil pentru callbook */
  .mobile-callbook-menu {
    position: relative;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
}
.card-body { background: #fff; border-radius: 0 0 12px 12px; overflow: visible; }
form input, form select { font-size: 1rem; border-radius: 8px; }
form .form-control:focus { border-color: #0d6efd; box-shadow: 0 0 0 0.2rem rgba(13,110,253,.15); }
.table-responsive { max-height: 60vh; overflow-y: auto; width: 100%; }

/* Pentru modal-ul "Vezi mai mult" - afișează toate înregistrările */
#modalVeziMaiMult .modal-body {
  max-height: 80vh;
  overflow-y: auto;
  padding: 1rem;
}

#modalVeziMaiMult .table-responsive { 
  max-height: none; 
  overflow-y: visible; 
  width: 100%; 
}

/* Poziționare corectă pentru count-ul de înregistrări */
#modalVeziMaiMult .record-count {
  position: sticky;
  bottom: 0;
  background: white;
  padding: 0.5rem 0;
  border-top: 1px solid #dee2e6;
  margin-top: 1rem;
  text-align: center;
}

/* Rânduri optimizate pentru widget-ul W1 */
#widget-table-w1 .table-sm tbody td,
#widget-table-w1 .table-sm tbody th {
  padding: 0.3rem 0.5rem;
  font-size: 0.9rem;
  line-height: 1.25;
}


table { width: 100%; table-layout: auto; min-width: 1400px; background: #fff; border-radius: 8px; overflow: hidden; }
thead th { background: #e9ecef; font-weight: 600; }
tbody tr:hover { background: #f1f3f9; transition: background 0.2s; }
td, th { vertical-align: middle !important; }
.btn-primary, .btn-secondary { border-radius: 8px; font-weight: 500; }
footer { background: #f1f1f1; font-size: 1rem; border-top: 1px solid #e9ecef; }
@media (max-width: 1200px) { .container { max-width: 98vw !important; } table { min-width: 900px; } }
@media (max-width: 900px) { table { min-width: 600px; } } 

/* Stiluri pentru coloanele de dată */
table th[data-column*="DATA"],
table td[data-column*="DATA"] {
  min-width: 140px !important;
  white-space: nowrap !important;
}

/* Stiluri specifice pentru coloanele de dată din callbook */
table th:contains("DATA EXPIRARII"),
table th:contains("DATA LIMITA A REZERVARII"),
table td:contains("DATA EXPIRARII"),
table td:contains("DATA LIMITA A REZERVARII") {
  min-width: 140px !important;
  white-space: nowrap !important;
}

/* Stiluri pentru coloanele de dată din repetoare */
table th:contains("Data expirarii"),
table td:contains("Data expirarii") {
  min-width: 120px !important;
  white-space: nowrap !important;
}

/* Stiluri generale pentru tabele */ 

/* Widget statistici Callbook */
#callbook-widgets-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  margin-bottom: 2rem;
  width: 100%;
}
#callbook-widgets-row > div {
  flex: 0 1 300px;
  max-width: 300px;
  min-width: 220px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
#callbook-widgets-row .card {
  width: 100%;
  min-height: 220px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}
#callbook-widgets-row .card-header {
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  border-radius: 12px 12px 0 0;
}
#callbook-widgets-row .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}
#callbook-widgets-row table {
  margin-bottom: 0.5rem;
}
#callbook-widgets-row .btn-link {
  display: block;
  margin: 0 auto 0.5rem auto;
  text-align: center;
  color: #0d6efd;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.2s;
}
#callbook-widgets-row .btn-link:hover {
  color: #084298;
}
#callbook-widgets-row #rest-judete,
#callbook-widgets-row #rest-localitati {
  background: #f8f9fa;
  border-radius: 8px;
  margin-top: 0.5rem;
  padding: 0.5rem;
  text-align: center;
}
#callbook-widgets-row .alert {
  margin: 0.5rem 0;
  text-align: center;
  font-size: 1rem;
  padding: 0.5rem 1rem;
} 

/* Modal vezi mai mult */
#modalVeziMaiMult .modal-dialog {
  max-width: 95%;
}
#modalVeziMaiMult .modal-body {
  max-height: 60vh;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.5rem 1rem;
}
#modalVeziMaiMult table {
  margin: 0 auto;
  width: auto;
  min-width: 320px;
  max-width: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
#modalVeziMaiMult th, #modalVeziMaiMult td {
  text-align: center;
  vertical-align: middle;
  padding: 0.4rem 0.7rem;
} 

@media (max-width: 1200px) {
  #callbook-widgets-row {
    flex-wrap: wrap;
    gap: 1rem;
  }
  #callbook-widgets-row > div {
    max-width: 100%;
    min-width: 180px;
    flex: 1 1 100%;
  }
  #callbook-widgets-row .card {
    min-height: 180px;
  }
} 

.table-widget-scroll {
  height: 210px;
  min-height: 210px;
  max-height: 210px;
  overflow-y: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
} 

.callbook-widgets-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto 2rem auto;
  width: 100%;
}
.widget-card {
  width: 320px;
  min-height: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border: 1px solid #e0e0e0;
  padding: 0;
  display: block;
  overflow: hidden;
}
.widget-card .card {
  width: 100%;
  min-height: 220px;
  box-shadow: none;
  border: none;
  border-radius: 12px;
  overflow: hidden;
}
.widget-card .card-header {
  width: 100%;
  box-sizing: border-box;
}
.widget-card .card-body {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 0.7rem 0.7rem 0.7rem;
}
.widget-card table {
  width: 100%;
  table-layout: auto;
}
.widget-card table th,
.widget-card table td {
  text-align: left;
}
.widget-card table th:last-child,
.widget-card table td:last-child {
  text-align: center;
  min-width: 50px;
}
@media (max-width: 1100px) {
  .widgets-row {
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 100%;
  }
  .widget-card {
    width: 100%;
    min-width: 220px;
    margin-bottom: 1rem;
  }
} 

.widgets-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  margin: 2rem auto;
  width: 100%;
  max-width: 1600px;
  padding: 0 2rem;
}

/* Stiluri pentru containerele flexibile cu 2 widgeturi */
.widgets-row .d-flex.flex-column {
  flex: 0 0 240px;
  width: 240px;
  margin: 0 4px 16px 4px;
}

.widgets-row .d-flex.flex-column .widget-table {
  margin: 0 0 1rem 0;
}

.widgets-row .d-flex.flex-column .widget-table:last-child {
  margin-bottom: 0;
}

.widgets-row:has(#widget-table-radioamatori-yo) {
  justify-content: flex-start;
  gap: 0;
}
.widget-table {
  width: 240px;
  flex: 0 0 240px;
  margin: 0 4px 16px 4px;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border: 1px solid #e0e0e0;
}
.widget-table table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
}
.widget-table thead th {
  background: #1976ed;
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  padding: 0.6rem 0.2rem;
}
.widget-table th, .widget-table td {
  border: 1px solid #e0e0e0;
  padding: 0.4rem 0.2rem;
}
.widget-table th:last-child, .widget-table td:last-child {
  text-align: center;
  min-width: 50px;
}
.widget-table tbody tr:last-child td {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}
@media (max-width: 1100px) {
  .widgets-row {
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 100%;
  }
  .widget-table {
    width: 100%;
    min-width: 220px;
    margin-bottom: 1rem;
  }
} 

/* Modal fullwide pentru Expira luna aceasta */
.modal-fullwide .modal-dialog {
  max-width: 98vw !important;
  width: 98vw !important;
} 

#btn-documentatie.btn-outline-primary:hover, #btn-documentatie.btn-outline-primary:focus {
  background: #fff !important;
  color: #0d6efd !important;
  border-color: #0d6efd !important;
} 
#btn-decizie-ancom.btn-outline-secondary {
  background: #fff;
  color: #0d6efd;
  border-color: #0d6efd;
}
#btn-decizie-ancom.btn-outline-secondary:hover, #btn-decizie-ancom.btn-outline-secondary:focus {
  background: #fff !important;
  color: #0a58ca !important;
  border-color: #0a58ca !important;
}
#modalDecizieAncom .modal-body {
  overflow-y: unset !important;
} 

/* Email blur effect */
.email-blur {
  filter: blur(6px);
  cursor: pointer;
  transition: filter 0.3s;
  user-select: none;
}
.email-blur.visible {
  filter: none;
  user-select: text;
} 

/* Titular blur effect */
.titular-blur {
  filter: blur(6px);
  cursor: pointer;
  transition: filter 0.3s;
  user-select: none;
}
.titular-blur.visible {
  filter: none;
  user-select: text;
} 

/* Stil butoane callbook filter pentru uniformizare */
#callbook-filter .btn-callbook {
  min-width: 120px;
  height: 38px;
  border-radius: 8px !important;
  font-size: 1rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
} 
#btn-accept-disclaimer {
  pointer-events: auto !important;
  z-index: 9999 !important;
} 
#modalDisclaimer {
  z-index: 99999 !important;
}
#modalDisclaimer .modal-footer,
#btn-accept-disclaimer {
  z-index: 100000 !important;
  position: relative;
} 

/* Stiluri pentru disclaimer SweetAlert2 */
.swal2-disclaimer {
  max-width: 1200px !important;
  width: 90vw !important;
  font-family: 'Barlow', sans-serif;
}

.swal2-disclaimer .swal2-html-container {
  text-align: left;
  max-height: none !important;
  overflow-y: visible !important;
}

.swal2-disclaimer h6 {
  color: #0d6efd;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.swal2-disclaimer ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.swal2-disclaimer li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.swal2-disclaimer p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Stiluri pentru modal Bootstrap Disclaimer */
#modalDisclaimer .modal-dialog {
  max-width: 800px;
}

#modalDisclaimer .modal-body h6 {
  color: #0d6efd;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

#modalDisclaimer .modal-body ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

#modalDisclaimer .modal-body li {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

#modalDisclaimer .modal-body p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

#modalDisclaimer .modal-body strong {
  color: #dc3545;
}

/* Fix pentru backdrop-ul modalurilor */
.modal-backdrop {
  z-index: 1040 !important;
}

.modal {
  z-index: 1050 !important;
}

/* Asigură-te că body-ul nu rămâne cu overflow hidden */
body.modal-open {
  overflow: auto !important;
  padding-right: 0 !important;
}

/* Fix pentru modalurile care nu se închid corect */
.modal.show {
  display: block !important;
}

.modal:not(.show) {
  display: none !important;
}

.swal2-disclaimer a {
  color: #0d6efd;
  text-decoration: none;
}

.swal2-disclaimer a:hover {
  text-decoration: underline;
}

.swal2-disclaimer strong {
  color: #dc3545;
}

/* Stiluri pentru email și titular blur */
.email-blur, .titular-blur {
  filter: blur(3px);
  transition: filter 0.3s ease;
  cursor: pointer;
  user-select: none;
}

.email-blur.visible, .titular-blur.visible {
  filter: blur(0);
  user-select: text;
}

.email-blur:hover, .titular-blur:hover {
  filter: blur(1px);
}

/* Widget Statistici Vizitatori */
.stats-widget {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1050;
  font-family: 'Barlow', sans-serif;
}

.stats-toggle {
  background: linear-gradient(135deg, #0d6efd, #084298);
  color: white;
  padding: 15px 28px;
  border-radius: 12px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  text-decoration: none;
}

.stats-toggle:hover {
  background: linear-gradient(135deg, #084298, #052c65);
  transform: scale(1.08);
  box-shadow: 3px 3px 15px rgba(0,0,0,0.3);
  color: white;
  text-decoration: none;
}

.stats-toggle i {
  font-size: 1.5rem;
}

/* Widget PWA Install */
.pwa-widget {
  position: fixed;
  left: 20px;
  top: calc(50% + 40px);
  z-index: 1050;
  font-family: 'Barlow', sans-serif;
}

.pwa-toggle {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  color: white;
  padding: 15px 28px;
  border-radius: 12px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  text-decoration: none;
}

.pwa-toggle:hover {
  background: linear-gradient(135deg, #1e7e34, #155724);
  transform: scale(1.08);
  box-shadow: 3px 3px 15px rgba(0,0,0,0.3);
  color: white;
  text-decoration: none;
}

.pwa-toggle i {
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .pwa-toggle {
    width: 50px;
    height: 50px;
    padding: 12px 20px;
  }
  
  .pwa-toggle i {
    font-size: 1.2rem;
  }
}

/* Widget Chat Radioamatori */
.chat-widget {
  position: fixed;
  left: 20px;
  top: calc(50% + 110px);
  z-index: 1050;
  font-family: 'Barlow', sans-serif;
  display: block !important; /* Forțează afișarea */
}

.chat-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-size: 18px;
  opacity: 1 !important; /* Forțează opacitatea */
  visibility: visible !important; /* Forțează vizibilitatea */
}

.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.3);
}

.chat-toggle.active {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

/* Asigură-te că widget-ul de chat este vizibil pe toate dispozitivele */
@media (max-width: 768px) {
  .stats-widget {
    left: 15px;
  }
  
  .pwa-widget {
    left: 15px;
    top: calc(50% + 35px);
  }
  
  .chat-widget {
    left: 15px;
    top: calc(50% + 95px);
  }
  
  .stats-toggle,
  .pwa-toggle,
  .chat-toggle {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }
}

/* Stiluri pentru chat */
.chat-messages {
  background: #f8f9fa;
  border-radius: 8px;
}

.message-bubble {
  word-wrap: break-word;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.message-bubble.bg-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.message-bubble.bg-light {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
  border: 1px solid #e9ecef;
}

.user-item {
  transition: background-color 0.2s ease;
}

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

.user-status .fa-circle {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Scrollbar personalizat pentru chat */
.chat-messages::-webkit-scrollbar,
.users-list::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.users-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb,
.users-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.users-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Widget Notificări */
.notification-widget {
  position: fixed;
  left: 0;
  top: 70%;
  transform: translateY(-50%);
  z-index: 1050;
  font-family: 'Barlow', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notification-toggle {
  background: linear-gradient(135deg, #198754, #157347);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  text-decoration: none;
}

.notification-toggle:hover {
  background: linear-gradient(135deg, #157347, #0f5132);
  transform: scale(1.08);
  box-shadow: 3px 3px 15px rgba(0,0,0,0.3);
  color: white;
  text-decoration: none;
}

.notification-toggle i {
  font-size: 1.5rem;
}

.test-notification {
  background: linear-gradient(135deg, #0dcaf0, #0aa2c0);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  text-decoration: none;
}

.test-notification:hover {
  background: linear-gradient(135deg, #0aa2c0, #087990);
  transform: scale(1.08);
  box-shadow: 3px 3px 15px rgba(0,0,0,0.3);
  color: white;
  text-decoration: none;
}

.test-notification i {
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .notification-toggle,
  .test-notification {
    width: 50px;
    height: 50px;
    padding: 10px 15px;
  }
  
  .notification-toggle i,
  .test-notification i {
    font-size: 1.2rem;
  }
}

/* Modal Statistici */
#statsModal .modal-dialog {
  max-width: 1200px;
}

#statsModal .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

#statsModal .modal-header {
  border-radius: 12px 12px 0 0;
  border-bottom: 2px solid #0d6efd;
}

#statsModal .modal-title {
  font-weight: 600;
  font-size: 1.3rem;
}

#statsModal .modal-title i {
  margin-right: 10px;
}

.stats-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.stats-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: 100%;
}

.stats-section-title {
  color: #0d6efd;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.3rem;
  border-bottom: 2px solid #0d6efd;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stats-section-title i {
  background: linear-gradient(135deg, #0d6efd, #084298);
  color: white;
  padding: 8px;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}

.stats-card {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: 100%;
}

.stats-card:hover {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0d6efd;
  margin-bottom: 8px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.stats-label {
  font-size: 1rem;
  color: #6c757d;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-chart {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  min-height: 200px;
  border: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stats-list {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e9ecef;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stats-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.stats-list-item:hover {
  background: #f8f9fa;
  border-radius: 8px;
  padding-left: 12px;
  padding-right: 12px;
  margin: 0 -12px;
  transform: translateX(5px);
}

.stats-list-item:last-child {
  border-bottom: none;
}

.stats-list-label {
  color: #495057;
  font-weight: 500;
}

.stats-list-value {
  color: #0d6efd;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Card-uri pentru statistici pe perioade */
.stats-period-card {
  background: linear-gradient(135deg, #0d6efd, #084298);
  color: white;
  border-radius: 12px;
  padding: 25px 15px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
  transition: all 0.3s ease;
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 120px;
}

.stats-period-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

.stats-period-number {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  line-height: 1;
}

.stats-period-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.stats-period-subtitle {
  font-size: 0.75rem;
  opacity: 0.9;
  font-style: italic;
  line-height: 1.2;
}

/* Responsive pentru widget statistici */
@media (max-width: 768px) {
  .stats-toggle {
    width: 48px;
    height: 48px;
    padding: 10px 12px;
  }
  
  .stats-toggle i {
    font-size: 1.2rem;
  }
  
  #statsModal .modal-dialog {
    margin: 10px;
    max-width: calc(100vw - 20px);
  }
  
  .stats-card {
    margin-bottom: 15px;
  }
}

/* Stiluri pentru graficele din widget statistici */
.hourly-chart-container,
.daily-chart-container {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 140px;
  padding: 10px 0;
  width: 100%;
}

.hourly-bar,
.daily-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
  min-width: 8px;
}

.hourly-bar-fill,
.daily-bar-fill {
  background: linear-gradient(to top, #3498db, #2980b9);
  border-radius: 3px 3px 0 0;
  width: 100%;
  min-height: 3px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.hourly-bar-fill:hover,
.daily-bar-fill:hover {
  background: linear-gradient(to top, #e74c3c, #c0392b);
  transform: scaleY(1.1);
}

.hourly-label,
.daily-label {
  font-size: 0.75rem;
  color: #ecf0f1;
  margin-top: 8px;
  text-align: center;
  font-weight: 500;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stiluri pentru alert-uri în widget */
.stats-data .alert {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #f8d7da;
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
}

.stats-data .alert i {
  margin-right: 8px;
}

/* Stiluri pentru mesaje fără date */
.stats-chart .text-muted {
  color: #95a5a6 !important;
  font-style: italic;
  font-size: 0.9rem;
} 

.row > .col-lg-2.mb-4 {
  margin-bottom: 24px !important;
  padding: 0 8px;
}

@media (max-width: 1200px) {
  .stats-period-card {
    height: 130px;
    padding: 20px 12px;
  }
  
  .stats-period-number {
    font-size: 2rem;
  }
  
  .stats-period-label {
    font-size: 0.85rem;
  }
  
  .stats-period-subtitle {
    font-size: 0.7rem;
  }
}

@media (max-width: 768px) {
  .stats-period-card {
    height: 120px;
    padding: 15px 10px;
  }
  
  .stats-period-number {
    font-size: 1.8rem;
  }
  
  .stats-period-label {
    font-size: 0.8rem;
  }
  
  .stats-period-subtitle {
    font-size: 0.65rem;
  }
}

/* Stiluri pentru header-ele principale */
.stats-main-header {
  color: #495057;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stats-main-header i {
  color: #007bff;
  font-size: 1.2rem;
}

.stats-main-header .text-muted {
  font-weight: 400;
  font-size: 0.9rem;
}

/* Aliniere widget-uri la centru */
.stats-data .row {
  justify-content: center;
}

/* Corectare culoare pentru ore și zile */
.hourly-label,
.daily-label {
  font-size: 0.75rem;
  color: #495057 !important;
  margin-top: 8px;
  text-align: center;
  font-weight: 500;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
} 

.hourly-label,
.stats-chart .text-muted {
  font-size: 0.8rem;
  color: #6c757d;
}

/* Notificări vizuale subtile pentru chat */
.notification-pulse {
  animation: notification-pulse 1s ease-in-out;
}

@keyframes notification-pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.highlight-tab {
  background: #ff4757 !important;
  color: white !important;
  animation: highlight-tab 2s ease-in-out;
  box-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

@keyframes highlight-tab {
  0% { background: #ff4757; box-shadow: 0 0 10px rgba(255, 71, 87, 0.5); }
  50% { background: #ff6b7a; box-shadow: 0 0 15px rgba(255, 107, 122, 0.7); }
  100% { background: #0d6efd; box-shadow: none; }
}

/* Notificări subtile pentru utilizatori */
.user-notification-icon {
  position: absolute;
  top: 2px;
  right: 2px;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: notification-pulse 1s ease-in-out;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Notificări subtile pentru canale */
.channel-notification-icon {
  position: absolute;
  top: 2px;
  right: 2px;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: notification-pulse 1s ease-in-out;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Stiluri pentru elementele cu notificări */
.user-item,
.channel-tab {
  position: relative;
  transition: all 0.2s ease;
}

.user-item:hover,
.channel-tab:hover {
  transform: translateX(2px);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  animation: notification-pulse 2s ease-in-out;
  z-index: 1000;
}

/* Indicator pentru camere active */
.channel-indicator {
  position: relative;
}

.channel-indicator.active {
  background: #28a745 !important;
  color: white !important;
}

.channel-indicator.active::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #ff4757;
  border-radius: 50%;
  animation: channel-pulse 2s infinite;
}

@keyframes channel-pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

/* Indicator pentru typing */
.typing-indicator {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: none;
  z-index: 1000;
  animation: typing-fade 0.3s ease-in-out;
}

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

/* Bullet colorat pentru mesaje noi */
.message.new-message {
  border-left: 3px solid #ff4757;
  padding-left: 10px;
  animation: new-message-highlight 3s ease-in-out;
}

@keyframes new-message-highlight {
  0% { background: rgba(255, 71, 87, 0.1); }
  50% { background: rgba(255, 71, 87, 0.05); }
  100% { background: transparent; }
}

/* Icon pentru camere cu activitate */
.room-activity {
  position: relative;
}

.room-activity::before {
  content: '💬';
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 12px;
  animation: room-activity-pulse 2s infinite;
}

@keyframes room-activity-pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
} 