:root {
    --bg-main: #ffffff;
    --bg-sidebar: #f9f9f9;
    --bg-hover: #ececec;
    --bubble-user: #f4f4f4;
    --bubble-ai: transparent;
    --text-main: #0d0d0d;
    --text-muted: #676767;
    --border-color: #e5e5e5;
    --accent-black: #000000;
    --app-height: 100dvh;
}


@font-face {
    font-family: 'Yazı';
    src: url('fonts/Poppins-Light.ttf') format('truetype');
    font-style: normal;
}

@font-face {
    font-family: 'Başlık';
    src: url('fonts/Boldonse-Regular.ttf') format('truetype');
    font-style: normal;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Yazı', sans-serif;

}

.page {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

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

.sidebar {
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    height: 100vh;
    width: 25%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.sidecontent {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 10px;


}

:-webkit-scrollbar-track {
    margin-top: 100px;
    margin-bottom: 50px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-black);
}

::-webkit-scrollbar:hover {
    background: var(--bg-main);
}

/* ── Sidebar Bottom Bar ─────────────────────────────────────────────────── */
.sidebar-bottom-bar {
    display: flex;
    align-items: stretch;
    border-top: 1px solid var(--border-color);
    background: var(--bg-main);
    flex-shrink: 0;
}

.sidebar-bottom-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 16px 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Yazı';
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    transition: background 0.22s ease, color 0.22s ease, transform 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar-bottom-btn svg {
    transition: color 0.22s ease, fill 0.22s ease, stroke 0.22s ease;
}

.sidebar-bottom-btn:hover {
    background: #000;
    color: #fff;
    transform: translateY(-1px);
}

#sidebar-appts-btn:hover svg {
    color: #fff !important;
    stroke: #fff !important;
}

#logout-btn:hover svg {
    color: #fff !important;
    fill: #fff !important;
}

.sidebar-bottom-divider {
    width: 1px;
    background: var(--border-color);
    margin: 8px 0;
    flex-shrink: 0;
}

.sidebar .chat_header {
    font-family: 'Başlık';
    border-bottom: 1px solid var(--border-color);
    padding: 10px;
    margin: 0;
    text-align: center;
    font-size: 25px;
    color: var(--text-main);
}

.chat_header h2 {
    margin: 0;
    padding: 0;
    font-size: 26px;
    color: var(--text-main);
    word-break: break-word;
}

.chat_search {
    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 1px solid var(--border-color);
    border-radius: 3rem;
    height: 35px;
    padding: 0 10px;
    margin: 10px 0;
}

.search_input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Yazı';
    font-size: 14px;
    height: 100%;
}

.chats {

    overflow-y: auto;
}

.chat-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;

    height: 75px;
    padding: 0 15px;
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
    width: 100%;
}


.chat-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chat-link:hover {
    background-color: var(--bg-hover);
}

.chat-link.active-chat {
    background-color: #ececec;
}


.chat-name {
    color: var(--text-main);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 1px;
}

.chat-last-msg {
    color: var(--text-muted);
    font-size: 13px;
}

.content {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

.content_inside {
    background-color: var(--bg-main);
    flex: 1;
    padding: 20px;
    overflow-y: auto;


}

.content_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    height: 89.5px;
    border-bottom: 1px solid var(--border-color);
}

.back {
    padding-right: 10px;
    align-items: center;
    display: flex;
}

.content .header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.header-profile-circle {
    width: 38px;
    height: 38px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.user-info h1 {
    font-family: 'Yazı';
    font-size: 25px;
    font-weight: 600;
    margin: 10px;
    color: var(--text-main);
}

svg {
    height: 20px;
    width: 20px;
    fill: var(--text-main);
    cursor: pointer;
    display: block;
}

.message_box {

    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-main);
    width: 90%;
    max-width: 1200px;

    padding: 0 20px;
    height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 3rem;
    margin: 0 auto 30px auto;



}

.message_box_inner {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.message_input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Yazı';
    font-size: 16px;
    height: 100%;
}

.send-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    color: var(--text-main);
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 10px;
}



.message-item {
    position: relative;
    margin-bottom: 10px;
    margin-left: 30px;
    padding: 10px;
    padding-right: 30px;
    padding-bottom: 22px;
    border-radius: 10px;
    width: fit-content;
    max-width: 70%;
    word-break: break-word;
}

.message-time {
    position: absolute;
    bottom: 4px;
    right: 10px;
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}

.msg-dropdown-btn {
    position: absolute;
    top: 30%;
    right: 8px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    display: none;
    fill: #666;
    background: transparent;
    border: none;
    padding: 0;
    font-family: 'Başlık';
}

.message-item:hover .msg-dropdown-btn {
    display: block;
}

.msg-dropdown-menu {
    position: absolute;
    top: 25px;
    right: 5px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
    overflow: hidden;
}

.msg-dropdown-menu button {
    background: transparent;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    color: black;
    font-family: 'Yazı';
    font-size: 14px;
    width: 100%;
    text-align: left;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.msg-dropdown-menu button:hover {
    background: #000;
    color: #fff;
}


.message-item.selectable {
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s, border 0.2s;
}

.message-item.selectable:hover {
    opacity: 0.8;
}

.message-item.selected {
    border: 2px solid #007bff !important;
    background-color: #e6f2ff !important;
}

.selection-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-main);
    width: 90%;
    max-width: 1200px;
    padding: 0 20px;
    height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 3rem;
    margin: 0 auto 30px auto;
}

.selection-bar button {
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Yazı';
    font-size: 14px;
}

.btn-delete-selected {
    background-color: #ff4d4d;
    color: white;
    transition: all 0.2s ease;
}

.btn-delete-selected:hover {
    background-color: white;
    color: #ff4d4d;
    box-shadow: inset 0 0 0 2px #ff4d4d;
}

.btn-cancel-selection {
    background-color: #ccc;
    color: black;
    transition: all 0.2s ease;
}

.btn-cancel-selection:hover {
    background-color: black;
    color: white;
}


.sidebar-tabs {
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.sidebar-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px;
    font-family: 'Başlık';
    font-size: 16px;
    cursor: pointer;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.sidebar-tab.active {
    color: var(--text-main);
    border-bottom: 2px solid var(--accent-black);
}

.sidebar-tab:hover {
    color: var(--text-main);
}

.add-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Başlık';
    color: #333;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.add-chat-btn:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #000;
}

.add-chat-btn svg {
    stroke: currentColor;
    fill: none;
    transition: all 0.3s ease;
}

.add-chat-btn:hover svg {
    transform: scale(1.1);
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
}


.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;


    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #999;
    transition: 0.2s;
}

.close-modal:hover {
    color: #333;
}


.modal-content h3 {
    margin-bottom: 25px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Başlık';
}

.modal-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    text-align: left;
    padding-left: 5px;
}


.link-box {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px dashed #cbd5e0;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 20px;
}

#modal-my-link {
    flex: 1;
    font-size: 12px;
    color: #4a5568;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

#modal-copy-btn {
    background: #edf2f7;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

#modal-copy-btn:hover {
    background: #e2e8f0;
}


.divider {
    display: flex;
    align-items: center;
    color: #a0aec0;
    font-size: 13px;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider:not(:empty)::before {
    margin-right: 15px;
}

.divider:not(:empty)::after {
    margin-left: 15px;
}


#modal-add-input,
#modal-group-name-input,
#modal-join-group-input,
#convert-group-name-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #edf2f7;
    border-radius: 14px;
    font-size: 15px;
    font-family: 'Yazı', sans-serif;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #1a202c;
}

#modal-add-input:focus,
#modal-group-name-input:focus,
#modal-join-group-input:focus,
#convert-group-name-input:focus {
    border-color: #000;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

#modal-add-input::placeholder,
#modal-group-name-input::placeholder,
#modal-join-group-input::placeholder,
#convert-group-name-input::placeholder {
    color: #a0aec0;
    font-style: italic;
}

#modal-confirm-btn,
#modal-create-group-btn,
#modal-join-group-btn {
    width: 100%;
    padding: 14px;
    background: #000;
    color: #fff;
    border: 2px solid transparent;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#modal-confirm-btn:hover,
#modal-create-group-btn:hover,
#modal-join-group-btn:hover,
#start-selected-call-btn:hover {
    background: #fff;
    color: #000;
    border-color: #000;
}

#start-selected-call-btn {
    width: 100%;
    padding: 14px;
    background: #000;
    color: #fff;
    border: 2px solid transparent;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-copy-btn-style {
    background: #edf2f7;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.modal-copy-btn-style:hover {
    background: #e2e8f0;
}

#group-invite-link {
    flex: 1;
    font-size: 12px;
    color: #4a5568;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

.members-list {
    max-height: 180px;
    overflow-y: auto;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 15px;
    text-align: left;
    color: #333;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.participants-list {
    max-height: 250px;
    overflow-y: auto;
    margin: 15px 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.participants-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.participants-list label:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.participants-list input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #000;
    cursor: pointer;
}

.sender-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 3px;
    color: #555;
}

.message-search-bar {
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-main);
}

.message-search-input {
    flex: 1;
    height: 38px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0 15px;
    outline: none;
    font-family: 'Yazı';
    font-size: 14px;
}

.message-search-input:focus {
    border-color: var(--accent-black);
}

#message-search-count {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

#message-search-close {
    border: none;
    background: #f0f0f0;
    border-radius: 18px;
    padding: 8px 14px;
    cursor: pointer;
    font-family: 'Yazı';
}

#message-search-close:hover {
    background: #e0e0e0;
}

.message-item.search-hidden {
    opacity: 0.25;
}

.message-item.search-match {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.message-item.search-match.active-match {
    outline: 3px solid #ffc107;
    background-color: #fff3cd !important;
}

.chat-link.sidebar-search-match {
    background-color: #fff3cd;
}

.chat-link.sidebar-search-active {
    background-color: #ffeeba;
    box-shadow: inset 4px 0 0 #ffc107;
}



.call-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    left: auto;
    bottom: auto;
    width: auto;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    pointer-events: none;
    transition: none;
}

.call-overlay.dragging {
    transition: none !important;
    user-select: none;
}

.call-panel {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 250px;
    pointer-events: auto;
    border: 1px solid var(--border-color);
    animation: callPanelIn 0.3s ease-out;
    cursor: grab;
    user-select: none;
}

.call-panel:active {
    cursor: grabbing;
}

.call-panel .call-btn-group,
.call-panel .call-btn {
    cursor: pointer;
}

@keyframes callPanelIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.call-panel-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-panel-icon.active {
    animation: pulseGreen 1.5s ease-in-out infinite;
}

@keyframes pulseGreen {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
    }
}

.call-panel-status {
    font-size: 14px;
    color: #888;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.call-panel-name {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.call-timer {
    font-size: 32px;
    font-weight: 300;
    color: #333;
    font-variant-numeric: tabular-nums;
}

.call-btn-group {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.call-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.call-btn:hover {
    transform: scale(1.05);
}

.call-btn-accept {
    background: #4CAF50;
    color: #fff;
    border: 2px solid transparent;
}

.call-btn-accept:hover {
    background: #fff;
    color: #4CAF50;
    border-color: #4CAF50;
}

.call-btn-reject {
    background: #f44336;
    color: #fff;
    border: 2px solid transparent;
}

.call-btn-reject:hover {
    background: #fff;
    color: #f44336;
    border-color: #f44336;
}

.call-btn-mute {
    background: #eee;
    color: #333;
    border: 2px solid transparent;
}

.call-btn-mute:hover {
    background: #333;
    color: #eee;
}

.call-btn-mute.muted {
    background: #ff9800;
    color: #fff;
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar-wrapper {
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 100;
}

.profile-avatar-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: #ddd;
    border: 2px solid var(--border-color);
    background-size: cover;
    background-position: center;
    transition: border-color 0.2s;
}

.profile-avatar-wrapper:hover .profile-avatar-circle {
    border-color: #999;
}

.profile-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.profile-avatar-wrapper:hover .profile-avatar-overlay {
    opacity: 1;
}

.profile-avatar-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-avatar-menu {
    position: absolute;
    top: 52px;
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 200;
    display: none;
    min-width: 150px;
    overflow: hidden;
}

.profile-avatar-menu button {
    background: transparent;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    color: var(--text-main);
    font-family: 'Yazı';
    font-size: 14px;
    width: 100%;
    text-align: left;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.profile-avatar-menu button:hover {
    background: #000;
    color: #fff;
}

.profile-avatar-menu button:last-child {
    color: #e53935;
}

.profile-avatar-menu button:last-child:hover {
    background: #e53935;
    color: #fff;
}

/* --- Mobile Responsive Improvements --- */
@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        height: 100%;
        margin: 0;
        overflow: hidden;
    }

    .page {
        width: 100vw;
        height: var(--app-height, 100dvh) !important;
        max-height: var(--app-height, 100dvh) !important;
        overflow: hidden;
        position: relative;
    }

    .sidebar {
        width: 100% !important;
        height: var(--app-height, 100dvh) !important;
        max-height: var(--app-height, 100dvh) !important;
        position: absolute;
        left: 0;
        top: 0;
        z-index: 20;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: #fff;
        display: flex !important;
        transform: translateX(0);
    }

    body.chat-open .sidebar {
        transform: translateX(-100%);
        pointer-events: none;
    }

    /* .chat-area maps to .content in index.html */
    .content {
        width: 100% !important;
        height: var(--app-height, 100dvh) !important;
        max-height: var(--app-height, 100dvh) !important;
        position: absolute !important;
        left: 0;
        top: 0;
        z-index: 10;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex !important;
        flex-direction: column;
        background: #fff;
        overflow: hidden;
    }

    body.chat-open .content {
        transform: translateX(0);
        z-index: 30;
    }

    .content_header {
        height: 64px;
        min-height: 64px;
        flex-shrink: 0;
        padding: 0 15px !important;
    }

    .content_inside {
        flex: 1;
        overflow-y: auto;
        padding: 14px;
        /* No longer need massive padding-bottom as the input is now in-flow */
        padding-bottom: 20px !important;
    }

    .message_box {
        position: relative !important;
        /* Switch from fixed to relative/in-flow */
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 10px 12px 14px 12px !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        z-index: 10 !important;
        pointer-events: auto !important;
    }

    .message_box_inner {
        width: 100%;
        max-width: 600px;
        height: 50px;
        margin: 0 auto;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: 25px;
        padding: 0 12px 0 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        pointer-events: auto !important;
    }

    #send-message-form {
        width: 100% !important;
        min-width: 0;
    }

    .message_input {
        min-width: 0;
        flex: 1;
        font-size: 16px;
        /* Prevent auto-zoom on iOS */
    }

    #send-button {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .send-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
        margin-left: 0 !important;
        flex-shrink: 0;
    }

    .user-info h1 {
        font-size: 18px;
    }

    #back-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-right: 10px;
    }

    .modal-content {
        width: 85% !important;
        padding: 20px !important;
    }

    #no-chat-selected {
        display: none !important;
    }
}

/* ── UI Animations ───────────────────────────────────────────────────────── */

@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Group Admin Controls --- */
.admin-badge {
    background: #000;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-item {
    transition: background 0.2s;
}

.member-item:hover {
    background: #fafafa;
}

.member-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 34px;
}

.member-menu-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.member-menu-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #222;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.member-menu-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.member-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 150px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    z-index: 9999;
}

.member-dropdown-menu.open {
    display: block;
}

.member-dropdown-item {
    width: 100%;
    border: none;
    background: transparent;
    color: #222;
    cursor: pointer;
    padding: 10px 12px;
    text-align: left;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
}

.member-dropdown-item:hover {
    background: #f1f5f9;
}

.member-dropdown-item.danger {
    color: #e03131;
}

.member-dropdown-item.danger:hover {
    background: #fff0f0;
}

/* Modal açılış animasyonu */
.modal[style*="flex"] .modal-content {
    animation: modalScaleIn 0.2s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}

/* Mesaj balonları animasyonu */
.message-item.sent {
    animation: slideInRight 0.18s ease both;
}

.message-item.received {
    animation: slideInLeft 0.18s ease both;
}

/* Chat listesi satırları */
.chat-link {
    animation: fadeSlideUp 0.15s ease both;
}

/* --- Call Participants UI --- */
.call-participants-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    width: 100%;
    max-width: 350px;
}

.participant-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 80px;
    padding-bottom: 10px;
}

.participant-volume-control {
    padding: 10px 0; /* Increase hit area around the slider */
    width: 100%;
}

.participant-volume-control input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: #e2e8f0;
    border-radius: 10px;
    outline: none;
    height: 6px; /* Slightly thicker */
}

/* Larger thumb for better touch control */
.participant-volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px; 
    height: 18px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    margin-top: -1px; /* Center alignment */
}

/* For Firefox */
.participant-volume-control input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.participant-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    border: 2px solid #4CAF50;
    flex-shrink: 0;
}

.participant-name {
    font-size: 11px;
    font-weight: 600;
    color: #444;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* --- Join Call Button --- */
.join-call-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 20px;
    font-family: 'Başlık';
    font-size: 12px;
    cursor: pointer;
    margin-left: 15px;
    transition: all 0.3s ease;
    animation: pulse-border 2s infinite;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.join-call-btn:hover {
    background: #43a047;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
}

.join-call-btn svg {
    fill: white;
    stroke: white;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.call-panel-remaining {
    font-size: 14px;
    font-weight: 600;
    color: #f44336;
    background: #ffebee;
    padding: 4px 12px;
    border-radius: 12px;
    margin-top: -5px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Call Panel Optimization --- */
@media (max-width: 768px) {
    .call-panel {
        padding: 12px 15px;
        min-width: 180px;
        gap: 8px;
        border-radius: 20px;
    }

    .call-panel-icon {
        width: 45px;
        height: 45px;
    }

    .call-panel-icon svg {
        width: 25px;
        height: 25px;
    }

    .call-panel-name {
        font-size: 16px;
    }

    .call-panel-status {
        font-size: 10px;
    }

    .call-timer {
        font-size: 22px;
    }

    .call-btn-group {
        gap: 8px;
        margin-top: 4px;
    }

    .call-btn {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 15px;
    }

    .call-panel-remaining {
        font-size: 11px;
        padding: 2px 8px;
    }
}
/* --- File Attachment UI --- */
.message-file-attachment {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 250px;
}

.message-file-attachment.sent-attachment {
    background: #d4edda;
    border-color: #c3e6cb;
}

.file-icon-wrapper {
    background: #fff;
    border-radius: 5px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.file-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.file-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 11px;
    color: #666;
}

.file-download-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    margin-left: auto;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.file-download-btn:hover {
    background: rgba(0,0,0,0.05);
}

.image-attachment {
    max-width: 250px;
    border-radius: 8px;
    margin-top: 5px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}

#attach-file-btn:hover {
    color: #000 !important;
}

/* Video Call Full-screen Overlay Theme & Layout */
.active-call-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #060911; /* Extremely sleek, solid near-black dark background */
    z-index: 10000;
    display: flex;
    flex-direction: row;
    font-family: 'Outfit', sans-serif;
    color: #f8fafc;
    overflow: hidden;
}

.call-video-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.overlay-header {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.call-timer {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'JetBrains Mono', monospace;
}

.call-expiry-countdown {
    color: #fca5a5;
    font-size: 13.5px;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 18px;
    border-radius: 30px;
    border: 1.5px solid rgba(239, 68, 68, 0.35);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 12;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
}

.call-expiry-countdown svg {
    width: 15px;
    height: 15px;
    color: #ef4444;
}

/* Redesigned Leave Call Button */
.active-call-overlay .call-btn-reject {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1.5px solid rgba(239, 68, 68, 0.3);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.active-call-overlay .call-btn-reject:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.45);
}

.active-call-overlay .call-btn-reject:active {
    transform: translateY(0);
}

/* Perfect Uniform Grid Participant Layout */
.participants-grid {
    display: grid;
    gap: 24px;
    padding: 100px 40px 140px 40px;
    justify-content: center;
    align-content: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.participant-item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-width: 600px;
    background: #0f1422;
    border: 1.5px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.participant-item:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.participant-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.participant-name-tag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* CSS Grid Rules to Guarantee Uniformity dynamically using :has() */
.participants-grid:has(> :nth-child(1):last-child) {
    grid-template-columns: minmax(320px, 680px);
}

.participants-grid:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.participants-grid:has(> :nth-child(3):last-child),
.participants-grid:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.participants-grid:has(> :nth-child(5)) {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
}

/* Animated Black & White Controls Bar */
.overlay-controls {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 28px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.overlay-controls .lobby-ctrl-btn {
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    
    /* Inactive State (Default / Crossed Out style / Off) */
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
}

/* Active State (ON / Enabled) - Premium High Contrast Black & White */
.overlay-controls .lobby-ctrl-btn.active {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Hover and Animation micro-interactions */
.overlay-controls .lobby-ctrl-btn:hover {
    transform: translateY(-4px) scale(1.08);
}

/* Hovering when inactive turns it brighter white */
.overlay-controls .lobby-ctrl-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

/* Hovering when active creates sleek shadow */
.overlay-controls .lobby-ctrl-btn.active:hover {
    background: #e2e8f0 !important;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5);
}

.overlay-controls .lobby-ctrl-btn:active {
    transform: translateY(-1px) scale(0.96);
}

.overlay-controls .lobby-ctrl-btn svg {
    width: 26px;
    height: 26px;
    transition: transform 0.3s ease;
}

.overlay-controls .lobby-ctrl-btn:hover svg {
    transform: scale(1.05);
}

/* Sleek Red Badge for Call Chat */
.call-chat-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #ef4444;
    border: 2px solid #000000;
    border-radius: 50%;
    display: none;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: badgePulse 1.5s infinite ease-in-out;
}

@keyframes badgePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}


/* Full Screen Lobby Override */
#call-lobby-modal {
    background-color: #111 !important;
    display: none;
    position: fixed;
    z-index: 10002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#call-lobby-modal .modal-content {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #1e1e1e !important;
    border: none !important;
    padding: 40px !important;
    box-sizing: border-box;
}

#call-lobby-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
}

#call-lobby-modal #lobby-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

#call-lobby-modal .lobby-video-container {
    width: 100% !important;
    max-width: 800px !important;
    height: 60vh !important;
    background: #000;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#call-lobby-modal video {
    height: 100% !important;
    object-fit: cover;
    border-radius: 16px;
}

#lobby-join-btn {
    width: 300px !important;
    font-size: 1.2rem !important;
    padding: 15px !important;
    border-radius: 30px !important;
    margin-top: 40px !important;
}

/* Video Grid Layout Fix */
#active-call-overlay #participants-grid {
    display: grid !important;
    gap: 20px !important;
    padding: 80px 20px 110px 20px !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box;
    justify-content: center !important;
    align-content: center !important;
    align-items: center !important;
    justify-items: center !important;
}

#active-call-overlay .participant-item {
    position: relative !important;
    width: 100% !important;
    max-width: 800px !important;
    aspect-ratio: 16 / 9 !important;
    background: #0f1422 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    min-height: 0 !important;
}

#active-call-overlay .participant-item video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 16px !important;
}

/* Dynamic Grid Columns and Heights based on participant counts */
#active-call-overlay #participants-grid:has(> :nth-child(1):last-child) {
    grid-template-columns: minmax(320px, 750px) !important;
}
#active-call-overlay #participants-grid:has(> :nth-child(1):last-child) .participant-item {
    max-height: 60vh !important;
}

#active-call-overlay #participants-grid:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
}
#active-call-overlay #participants-grid:has(> :nth-child(2):last-child) .participant-item {
    max-height: 50vh !important;
}

#active-call-overlay #participants-grid:has(> :nth-child(3):last-child),
#active-call-overlay #participants-grid:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(240px, 1fr)) !important;
}
#active-call-overlay #participants-grid:has(> :nth-child(3):last-child) .participant-item,
#active-call-overlay #participants-grid:has(> :nth-child(4):last-child) .participant-item {
    max-height: 32vh !important; /* Perfect height restriction to prevent overflow when 3-4 users are present */
}

#active-call-overlay #participants-grid:has(> :nth-child(5)) {
    grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
}
#active-call-overlay #participants-grid:has(> :nth-child(5)) .participant-item {
    max-height: 20vh !important; /* Ensures 3 rows fit perfectly within viewport height without any vertical overflow */
}

/* ===== Start Meeting Button ===== */
.start-meeting-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 7px 14px;
    font-family: 'Yazı', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    letter-spacing: 0.3px;
}

.start-meeting-btn svg {
    fill: #fff;
    flex-shrink: 0;
}

.start-meeting-btn:hover {
    background: #222;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.28);
}

.start-meeting-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

/* ===== Join Call Button ===== */
.join-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #000;
    color: #fff;
    border: 2px solid #000;
    border-radius: 20px;
    padding: 7px 14px;
    font-family: 'Yazı', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    letter-spacing: 0.3px;
}

.join-call-btn svg {
    fill: #fff;
    stroke: #fff;
    flex-shrink: 0;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.join-call-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.join-call-btn:hover svg {
    fill: #000;
    stroke: #000;
}

.join-call-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* ══════════════════════════════════════════════════
   MODERN PROFILE MODAL
══════════════════════════════════════════════════ */

.profile-modal-content {
    padding: 0 !important;
    overflow: hidden;
    max-width: 400px !important;
    width: 90% !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18) !important;
    animation: profileModalIn 0.32s cubic-bezier(0.34, 1.3, 0.64, 1) both !important;
}

@keyframes profileModalIn {
    from { opacity: 0; transform: translate(-50%, -46%) scale(0.9); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Close button */
.profile-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.25);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.2s, transform 0.15s;
    z-index: 10;
}
.profile-modal-close:hover {
    background: rgba(255,255,255,0.45);
    transform: scale(1.1) rotate(90deg);
}

/* Banner gradient area */
.profile-modal-banner {
    background: linear-gradient(135deg, #111 0%, #333 100%);
    padding: 36px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
}

/* Avatar ring with pulse glow */
.profile-modal-avatar-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    box-shadow: 0 0 0 0 rgba(255,255,255,0.4);
    animation: avatarRingPulse 3s ease-in-out infinite;
}

@keyframes avatarRingPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.25); }
    50%       { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}

.profile-modal-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    background-size: cover;
    background-position: center;
    border: 3px solid #111;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Photo action buttons */
.profile-modal-avatar-actions {
    display: flex;
    gap: 8px;
}

.profile-photo-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    border: none;
    font-family: 'Yazı';
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s, opacity 0.18s;
}
.profile-photo-btn:hover { transform: scale(1.05); opacity: 0.9; }

.upload-btn {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
}
.upload-btn:hover { background: rgba(255,255,255,0.28) !important; }

.remove-btn {
    background: rgba(239,68,68,0.2);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,0.35);
    backdrop-filter: blur(4px);
}
.remove-btn:hover { background: rgba(239,68,68,0.35) !important; color: #fff !important; }

/* Form body */
.profile-modal-body {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-form-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #888;
}

.profile-form-input {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 0 14px;
    font-family: 'Yazı';
    font-size: 14px;
    color: var(--text-main);
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.profile-form-input:focus {
    border-color: #111;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.07);
}

/* Save button */
.profile-save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    background: #111;
    color: #fff;
    border: 2px solid #111;
    border-radius: 14px;
    font-family: 'Yazı';
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.22s, color 0.22s, transform 0.15s;
    margin-top: 4px;
    letter-spacing: 0.3px;
}
.profile-save-btn:hover {
    background: #fff;
    color: #111;
    transform: translateY(-1px);
}

/* Admin dashboard button */
.profile-admin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #1a202c;
    border: 2px solid #1a202c;
    border-radius: 14px;
    font-family: 'Yazı';
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.22s, color 0.22s, transform 0.15s;
    letter-spacing: 0.3px;
}
.profile-admin-btn:hover {
    background: #1a202c;
    color: #fff;
    transform: translateY(-1px);
}

/* Redesigned Secure Link Button */
.secure-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: #111;
    color: #fff !important;
    border: none;
    border-radius: 14px;
    font-family: 'Yazı';
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.secure-link-btn svg {
    color: #fff !important;
    fill: #fff !important;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.secure-link-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* Inline Action Icon Buttons (replaces dropdown) */
.action-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-icon-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-1.5px);
}

.action-icon-btn.danger {
    color: #ef4444;
    background: #fef2f2;
}

.action-icon-btn.danger:hover {
    background: #fee2e2;
    color: #b91c1c;
}

/* ══════════════════════════════════════════════════
   PREMIUM GROUP PROFILE STYLING AND ANIMATIONS
══════════════════════════════════════════════════ */

/* Scrollbar styles for the body container and member listing */
.profile-modal-body::-webkit-scrollbar,
#group-members-list::-webkit-scrollbar {
    width: 6px;
}
.profile-modal-body::-webkit-scrollbar-track,
#group-members-list::-webkit-scrollbar-track {
    background: transparent;
}
.profile-modal-body::-webkit-scrollbar-thumb,
#group-members-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 20px;
    transition: background 0.2s;
}
.profile-modal-body::-webkit-scrollbar-thumb:hover,
#group-members-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.28);
}

/* Redesigned Group Modal Body Container */
.group-modal-body {
    padding: 24px 24px 28px !important;
}

/* Elegant borders & styling for the members list frame */
#group-members-list.members-list {
    background: #fafafa !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: 16px !important;
    padding: 8px 12px !important;
    display: flex;
    flex-direction: column;
    gap: 2px !important;
    box-sizing: border-box !important;
    max-height: 260px !important;
    overflow-y: auto !important;
}

/* Premium row card for each member */
.member-item {
    padding: 10px 12px !important;
    border-bottom: none !important;
    border-radius: 12px !important;
    margin: 4px 0 !important;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.015);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, background 0.2s;
    position: relative;
}

.member-item:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.04);
    background: #fafafa;
    border-color: var(--border-color) !important;
}

/* Super sleek admin badge styling */
.admin-badge {
    background: #111 !important;
    color: #fff !important;
    font-family: 'Yazı' !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    padding: 3px 8px !important;
    border-radius: 8px !important;
    margin-left: 6px !important;
    display: inline-block;
    vertical-align: middle;
}

/* Styled actions button dropdown trigger */
.member-menu-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 1px solid var(--border-color) !important;
    background: #f8f9fa !important;
    color: #111 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    transition: all 0.22s ease !important;
}

.member-menu-btn:hover {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
    transform: scale(1.08);
}

/* Popover details menu actions styling */
.member-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    right: 0 !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2) !important;
    background: #fff !important;
    padding: 6px !important;
    width: 160px !important;
    z-index: 100000 !important;
    animation: menuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes menuFadeIn {
    from { opacity: 0; transform: translateY(6px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.member-dropdown-item {
    font-family: 'Yazı' !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    transition: background 0.18s, color 0.18s;
}

.member-dropdown-item:hover {
    background: #fafafa !important;
    color: #000 !important;
}

.member-dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
}

/* --- Premium Mentor & Modal UI --- */
.premium-modal-content {
    max-width: 500px !important;
    border-radius: 24px !important;
    padding: 35px 30px !important;
    border: 1px solid #f1f5f9;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
    background: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
}

.premium-modal-header {
    text-align: left;
    margin-bottom: 24px;
}

.premium-modal-title {
    font-family: 'Başlık', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: #0f172a;
    margin-bottom: 6px !important;
    margin-top: 0;
}

.premium-modal-subtitle {
    font-size: 13px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    text-align: left !important;
    padding-left: 0 !important;
}

.mentor-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1.5px solid #e2e8f0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.mentor-card:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: #000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.mentor-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.mentor-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.mentor-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    margin-left: 14px;
    text-align: left;
}

.mentor-name {
    font-family: 'Başlık', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
}

.mentor-username {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.mentor-view-btn {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Başlık', sans-serif;
    background: #000;
    color: #fff;
    border: 1.5px solid #000;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mentor-card:hover .mentor-view-btn {
    background: #000;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mentor-view-btn:hover {
    transform: scale(1.05);
}

/* --- Mentor Slots UI --- */
.mentor-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 10px;
    padding: 4px 2px;
}

.slot-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Yazı', sans-serif;
}

.slot-pill:hover {
    transform: translateY(-2px);
    border-color: #000;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.slot-pill.selected {
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2) !important;
}

.slot-pill-date {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.slot-pill.selected .slot-pill-date {
    color: rgba(255,255,255,0.7) !important;
}

.slot-pill-time {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}

.slot-pill.selected .slot-pill-time {
    color: #fff !important;
}

/* Booking form wrapper */
.booking-form-box {
    background: #fafafa;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    animation: fadeSlideUp 0.25s ease both;
}

.booking-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    background: #fff;
    box-sizing: border-box;
}

.booking-input:focus {
    border-color: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.booking-submit-btn {
    width: 100%;
    padding: 14px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 15px;
}

.booking-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* --- In-Call Chat Premium Overrides --- */
.call-chat-messages-box {
    scroll-behavior: smooth;
}

.call-chat-messages-box::-webkit-scrollbar {
    width: 6px;
}

.call-chat-messages-box::-webkit-scrollbar-track {
    background: transparent;
}

.call-chat-messages-box::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.call-chat-messages-box .message-item {
    font-size: 13px !important;
    padding: 10px 14px 22px 14px !important;
    border-radius: 14px !important;
    max-width: 85% !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
    line-height: 1.4 !important;
    margin-bottom: 2px !important;
    position: relative !important;
    border: none !important;
}

.call-chat-messages-box .message-time {
    color: rgba(255,255,255,0.4) !important;
    font-size: 10px !important;
    bottom: 4px !important;
    right: 12px !important;
    position: absolute !important;
}

.call-chat-messages-box .received {
    background: #1e293b !important;
    color: #f1f5f9 !important;
    margin-left: 0 !important;
}

.call-chat-messages-box .sent {
    background: #0f766e !important;
    color: #ffffff !important;
    margin-left: auto !important;
}

.call-chat-messages-box .sender-name {
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    display: block !important;
}

.call-chat-messages-box .msg-dropdown-btn,
.call-chat-messages-box .msg-dropdown-menu {
    display: none !important; /* Hide message settings and actions in active call to keep it clean */
}

/* --- Premium Calling Modals Layout & Centering Guarantee Fix --- */
#calling-modal,
#incoming-call-modal {
    position: fixed !important;
    inset: 0 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10003 !important;
}

#calling-modal .modal-content,
#incoming-call-modal .modal-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 auto !important;
}

#call-overlay {
    display: none !important;
}

/* Premium Toast Notification System */
#premium-toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100005;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 90%;
    max-width: 420px;
    pointer-events: none;
}

.premium-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: rgba(15, 23, 42, 0.85); /* Sleek slate background */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    overflow: hidden;
}

.premium-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

/* Success Toast */
.toast-success::before {
    background: linear-gradient(to bottom, #10b981, #059669);
}
.toast-success {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

/* Error/Warning Toast */
.toast-error::before {
    background: linear-gradient(to bottom, #f43f5e, #e11d48);
}
.toast-error {
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.15), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(244, 63, 94, 0.2);
}

/* Info Toast */
.toast-info::before {
    background: linear-gradient(to bottom, #3b82f6, #2563eb);
}
.toast-info {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.toast-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.toast-message-content {
    flex-grow: 1;
    letter-spacing: 0.1px;
}

.toast-close-btn {
    cursor: pointer;
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
    user-select: none;
    margin-left: 4px;
}
.toast-close-btn:hover {
    color: #ffffff;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast-fade-out {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
}

/* ==========================================
   VISUAL CALENDAR FOR MY APPOINTMENTS MODAL
   ========================================== */

.appt-toggle-container {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.appt-toggle-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    color: #64748b;
}

.appt-toggle-btn.active {
    background: #000;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.appt-cal-grid-day-header {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    padding: 6px 0;
}

.appt-cal-cell {
    aspect-ratio: 1.1;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.appt-cal-cell:hover {
    background: #fff;
    border-color: #000;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.06);
}

.appt-cal-cell.other-month {
    opacity: 0.25;
    pointer-events: none;
}

.appt-cal-cell.today {
    border: 2px solid #000;
    font-weight: bold;
}

.appt-cal-cell.has-appt {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.appt-cal-cell.has-appt:hover {
    background: #d1fae5;
    border-color: #34d399;
}

.appt-cal-cell.selected {
    background: #111827 !important;
    color: #fff !important;
    border-color: #111827 !important;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.25);
}

.appt-cal-cell-number {
    font-size: 13px;
    font-weight: 700;
}

.appt-cal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    margin-top: 4px;
}

.appt-cal-cell.selected .appt-cal-dot {
    background: #fff;
}

/* Premium centring and layout capping for My Appointments Modal */
.appt-modal-content {
    max-width: 540px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    border-radius: 24px !important;
    padding: 28px 24px !important;
    text-align: left !important;
    background: #fff !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid #f1f5f9 !important;
}

/* Smooth custom scrollbar for appointments modal */
.appt-modal-content::-webkit-scrollbar {
    width: 6px;
}
.appt-modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.appt-modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.appt-modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ===== Premium Screen Share Focus & Theater Mode ===== */
.active-call-overlay .call-btn-leave-stream {
    background: rgba(234, 179, 8, 0.15) !important;
    color: #fef08a !important;
    border: 1.5px solid rgba(234, 179, 8, 0.3) !important;
    padding: 10px 24px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    margin-right: 12px !important;
}

.active-call-overlay .call-btn-leave-stream:hover {
    background: #eab308 !important;
    color: #000000 !important;
    border-color: #eab308 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(234, 179, 8, 0.45) !important;
}

.active-call-overlay .call-btn-leave-stream:active {
    transform: translateY(0) !important;
}

/* Screen Sharing Item Highlight */
#active-call-overlay .participant-item.is-screensharing {
    border: 2px solid #eab308 !important;
    cursor: zoom-in !important;
}

#active-call-overlay .participant-item.is-screensharing video {
    object-fit: contain !important;
    transform: scaleX(1) !important;
    background: #05070d !important;
}

#active-call-overlay .participant-item.is-screensharing.focused-item {
    cursor: zoom-out !important;
}

/* Pulsating "LIVE" indicator */
#active-call-overlay .participant-item.is-screensharing::before {
    content: "LIVE";
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    animation: liveBadgePulse 1.5s infinite;
}

@keyframes liveBadgePulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Theater/Focus Mode Grid layout overrides */
#active-call-overlay #participants-grid.focus-mode {
    grid-template-columns: 1fr !important;
    justify-content: center !important;
    align-content: center !important;
}

#active-call-overlay #participants-grid.focus-mode .participant-item:not(.focused-item) {
    display: none !important;
}

#active-call-overlay #participants-grid.focus-mode .participant-item.focused-item {
    max-width: 1200px !important;
    max-height: 70vh !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9 !important;
    border: 2.5px solid #eab308 !important;
    box-shadow: 0 0 45px rgba(234, 179, 8, 0.3) !important;
}
