/* ---------------------------------------------------
   GLOBAL
--------------------------------------------------- */
body {
    background: #f7f8fa !important;
    color: #2b2b2b;
}

/* ---------------------------- */
/*   Hide scrollbar globally    */
/* ---------------------------- */
* {
    scrollbar-width: none !important; /* Firefox */
}

*::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
}

*::-webkit-scrollbar-thumb {
    background: transparent !important;
}

/* ---------------------------- */
/* Show thin scrollbar on hover */
/* ---------------------------- */
body:hover::-webkit-scrollbar {
    width: 5px !important;
}

body:hover::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.18) !important;
    border-radius: 10px;
}

/* GLOBAL FONT RESET */
*,
body,
html,
button,
input,
select,
textarea,
.table,
.card,
.navbar,
.modal,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif !important;
}

/* Soft scroll */
html {
    scroll-behavior: smooth;
}

/* Subtle shadows */
.shadow, .card, .modal-content, .dropdown-menu {
    box-shadow: 0 6px 24px rgba(0,0,0,0.06) !important;
}

/* ---------------------------------------------------
   CARD REFINEMENT
--------------------------------------------------- */
.card {
    border: 1px solid rgba(0,0,0,0.06) !important;
    border-radius: 18px !important;
    background: transparent !important;
    /* padding: 1rem 0rem; */
}

.card-header {
    padding: 14px 24px !important;
    background: #ffffff !important;
    border-radius: 18px 18px 0px 0px !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}
.card-footer {
    border-top: 1px solid rgba(0,0,0,0.06) !important;
    background: #ffffff !important;
    border-radius: 0px 0px 18px 18px !important;
}
/* ---------------------------------------------------
   TABLE CLEAN STYLE
--------------------------------------------------- */
.table {
    border-collapse: separate !important;
    border-spacing: 0 2px !important;
}

.table thead th {
    font-size: 14px;
    font-weight: 700;
    color: #7a7a7a;
}

.table tbody tr {
    background: #ffffff !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.table tbody tr td {
    border-top: none !important;
    padding: 5px 14px !important;
    font-size: 14px;
}

/* Limit panjang teks dalam tabel (judul, nama, dsb) */
.table td.text-truncate,
.table th.text-truncate {
    max-width: 260px;          /* sesuaikan kebutuhan */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

/* Status badge overrides (Bootstrap Pill Style) */
.badge, .btn-sm {
    border-radius: 12px !important;
    font-weight: 600;
}

/* ---------------------------------------------------
   BUTTONS
--------------------------------------------------- */
.btn {
    border-radius: 8px !important;
    padding: 5px 10px !important;
    font-weight: 600 !important;
    transition: 0.25s ease !important;
}
.btn i{
    margin: -2px 0px;
    font-size: 16px;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.08) !important;
}

/* Primary button modern */
.btn-primary {
    background: linear-gradient(135deg, #4f7fff, #246bff) !important;
    border: none !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a8aff, #2c74ff) !important;
}

/* Soft outline */
.btn-outline-secondary {
    border-color: #dcdcdc !important;
}

/* ---------------------------------------------------
   NAVIGATION CLEAN (Top / Bottom Bars)
--------------------------------------------------- */
.navbar {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}

/* Pills / pill-nav active */
.nav-pills .nav-link.active {
    background: #eef3ff !important;
    color: #246bff !important;
    font-weight: 700;
}

/* ---------------------------------------------------
   FORM INPUTS
--------------------------------------------------- */
.form-control,
.form-select {
    border-radius: 12px !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    background: #ffffff !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    transition: 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: #246bff !important;
    box-shadow: 0 0 0 3px rgba(36,107,255,0.15) !important;
}

/* ---------------------------------------------------
   SEARCH BAR STYLE
--------------------------------------------------- */
input[type="search"] {
    border-radius: 14px !important;
    background: #f2f3f5 !important;
    border: none !important;
    padding-left: 16px !important;
}

/* ---------------------------------------------------
   MODAL
--------------------------------------------------- */
.modal-content {
    border-radius: 20px !important;
    border: none !important;
}

/* ---------------------------------------------------
   PAGINATION
--------------------------------------------------- */
.page-link {
    border-radius: 10px !important;
    margin: 0 4px;
    border: none !important;
    background: #f1f3f7 !important;
    color: #444 !important;
}

.page-item.active .page-link {
    background: #246bff !important;
    color: #fff !important;
}

/* ---------------------------------------------------
   BADGE COLORS (like your reference)
--------------------------------------------------- */
.badge-success {
    background: #d7f8e9 !important;
    color: #22a065 !important;
    padding: 8px 12px !important;
}

.badge-warning {
    background: #fff2d6 !important;
    color: #c48f00 !important;
    padding: 8px 12px !important;
}

.badge-danger {
    background: #ffe0e0 !important;
    color: #d64545 !important;
    padding: 8px 12px !important;
}
.badge-secondary {
    background: #f0f0f0 !important;
    color: #6c757d !important;
    padding: 8px 12px !important;
}
/* ---------------------------------------------------
   AVATAR
--------------------------------------------------- */
.rounded-circle {
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Avatar soft ring */
.avatar-ring {
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ---------------------------------------------------
   MICRO INTERACTION
--------------------------------------------------- */
tr:hover td {
    background: #f6f9ff !important;
    transition: 0.25s ease;
}

a:hover {
    opacity: 0.85;
    transition: 0.2s ease;
}


th[data-sort] {
    cursor: pointer;
    position: relative;
    user-select: none;
    padding-right: 20px;
}

th .sort-icon {
    font-size: 12px;
    opacity: 0.45;
    margin-left: 4px;
}

th.sort-asc .sort-icon::after {
    content: "▲";
}
th.sort-desc .sort-icon::after {
    content: "▼";
}

th[data-sort]:hover .sort-icon {
    opacity: 0.8;
}

/* Highlight row untuk task user sendiri */
.my-task-row td {
    background: rgba(34, 160, 101, 0.1) !important;
    transition: 0.2s ease !important;
}
.my-task-row:hover td {
    background: rgba(34, 160, 101, 0.15) !important;
}
.my-task-row {
    background: rgba(34, 160, 101, 0.1) !important;
    transition: 0.2s ease !important;
}

.no-select {
    user-select: none !important;
}

.available-user-item {
    opacity: 0.85;
    transition: 0.2s ease;
}

.available-user-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.available-user-item img {
    border: 2px solid rgba(0,0,0,0.1);
    transition: 0.2s;
}

.available-user-item:hover img {
    border-color: rgba(0,0,0,0.3);
}


/* Summernote Customization */
h1 {
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
    font-size: 2rem !important;
    color: #2b405b !important;
}
h2 {
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
    font-size: 1.75rem !important;
    color: #2b405b !important;
}
h3 {
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
    font-size: 1.5rem !important;
    color: #2b405b !important;
}
pre {
    background: #f6f8fa !important;
    border-radius: 8px !important;
    padding: 12px !important;
    font-size: 0.9rem !important;
    overflow-x: auto !important;
    color: #e11d48 !important;
    background: #fff3cd !important;
}
p {
    margin-bottom: 0rem !important;
}

dl, ol, ul {
    margin-bottom: 0rem !important;
}
ol, ul {
    padding-left: 1.5rem !important;
}

b,strong {
    font-weight: 800 !important;
    color: #2b405b !important;
}
a {
    text-decoration: none !important;
}
.text-red {
    color: #e11d48 !important;
    font-weight: 600;
}
.note-hl {
    background: #fff3cd !important;
    padding: 2px 4px;
    border-radius: 4px;
}
.note-warning {
    background: #ffe5e5 !important;
    color: #b91c1c !important;
    padding: 2px 4px;
    border-radius: 4px;
}
.note-info {
    background: #dbeafe !important;
    color: #1e3a8a !important;
    padding: 2px 4px;
    border-radius: 4px;
}

/* Rating Stars */
.rating-stars i {
    font-size: 18px;
    margin-right: 2px;
    transition: transform 0.15s ease;
}

.rating-stars i:hover {
    transform: scale(1.12);
}
.star-full {
    color: #ffcc33;
}

.star-half {
    color: #ffcc33;
}

.star-empty {
    color: #ddd;
}

blockquote {
  font-style: italic;
  color: #555 !important;
  border-left: 4px solid #ccc !important;
  padding: 0.8rem 1.2rem !important;
  margin: 1.2rem 0 !important;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 4px !important;
}

blockquote p {
  margin: 0 ! important;
}

blockquote::before {
  content: "“";
  font-size: 2.6rem;
  line-height: 1;
  margin-right: 0.2rem;
  vertical-align: -0.4rem;
  color: #ccc;
}

