.responsive {
    width: 200px;               /* Lebar tombol tetap */
    white-space: nowrap;         /* Jangan wrap */
    font-size: clamp(10px, 2vw, 20px); /* Font menyesuaikan layar */
    text-overflow: ellipsis;     /* Opsional, untuk overflow */
    overflow: hidden;
}

.profile-container {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    z-index: 10;
}

.voice-message-notifyer {
    background-color: #ff0000;
    position: absolute;
    top: 3px;
    left: 35px;
    line-height: 16px;
    padding-left: 4px;
    padding-right: 4px;
    font-size: 11px;
    border-radius: 20px;
    color: #FFFFFF;
    font-size: 11px;
    text-align: center;
    display: none;
}

.buddy-icon {
    border-radius: 50px;
    width: 36px;
    height: 36px;
    background-size: 36px;
    float: left;
}

.settings-menu {
    display: block;
    float: right;
    padding-right: 10px;
}

.round-button {
    margin-top: 5px;;
    border-radius: 100px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    padding: 0px;
    font-size: 16px;
    box-shadow: none;
    min-width: 0px;
}

.round-button:hover {
    animation: zoom 0.3s forwards;
}

.contact {
    padding: 5px;
    height: 38px;
    position: relative;
    cursor: pointer;
}

.contact-name-text {
    margin-left: 50px;
    font-size: 15px;
    margin-right: 25px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Gabungkan semua properti yang sama di satu tempat */
[class^="dot-"] {
    display: inline-block;
}

[class^="dot-"]:before {
    content: "\f098"; /* Ikon default */
    font-family: FontAwesome;
}

/* Tentukan warnanya berdasarkan class spesifik */
.dot-online:before        { color: #59df59; }
.dot-offline:before       { color: #666666; }
.dot-ringing:before       { color: #ff7300; }
.dot-in-use:before        { color: #b40202; }
.dot-donot-disturb:before { color: #ff6600; }
.dot-ready:before         { color: #3fbd3f; }
.dot-on-hold:before       { color: #99fd99; }

/* Untuk yang ikonnya berbeda, timpah content-nya di sini */
.dot-failed:before { 
    content: "\f1eb"; 
    color: #c70000; 
}


.presence-text {
    margin-left: 50px;
    margin-top: 0px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#offcanvasDialer .offcanvas-body {
    padding: 0.75rem;
}

#offcanvasDialer .container-fluid {
    height: 100%;
}

.dialer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem;
}

.dialer-header-left {
    flex: 0 0 auto;
}

.dialer-header-center {
    flex: 1 1 auto;
    min-width: 120px;
    display: flex;
    justify-content: center;
}

.dialer-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex: 0 0 auto;
}

#btnSettings {
    white-space: nowrap;
}

.dialer-settings-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.dialer-status-icon {
    min-width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dialer-status-icon i {
    font-size: 1rem;
}

.dialer-panel {
    border: 1px solid rgba(31, 35, 40, 0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.dialer-panel .card-header,
.dialer-panel .card-footer {
    background: linear-gradient(180deg, #f7f7f8 0%, #eceef1 100%);
}

.dialer-panel .card-footer {
    padding: 0.75rem 1rem;
}

.dialer-panel-body {
    padding: 0.75rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 244, 247, 0.98) 100%),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.9), rgba(229, 232, 237, 0.92));
}

.dialer-phone-input {
    min-height: 46px;
    border: 1px solid #cdd3db;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #313741;
    box-shadow: inset 0 2px 6px rgba(15, 23, 42, 0.08);
}

.dialer-panel-body .mb-3 {
    margin-bottom: 0.75rem !important;
}

.dialer-phone-input:focus {
    border-color: var(--app-bg);
    box-shadow: 0 0 0 0.2rem rgba(29, 104, 104, 0.18), inset 0 2px 6px rgba(15, 23, 42, 0.08);
}

.dialer-actions,
.dialer-input-actions {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
}

.dialer-actions .btn,
.dialer-input-actions .btn {
    min-height: 40px;
    border-radius: 10px;
}

.dialer-panel-body .row.mt-3 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
    margin-top: 0.75rem !important;
}

.dialer-layer {
    display: none;
}

.dialer-layer.active {
    display: block;
}

.dialer-layer-incall {
    padding: 0.75rem;
    border-radius: 14px;
    color: #2e3440;
}

.dialer-incall-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.dialer-incall-avatar {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 3px solid rgba(31, 41, 55, 0.18);
    background: linear-gradient(180deg, #f8fafc 0%, #e5e7eb 100%);
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.dialer-incall-number {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #2e3440;
}

.dialer-incall-duration {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #2e3440;
}

#btnHangupInCall {
    min-height: 50px;
    width: auto;
    min-width: 140px;
    border-radius: 999px;
    font-size: 1.15rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    padding-left: 2rem;
    padding-right: 2rem;
}

#dialerLayerInCall .btn:not(#btnHangupInCall) {
    min-height: 62px;
    width: 62px;
    min-width: 62px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

#dialerLayerInCall #btnMute,
#dialerLayerInCall #btnTransfer,
#dialerLayerInCall #btnHold {
    background: rgba(31, 41, 55, 0.08);
    color: #364152;
    border-color: rgba(31, 41, 55, 0.2);
}

#dialerLayerInCall #btnMute.btn-danger,
#dialerLayerInCall #btnHold.btn-danger {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

#dialerLayerInCall #btnAddContactInCall,
#dialerLayerInCall #btnChatInCall,
#dialerLayerInCall #btnKeypadInCall {
    background: rgba(31, 41, 55, 0.08);
    color: #364152;
    border-color: rgba(31, 41, 55, 0.2);
}

.dialer-incall-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.dialer-incall-action span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #4b5563;
    text-align: center;
    line-height: 1.1;
}

.dialpad-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.dialpad-modal-key {
    min-height: 62px;
    border-radius: 10px;
}

.dialpad-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #8a9098;
    border-radius: 14px;
    overflow: hidden;
    background: #8f949b;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 8px 18px rgba(15, 23, 42, 0.1);
}

.dialpad-key {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 74px;
    padding: 0.55rem 0.35rem 0.5rem;
    border: 0;
    border-right: 1px solid rgba(85, 92, 102, 0.45);
    border-bottom: 1px solid rgba(85, 92, 102, 0.45);
    background:
        linear-gradient(180deg, #fbfbfc 0%, #edf0f4 52%, #d9dde2 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        inset 0 -2px 3px rgba(88, 96, 108, 0.15),
        inset 0 14px 18px rgba(255, 255, 255, 0.35);
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.dialpad-key:nth-child(3n) {
    border-right: 0;
}

.dialpad-key:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.dialpad-key::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 35%);
    pointer-events: none;
}

.dialpad-key:hover {
    background:
        linear-gradient(180deg, #ffffff 0%, #f3f6fa 52%, #dee3e8 100%);
}

.dialpad-key:focus-visible {
    z-index: 1;
    outline: 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 0.2rem rgba(29, 104, 104, 0.2);
}

.dialpad-key:active,
.dialpad-key.is-active {
    background: linear-gradient(180deg, var(--app-bg) 0%, var(--app-bg-hover) 100%);
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transform: translateY(1px);
}

.dialpad-key:active .dialpad-key-number,
.dialpad-key:active .dialpad-key-letters,
.dialpad-key.is-active .dialpad-key-number,
.dialpad-key.is-active .dialpad-key-letters {
    color: #ffffff;
    text-shadow: none;
}

.dialpad-key-number {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 2.05rem;
    line-height: 1;
    font-weight: 700;
    color: #40454d;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 2px 4px rgba(0, 0, 0, 0.12);
}

.dialpad-key-letters {
    position: relative;
    z-index: 1;
    display: block;
    min-height: 0.95rem;
    margin-top: 0.1rem;
    font-size: 0.76rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #8f949b;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dialpad-key-sub .dialpad-key-number {
    font-size: 2.05rem;
    font-weight: 700;
    color: #6b7280;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 2px 4px rgba(0, 0, 0, 0.12);
}

.dialpad-key-sub .dialpad-key-letters,
.dialpad-key[data-key="*"] .dialpad-key-letters,
.dialpad-key[data-key="0"] .dialpad-key-letters,
.dialpad-key[data-key="#"] .dialpad-key-letters {
    display: none;
}

.dialpad-key-sub:active .dialpad-key-number,
.dialpad-key-sub.is-active .dialpad-key-number {
    color: #ffffff;
}

@media (max-width: 480px) {
    .dialer-incall-avatar {
        width: 72px;
        height: 72px;
        font-size: 1.75rem;
    }

    .dialer-incall-number {
        font-size: 1.2rem;
    }

    .dialer-incall-duration {
        font-size: 1.55rem;
    }

    .dialpad-key {
        min-height: 68px;
    }

    .dialpad-key-number {
        font-size: 1.85rem;
    }
}