/* Notifikasi */
.notif-item.unread { background-color: #f0f7ff; border-left: 3px solid #3498db; }
.notif-item.read { background-color: #fff; opacity: 0.8; }
.notif-checkbox { margin-top: 5px; cursor: pointer; }
.btn-sm { padding: 4px 8px; font-size: 11px; cursor: pointer; border-radius: 4px; border: 1px solid #ddd; }
.btn-red { background: #ff4757; color: white; border: none; }
.modal-footer-action { padding: 10px; display: flex; justify-content: space-around; background: #f9f9f9; border-radius: 0 0 8px 8px; }
.modal-footer-action button { padding: 8px 15px; border-radius: 4px; border: none; cursor: pointer; font-size: 12px; }
.modal-notif {
    display: none; /* Sembunyi secara default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content-notif {
    background-color: #fff;
    margin: 5% auto; /* Jarak dari atas */
    padding: 0;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 { margin: 0; font-size: 16px; }

.close-btn {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.notif-list-container {
    max-height: 400px;
    overflow-y: auto;
}

.notif-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f9f9f9;
    display: flex;
    gap: 15px;
    font-size: 13.5px;
}

.notif-item i { margin-top: 3px; font-size: 16px; }

.notif-item small { color: #bbb; display: block; margin-top: 5px; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card i {
    font-size: 32px;
}

.card h2 {
    margin: 5px 0 0;
}

.topbar .user {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px; 
}

.topbar .user img.topbar-profile {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    display: block;
}


.blue { border-left: 4px solid #3498db; }
.red { border-left: 4px solid #e74c3c; }
.yellow { border-left: 4px solid #f1c40f; }
.green { border-left: 4px solid #2ecc71; }
.grey { border-left: 4px solid #57595B; }

.box {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 10px;
    text-align: left;
    vertical-align: middle;
}

th {
    font-weight: 600;
    background: #f9f9f9;
}

.text-center {
    text-align: center;
}

/* Kolom Aksi */
td.text-center {
    width: 120px;
}

/* Tombol Detail */
.btn-detail {
    display: inline-block;
    padding: 6px 14px;
    background: #3498db;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
}

/* TOPBAR MOBILE */
@media (max-width: 768px) {

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px 14px 60px;
    margin-top: 10px;
  }

  .topbar h1 {
    font-size: 16px;
    line-height: 1.2;
    margin: 0;
  }

  .topbar .user {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .topbar .user span {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 130px);
  }

  .topbar-profile {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    min-height: 36px;
  }
}


