/* assets/css/style.css */

:root {
    --primary-dark-blue: #0a2e50; /* Warna biru gelap utama */
    --secondary-dark-blue: #07223a; /* Sedikit lebih gelap untuk hover/active */
    --sidebar-text-color: #adb5bd;
    --sidebar-hover-text: #ffffff;
    --sidebar-bg: var(--primary-dark-blue);
    --content-bg: #f8f9fa; /* Latar belakang content area */
}

body {
    overflow-x: hidden; /* Elak horizontal scroll */
    background-color: var(--content-bg);
}

#wrapper {
    display: flex;
    min-height: 100vh;
    transition: padding-left 0.3s ease; /* Animasi untuk content bila sidebar toggle */
}

#sidebar-wrapper {
    width: 250px;
    min-height: 100vh;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text-color);
    transition: margin-left 0.3s ease; /* Animasi sidebar */
    margin-left: 0; /* Sidebar kelihatan by default */
    flex-shrink: 0; /* Elak sidebar mengecil */
    padding-top: 1rem;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: -250px; /* Sembunyikan sidebar ke kiri */
}

#page-content-wrapper {
    flex-grow: 1; /* Content area ambil baki ruang */
    width: 100%;
    padding: 20px;
    transition: width 0.3s ease; /* Animasi content area */
}

/* Style untuk user info di sidebar */
.sidebar-user-info {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.sidebar-user-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover; /* Pastikan gambar tidak herot */
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.sidebar-user-info h5 {
    color: var(--sidebar-hover-text);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.sidebar-user-info p {
    font-size: 0.85rem;
    text-transform: capitalize;
    margin-bottom: 0;
}

/* Style untuk link navigasi sidebar */
.sidebar-nav {
    width: 250px;
    padding: 0;
    list-style: none;
}

.sidebar-nav .nav-link {
    color: var(--sidebar-text-color);
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    color: var(--sidebar-hover-text);
    background-color: var(--secondary-dark-blue);
    text-decoration: none;
}

.sidebar-nav .nav-link i {
    margin-right: 10px;
    width: 20px; /* Jajaran ikon */
    text-align: center;
}

/* Navbar di content area */
.navbar-dashboard {
    background-color: #ffffff;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Button Toggle Sidebar */
#menu-toggle {
    color: var(--primary-dark-blue);
}

/* Responsiveness: Hide sidebar text on smaller screens if desired */
@media (max-width: 768px) {
   /* By default, sidebar stays visible. Add rules here if you want
      to hide it automatically on small screens or change behavior */
   #sidebar-wrapper {
        margin-left: -250px; /* Hide by default on smaller screens */
   }
   #wrapper.toggled #sidebar-wrapper {
        margin-left: 0; /* Show when toggled */
   }
   #page-content-wrapper {
       width: 100%;
   }
   /* Force toggle button visible */
   #menu-toggle { display: block !important; }
}

/*Profile*/

/* assets/css/style.css */

/* ... (CSS sedia ada) ... */

/* Gaya untuk halaman Profil */
.profile-avatar-main {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid #dee2e6;
}

.profile-avatar-sidebar {
    width: 60px; /* Saiz lebih kecil untuk sidebar */
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}


.profile-card .card-header {
    background-color: #f8f9fa; /* Latar belakang header kad */
    border-bottom: 1px solid #e9ecef;
}

/* Jarak antara label (dt) dan data (dd) dalam senarai definisi */
dl.row dt {
    font-weight: 600; /* Bold label */
    color: #495057;
}

dl.row dd {
    color: #212529;
}

/* Sedikit margin bawah untuk setiap baris dl */
dl.row dt, dl.row dd {
    margin-bottom: 0.5rem;
}

body > nav.navbar.sticky-top .dropdown-menu {
    z-index: 1031;
}


/* Tambahkan dalam header atau fail CSS terpisah */
.password-strength .progress {
    margin-top: 5px;
    margin-bottom: 5px;
}
.toggle-password {
    cursor: pointer;
}
.toggle-password:hover {
    background-color: #f8f9fa;
}

.row>* {
z-index: 50;
}

/* Message" */
/* Message Styles */
.message-container {
    height: 500px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.message-bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 10px;
    position: relative;
}

.message-bubble.sent {
    background-color: #007bff;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 0;
}

.message-bubble.received {
    background-color: #e9ecef;
    margin-right: auto;
    border-bottom-left-radius: 0;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Conversation List */
.conversation-list {
    max-height: 600px;
    overflow-y: auto;
}

.conversation-item {
    transition: background-color 0.2s;
}

.conversation-item:hover {
    background-color: #f8f9fa;
}

.conversation-item.active {
    background-color: #e9f5ff;
}

/* Notification Styles */
.notification-item.unread {
    background-color: #f0f7ff;
}

.notification-time {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Notifikasi & Mesej */
.dropdown-notifications, .dropdown-messages {
    max-height: 400px;
    overflow-y: auto;
    width: 300px;
}

.notification-item, .message-item {
    transition: background-color 0.2s;
}

.notification-item:hover, .message-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #f0f7ff;
}

.message-avatar {
    width: 36px;
    height: 36px;
    object-fit: cover;
}

/* Badge */
.badge-notification {
    font-size: 0.6em;
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(25%, -25%);
}

.gift-display {
    margin-top: 5px;
    padding: 5px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.gift-item {
    display: inline-block;
    margin-right: 5px;
    position: relative;
}

.gift-item img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.gift-count {
    font-size: 0.8em;
    color: #6c757d;
}

/* Iklan */
.ad-card-feed {
    border: 1px solid #0d6efd; /* Biru Bootstrap */
}

.post-card .overlay-ad-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background-color: rgba(0,0,0,0.6);
    color: white;
    backdrop-filter: blur(5px);
}
.overlay-ad-container .overlay-ad-close {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 12;
}
.overlay-ad-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    text-align: center;
}
.overlay-text-ad {
    height: 30vh; /* 3/10 dari viewport height, anda boleh ubah */
    max-height: 150px;
}
.overlay-text-ad a {
    color: #ffc107; /* Kuning Bootstrap */
    font-weight: bold;
}
.overlay-banner-ad {
    height: 40vh; /* 4/10 dari viewport height, anda boleh ubah */
    max-height: 250px;
    background-size: cover;
    background-position: center;
}
.banner-text {
    background: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 5px;
}
.unmute-btn {
    margin-top: 10px;
}

/* Post video */

/* CSS untuk video container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Nisbah 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px; /* Sudut bulat */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* CSS untuk video player */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Nisbah 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
}
.video-container video { /* Tukar dari iframe kepada video */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}








