.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #0D7F8A;
  --bs-btn-border-color: #0D7F8A;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #09656B;
  --bs-btn-hover-border-color: #09656B;
  --bs-btn-focus-shadow-rgb: 49,132,253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0D7F8A;
  --bs-btn-active-border-color: #0D7F8A;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #0D7F8A;
  --bs-btn-disabled-border-color: #0D7F8A;
}

.btn-outline-primary {
  --bs-btn-color: #0D7F8A;
  --bs-btn-border-color: #0D7F8A;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #09656B;
  --bs-btn-hover-border-color: #09656B;
  --bs-btn-focus-shadow-rgb: 13,110,253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0D7F8A;
  --bs-btn-active-border-color: #0D7F8A;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #0D7F8A;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #0D7F8A;
  --bs-gradient: none;
}

.nav-link:focus, .nav-link:hover {
  color: #0d7f8a;
}

.nav-pills {
  --bs-nav-pills-border-radius: var(--bs-border-radius);
  --bs-nav-pills-link-active-color: #fff;
  --bs-nav-pills-link-active-bg: #0D7F8A;
}

.btn-link:hover {
  text-decoration: none !important;
}

.nav {
  --bs-nav-link-padding-x: 1rem;
  --bs-nav-link-padding-y: 0.5rem;
  --bs-nav-link-color: var(--bs-link-color);
  --bs-nav-link-hover-color: var(--bs-link-hover-color);
  --bs-nav-link-disabled-color: var(--bs-secondary-color);
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

:root, [data-bs-theme=light] {
  --bs-blue: #0d6efd;
  --bs-indigo: #6610f2;
  --bs-purple: #6f42c1;
  --bs-pink: #d63384;
  --bs-red: #dc3545;
  --bs-orange: #fd7e14;
  --bs-yellow: #ffc107;
  --bs-green: #198754;
  --bs-teal: #20c997;
  --bs-cyan: #0dcaf0;
  --bs-black: #000;
  --bs-white: #fff;
  --bs-gray: #6c757d;
  --bs-gray-dark: #343a40;
  --bs-gray-100: #f8f9fa;
  --bs-gray-200: #e9ecef;
  --bs-gray-300: #dee2e6;
  --bs-gray-400: #ced4da;
  --bs-gray-500: #adb5bd;
  --bs-gray-600: #6c757d;
  --bs-gray-700: #495057;
  --bs-gray-800: #343a40;
  --bs-gray-900: #212529;
  --bs-primary: #0d6efd;
  --bs-secondary: #6c757d;
  --bs-success: #198754;
  --bs-info: #0dcaf0;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
  --bs-primary-rgb: 13,110,253;
  --bs-secondary-rgb: 108,117,125;
  --bs-success-rgb: 25,135,84;
  --bs-info-rgb: 13,202,240;
  --bs-warning-rgb: 255,193,7;
  --bs-danger-rgb: 220,53,69;
  --bs-light-rgb: 248,249,250;
  --bs-dark-rgb: 33,37,41;
  --bs-primary-text-emphasis: #052c65;
  --bs-secondary-text-emphasis: #2b2f32;
  --bs-success-text-emphasis: #0a3622;
  --bs-info-text-emphasis: #055160;
  --bs-warning-text-emphasis: #664d03;
  --bs-danger-text-emphasis: #58151c;
  --bs-light-text-emphasis: #495057;
  --bs-dark-text-emphasis: #495057;
  --bs-primary-bg-subtle: #cfe2ff;
  --bs-secondary-bg-subtle: #e2e3e5;
  --bs-success-bg-subtle: #d1e7dd;
  --bs-info-bg-subtle: #cff4fc;
  --bs-warning-bg-subtle: #fff3cd;
  --bs-danger-bg-subtle: #f8d7da;
  --bs-light-bg-subtle: #fcfcfd;
  --bs-dark-bg-subtle: #ced4da;
  --bs-primary-border-subtle: #9ec5fe;
  --bs-secondary-border-subtle: #c4c8cb;
  --bs-success-border-subtle: #a3cfbb;
  --bs-info-border-subtle: #9eeaf9;
  --bs-warning-border-subtle: #ffe69c;
  --bs-danger-border-subtle: #f1aeb5;
  --bs-light-border-subtle: #e9ecef;
  --bs-dark-border-subtle: #adb5bd;
  --bs-white-rgb: 255,255,255;
  --bs-black-rgb: 0,0,0;
  --bs-font-sans-serif: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  --bs-font-monospace: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.5;
  --bs-body-color: #212529;
  --bs-body-color-rgb: 33,37,41;
  --bs-body-bg: #fff;
  --bs-body-bg-rgb: 255,255,255;
  --bs-emphasis-color: #000;
  --bs-emphasis-color-rgb: 0,0,0;
  --bs-secondary-color: rgba(33, 37, 41, 0.75);
  --bs-secondary-color-rgb: 33,37,41;
  --bs-secondary-bg: #e9ecef;
  --bs-secondary-bg-rgb: 233,236,239;
  --bs-tertiary-color: rgba(33, 37, 41, 0.5);
  --bs-tertiary-color-rgb: 33,37,41;
  --bs-tertiary-bg: #f8f9fa;
  --bs-tertiary-bg-rgb: 248,249,250;
  --bs-heading-color: inherit;
  --bs-link-color: #0D7F8A;
  --bs-link-color-rgb: 13,110,253;
  --bs-link-decoration: underline;
  --bs-link-hover-color: #0a58ca;
  --bs-link-hover-color-rgb: 10,88,202;
  --bs-code-color: #d63384;
  --bs-highlight-color: #212529;
  --bs-highlight-bg: #fff3cd;
  --bs-border-width: 1px;
  --bs-border-style: solid;
  --bs-border-color: #dee2e6;
  --bs-border-color-translucent: rgba(0, 0, 0, 0.175);
  --bs-border-radius: 0.375rem;
  --bs-border-radius-sm: 0.25rem;
  --bs-border-radius-lg: 0.5rem;
  --bs-border-radius-xl: 1rem;
  --bs-border-radius-xxl: 2rem;
  --bs-border-radius-2xl: var(--bs-border-radius-xxl);
  --bs-border-radius-pill: 50rem;
  --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
  --bs-focus-ring-width: 0.25rem;
  --bs-focus-ring-opacity: 0.25;
  --bs-focus-ring-color: rgba(13, 110, 253, 0.25);
  --bs-form-valid-color: #198754;
  --bs-form-valid-border-color: #198754;
  --bs-form-invalid-color: #dc3545;
  --bs-form-invalid-border-color: #dc3545;
}

a {
  color: rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1));
  text-decoration: none;
}

.google-login-btn:hover {
    background: #f8f9fa !important;
    border-color: #0D7F8A !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13, 127, 138, 0.2);
}

/* Avatar mini di desktop */
.account-avatar {
    width: 26px; 
    height: 26px; 
    border-radius: 50%; 
    margin-right: 10px;
    object-fit: cover;
}

/* Dropdown style */
.account-menu {
    padding: 1.5rem; 
    min-width: 320px; 
    border: none; 
    border-radius: 16px;
}

/* Google button */
.google-btn {
    border: 1px solid #e0e0e0;
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff;
    text-decoration: none;
    font-weight: 500;
    color: #333;
    transition: 0.25s ease;
}
.google-btn:hover { transform: scale(1.02); }

.google-icon {
    width: 18px;
    height: 18px;
}

/* User avatar (inside dropdown) */
.user-box .user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 14px;
}

/* Logout Button */
.logout-btn {
    padding: 0.7rem;
    text-align: center;
    display: block;
    font-weight: 600;
    color: #dc3545;
    background: #ffecec;
    text-decoration: none;
    transition: 0.3s;
}
.logout-btn:hover { background: #ffdddd; }

/* ==========================================
   🔥 MOBILE VERSION (TIDAK SEPERTI BUTTON DROP)
   ========================================== */
@media (max-width: 991px) {
    .account-btn {
        width: 100%;
        border-radius: 12px;
        padding: 12px 16px;
        font-size: 1rem;
        justify-content: flex-start;
        gap: 12px;
        background: #f8f9fa !important;
        color: #333 !important;
        border: 1px solid #ddd;
    }

    .account-dropdown {
        width: 100%;
    }

    .dropdown-menu-end {
        right: 0 !important;
        left: 0 !important;
        margin-top: 6px;
        width: 100% !important;
        border-radius: 16px;
    }
}

.profile-btn {
    padding: 0.7rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}
.profile-btn:hover {
    background: #f8f9fa;
}

/* ==========================================
   CHAT STYLES
   ========================================== */
.chat-container {
    height: calc(100vh - 100px);
    background: #f5f7fb;
    border-radius: 12px;
    overflow: hidden;
}

.chat-sidebar {
    background: white;
    border-right: 1px solid #e0e0e0;
    height: 100%;
    overflow-y: auto;
}

.chat-main {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.conversation-item {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.conversation-item:hover {
    background: #f8f9fa;
}

.conversation-item.active {
    background: #e3f2fd;
    border-left: 3px solid #2196f3;
}

.conversation-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.conversation-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2196f3;
    color: white;
    font-size: 20px;
}

.conversation-info h6 {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
}

.conversation-info p {
    margin: 0;
    font-size: 12px;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unread-badge {
    background: #2196f3;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
}

.online-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    position: absolute;
    bottom: 0;
    right: 0;
}

.online-status.online {
    background: #4caf50;
}

.online-status.offline {
    background: #9e9e9e;
}

.online-status.away {
    background: #ff9800;
}

.chat-header {
    background: white;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f5f7fb;
}

.message-bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 10px;
    position: relative;
    word-wrap: break-word;
}

.message-bubble.sent {
    background: #2196f3;
    color: white;
    margin-left: auto;
}

.message-bubble.received {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
}

.message-bubble .message-time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.message-bubble .message-sender {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
}

.chat-input {
    background: white;
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    position: relative;
}

.reply-preview {
    background: rgba(0,0,0,0.1);
    padding: 5px 10px;
    border-radius: 8px;
    margin-bottom: 5px;
    font-size: 12px;
}

.typing-indicator {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

.reaction-container {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.reaction-badge {
    background: #f0f0f0;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.reaction-badge:hover {
    background: #e0e0e0;
}

.reaction-badge.active {
    background: #2196f3;
    color: white;
}

.message-image {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 5px;
    cursor: pointer;
}

.message-image:hover {
    opacity: 0.9;
}

.message-file {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.05);
    padding: 10px;
    border-radius: 8px;
    gap: 10px;
}

.voice-note {
    display: flex;
    align-items: center;
    gap: 10px;
}

.voice-waveform {
    flex: 1;
    height: 30px;
    background: rgba(0,0,0,0.1);
    border-radius: 15px;
    position: relative;
}

.voice-waveform::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0%;
    height: 20px;
    background: #2196f3;
    border-radius: 15px;
    transition: width 0.3s;
}

.read-receipt {
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.read-receipt .read {
    color: #fff;
}

.read-receipt .delivered {
    color: #fff;
}

.message-bubble.highlight {
    animation: highlight 2s ease-in-out;
}

@keyframes highlight {
    0%, 100% {
        background: inherit;
    }
    50% {
        background: #ffeb3b;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chat-sidebar {
        position: absolute;
        left: -100%;
        top: 0;
        width: 80%;
        z-index: 1000;
        transition: left 0.3s;
    }
    
    .chat-sidebar.show {
        left: 0;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .emoji-picker {
        left: 10px;
        right: 10px;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Scrollbar Styling */
.chat-sidebar::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-sidebar::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

.chat-sidebar::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* User Search Results */
.user-item {
    cursor: pointer;
    transition: background 0.2s;
}

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

/* Group/Channel Badge */
.conversation-type-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #e0e0e0;
    color: #666;
}

.conversation-type-badge.group {
    background: #2196f3;
    color: white;
}

.conversation-type-badge.channel {
    background: #ff9800;
    color: white;
}

/* ==========================================
   ADMIN STYLES
   ========================================== */
.admin-body {
    background: #0a0a0a;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
}

.admin-container {
    padding: 20px;
}

.admin-card {
    background: rgba(15, 23, 42, 0.95);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.admin-card h3 {
    color: #10b981;
    margin-bottom: 15px;
}

.admin-table {
    background: transparent;
    color: #e2e8f0;
}

.admin-table th {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.admin-table td {
    border-color: rgba(16, 185, 129, 0.1);
}

.admin-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
}

.admin-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
}

.admin-btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
}

.admin-form-control {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
}

.admin-form-control:focus {
    background: #0f172a;
    border-color: #10b981;
    color: #e2e8f0;
}

.admin-badge {
    padding: 5px 10px;
    border-radius: 5px;
}

.admin-badge-admin {
    background: #ef4444;
}

.admin-badge-moderator {
    background: #f59e0b;
}

.admin-badge-user {
    background: #10b981;
}

/* Admin Template Styles */
.admin-template-body {
    background-color: #1a1a1a;
    color: #ffffff;
}

.admin-sidebar {
    background-color: #2d2d2d;
    min-height: 100vh;
}

.admin-sidebar .nav-link {
    color: #b0b0b0;
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: #3d3d3d;
    color: #ffffff;
}

.admin-sidebar .nav-link i {
    width: 20px;
}

.admin-main-content {
    background-color: #1a1a1a;
}

.admin-card-dark {
    background-color: #2d2d2d;
    border: 1px solid #3d3d3d;
}

.admin-card-header {
    background-color: #3d3d3d;
    border-bottom: 1px solid #4d4d4d;
}

.admin-table-dark {
    background-color: #2d2d2d;
}

.admin-table-dark th,
.admin-table-dark td {
    border-color: #3d3d3d;
}

.admin-form-control-dark {
    background-color: #3d3d3d;
    border: 1px solid #4d4d4d;
    color: #ffffff;
}

.admin-form-control-dark:focus {
    background-color: #4d4d4d;
    border-color: #5d5d5d;
    color: #ffffff;
}

.admin-btn-primary-dark {
    background-color: #7289da;
    border-color: #7289da;
}

.admin-btn-primary-dark:hover {
    background-color: #6278c7;
    border-color: #6278c7;
}

.admin-modal-content {
    background-color: #2d2d2d;
}

.admin-modal-header,
.admin-modal-footer {
    border-color: #3d3d3d;
}

.admin-badge-success {
    background-color: #43b581;
}

.admin-badge-danger {
    background-color: #f04747;
}

.admin-badge-warning {
    background-color: #faa61a;
}

.admin-badge-info {
    background-color: #7289da;
}

.admin-badge-primary {
    background-color: #7289da;
}

.admin-badge-secondary {
    background-color: #99aab5;
}

/* ==========================================
   EDITOR STYLES
   ========================================== */
/* Editor Styles */
#editor {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    width: 100%;
    outline: none;
    background: white;
    overflow-y: auto;
}

#editor:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Toolbar */
.toolbar {
    margin-bottom: 15px;
}

.toolbar button {
    min-width: 40px;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* Placeholder */
.editor-placeholder {
    color: #999;
    position: absolute;
    top: 15px;
    left: 15px;
    pointer-events: none;
}

/* Table Container */
.table-container {
    position: relative;
    display: inline-block;
    margin: 15px 0;
    width: 100%;
}

/* Table Styles */
.editor-table {
    border-collapse: collapse;
    width: 100%;
}

.editor-table td {
    min-width: 60px;
    min-height: 40px;
    padding: 10px;
    border: 1px solid #dee2e6;
    background: white;
}

/* Add Button Styles */
.table-add-btn {
    position: absolute;
    width: 22px;
    height: 22px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 2px 3px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.table-add-btn:hover {
    background: #0069d9;
}

/* Column Add Button */
.add-col-btn {
    top: 50%;
    right: -11px;
    transform: translateY(-50%);
}

/* Row Add Button */
.add-row-btn {
    left: 50%;
    bottom: -11px;
    transform: translateX(-50%);
}

.toolbar select {
    min-width: 120px;
    margin-right: 5px;
    margin-bottom: 5px;
    height: 38px;
}

#codeView {
    height: 100%;
    background-color: #1e1e1e;
    color: #d4d4d4;
    font-family: monospace;
    border: 1px solid #444;
}

.toolbar .btn.active {
    background-color: #007bff;
    color: white;
}

.border-custom {
    border: 1px dashed #eaeaea;
    position: relative;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 1rem;
}

.image-item {
    border: 2px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s;
    background: #fafbfc;
}

.image-item.selected {
    border-color: #007bff;
    box-shadow: 0 0 0 2px #007bff33;
}

.image-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.image-item .delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: #dc3545;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    cursor: pointer;
    padding: 0;
}

.upload-zone {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 30px 0;
    text-align: center;
    cursor: pointer;
    background: #f8f9fa;
    margin-bottom: 1rem;
}

.preview-container img {
    max-width: 100px;
    max-height: 80px;
    margin: 4px;
    border-radius: 4px;
    border: 1px solid #eee;
}

img[contenteditable="false"] {
    resize: both;
    overflow: auto;
    display: inline-block;
    min-width: 40px;
    min-height: 40px;
    max-width: 100%;
    vertical-align: bottom;
    cursor: nwse-resize;
}

.img-resize-wrapper { 
    position: relative; 
    display: inline-block; 
    vertical-align: bottom; 
}

.img-resize-wrapper img[contenteditable="false"] { 
    display: block; 
}

.img-resizer-handle { 
    user-select: none; 
}

.container-editor.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: white;
    padding: 10px;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    overflow-y: auto;
}

.container-editor.fullscreen #editor {
    height: calc(100vh - 120px) !important;
    min-height: calc(100vh - 120px) !important;
    margin-bottom: 20px;
}

.container-editor.fullscreen .toolbar {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10000;
    padding: 10px 0;
    margin-bottom: 10px !important;
}


.profile-btn:hover {
    background: #f2f2f2;
}


        .error-card {
            background: white;
            border-radius: 20px;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            max-width: 450px;
            margin: 0 auto;
            transition: transform 0.3s ease;
        }
        
        .error-card:hover {
            transform: translateY(-5px);
        }
        
        .error-icon {
            background: #ff4757;
            color: white;
            width: 100px;
            height: 100px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            font-size: 50px;
            box-shadow: 0 10px 20px rgba(255, 71, 87, 0.3);
        }
        
        .error-title {
            color: #333;
            font-weight: 500;
            margin: 25px 0 15px;
        }
        
        .error-message {
            color: #666;
            line-height: 1.6;
            margin-bottom: 25px;
        }
        
        .pulse {
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        
        .error-details {
            background: #f8f9fa;
            border-radius: 10px;
            padding: 15px;
            margin-top: 20px;
            font-size: 14px;
            color: #666;
        }
        
        .error-code {
            font-family: monospace;
            background: #e9ecef;
            padding: 2px 6px;
            border-radius: 4px;
        }

    /* Google Search Style */
    .list-group-item {
        border: none !important;
        border-radius: 0 !important;
        border-bottom: 1px solid #e0e0e0 !important;
        transition: background-color 0.2s ease;
    }
    
    .list-group-item:hover {
        background-color: #f8f9fa;
        text-decoration: none;
    }
    
    .list-group-item h5:hover {
        text-decoration: underline;
    }
    
    .page-item.active .page-link {
        background-color: #1a73e8;
        border-color: #1a73e8;
    }
    
    .page-link {
        color: #5f6368;
        border-color: #dadce0;
        min-width: 40px;
        text-align: center;
    }
    
    .page-link:hover {
        background-color: #f8f9fa;
        color: #1a0dab;
        border-color: #dadce0;
    }
    
    .badge {
        font-weight: 400;
    }
    
    /* Company card hover effect */
    .hover-shadow {
        transition: box-shadow 0.3s ease;
    }
    
    .hover-shadow:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    /* Google-like colors */
    .text-primary-google {
        color: #1a0dab;
    }
    
    .text-secondary-google {
        color: #5f6368;
    }
    
    .text-link-google {
        color: #006621;
    }
    
    /* Responsive adjustments */
    @media (max-width: 768px) {
        .list-group-item {
            padding: 20px 15px !important;
        }
        
        .list-group-item h5 {
            font-size: 16px !important;
        }
        
        .list-group-item .d-flex {
            flex-direction: column;
        }
        
        .flex-shrink-0 {
            margin-bottom: 15px;
            text-align: center;
        }
        
        .flex-shrink-0 img {
            width: 60px !important;
            height: 60px !important;
        }
        
        .flex-shrink-0.ms-3 {
            margin-left: 0 !important;
            margin-top: 15px;
            align-self: flex-end;
        }
    }


.masonry {
    column-count: 2;          /* 2 kolom desktop */
    column-gap: 16px;         /* jarak antar kolom */
}

@media (max-width: 768px) {
    .masonry {
        column-count: 1;      /* HP jadi 1 kolom */
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 16px;      /* jarak antar card vertical */
}

/* Multi-avatar container for admin chats */
.wa-multi-avatar-container {
    position: relative;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-multi-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--wa-bg-sidebar);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Hide avatars for group chat items */
.wa-chat-item[data-type="group"] .wa-chat-avatar {
    display: none !important;
}
