body {
  background-color: #f8f9fa;
  font-size: 16px; 
}
.card {
  border: 0;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
}
.status-badge {
  font-size: 0.8em;
  padding: 0.4em 0.7em;
}
.status-menunggu-review {
  background-color: #ffc107 !important;
  color: #000;
}
.status-diterima {
  background-color: #198754 !important;
  color: #fff;
}
.status-ditolak {
  background-color: #dc3545 !important;
  color: #fff;
}
.status-revisi {
  background-color: #fd7e14 !important;
  color: #fff;
}
.action-buttons .btn {
  margin-left: 5px;
  margin-bottom: 5px;
}
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}
.table-container {
  overflow-x: auto;
}
.table-container .table {
  min-width: 700px;
}
body.login-view {
  background-color: #fff;
}
.login-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}
#login-image-col {
  flex: 0 0 58.333333%;
  background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('polkesku.jpeg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
#login-form-col {
  flex: 0 0 41.666667%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: #f8f9fa;
}
#card-login {
  border: none;
  box-shadow: none;
  background-color: transparent;
}
.main-layout {
  display: flex;
  position: relative;
}
#sidebar {
  background-color: #212529;
  transition: all 0.3s;
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  z-index: 1030;
  overflow-y: auto;
}
#sidebar.active {
  left: 0;
}
#sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1020;
}
#main-content {
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,.075);
  width: 100%;
}
#sidebar .nav-link {
  color: rgba(255,255,255,0.8);
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  transition: background-color 0.2s;
}
#sidebar .nav-link:hover {
  background-color: #343a40;
  color: #fff;
}
#sidebar .nav-link.active {
  background-color: #0d6efd;
  color: #fff;
  font-weight: 500;
}
#sidebar .nav-link i {
  margin-right: 0.8rem;
  width: 20px;
  text-align: center;
  font-size: 1.1em;
}
#berita-acara-content {
  font-family: 'Times New Roman', Times, serif;
  color: #000;
}
.ba-kop {
  text-align: center;
  border-bottom: 3px solid #000;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.ba-kop img {
  width: 90px;
}
.ba-kop-text {
  display: inline-block;
  vertical-align: middle;
  margin-left: 20px;
}
.ba-kop-text h5, .ba-kop-text p {
  margin: 0;
  line-height: 1.2;
  font-weight: bold;
}
.ba-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 11pt;
}
.ba-table th, .ba-table td {
  border: 1px solid #000;
  padding: 6px;
}
.ba-signatures table {
  width: 100%;
}
.ba-signatures td {
  vertical-align: top;
  text-align: center;
  width: 50%;
}
.comment-list {
  max-height: 300px;
  overflow-y: auto;
}
.comment-bubble {
  padding: 10px 15px;
  border-radius: 15px;
  margin-bottom: 10px;
  max-width: 85%;
  word-wrap: break-word;
}
.comment-bubble-user {
  background-color: #e0f0ff;
  margin-left: auto;
}
.comment-bubble-other {
  background-color: #f1f1f1;
  margin-right: auto;
}
.comment-bubble .author {
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.comment-bubble .timestamp {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 5px;
  text-align: right;
}
.group-header-grub {
  background-color: #212529 !important;
  color: white;
  font-size: 1.1em;
}
.group-header-kelompok {
  background-color: #495057 !important;
  color: white;
  font-size: 1.0em;
}
.group-header-kegiatan {
  background-color: #e9ecef !important;
}
.comment-btn-wrapper {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.comment-notification-dot {
  position: absolute;
  top: -2px;
  right: 2px;
  width: 9px;
  height: 9px;
  background-color: #dc3545;
  border-radius: 50%;
  border: 1.5px solid white;
  animation: blinker 1.5s linear infinite;
}
@keyframes blinker {
  50% { opacity: 0.3; }
}
.notification-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background-color: #dc3545;
  color: white;
  font-size: 0.7rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #fff;
}
#notification-list {
  min-width: 350px;
  max-height: 400px;
  overflow-y: auto;
}
#notification-list .list-group-item.unread {
  background-color: #eef5ff;
}
.history-log-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}
.history-log-item:last-child {
  border-bottom: none;
}
@media (min-width: 768px) {
  #sidebar {
    position: sticky;
    left: 0;
    width: 250px;
    min-width: 250px;
    height: calc(100vh - 2rem);
    border-radius: 0.5rem;
  }
  #main-content {
    padding: 1.5rem;
  }
  #app-area {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (max-width: 767.98px) {
  #login-image-col {
    display: none;
  }
  #login-form-col {
    flex: 0 0 100%;
  }
  #app-area {
    padding: 0.75rem;
  }
  .ba-kop {
    flex-direction: column;
  }
  .ba-kop-text {
    margin-left: 0;
    margin-top: 15px;
  }
  .ba-signatures td {
    display: block;
    width: 100%;
    margin-bottom: 40px;
  }
  .ba-signatures td:last-child {
    margin-bottom: 0;
  }
}
@media print {
  body {
    background: #fff !important;
  }
  #sidebar, .d-print-none, #sidebar-toggle, header {
    display: none !important;
  }
  body, .container-fluid, #app-area, .main-layout, #main-content, .tab-content {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }
  #berita-acara-content {
    padding: 1cm;
    font-size: 11pt;
  }
  .table-container {
    overflow-x: visible;
  }
  .tab-pane {
    display: none !important;
  }
  #tab-berita-acara, #berita-acara-content {
    display: block !important;
    visibility: visible !important;
  }
  a {
    text-decoration: none !important;
    color: #000 !important;
  }
}
