/* ==========================================================================
   WAEYUK WHATSAPP MULTI-SESSION DASHBOARD - STYLING
   ========================================================================== */

:root {
    --bg-main: #08080a;
    --bg-surface: #0f0f12;
    --bg-elevated: #16161a;
    --bg-overlay: rgba(8, 8, 10, 0.85);

    --tx-primary: #ffffff;
    --tx-secondary: #94a3b8;
    --tx-muted: #64748b;
    
    --accent: #00d2ff;
    --accent-secondary: #9933ff;
    --accent-hover: #00b8e0;
    --accent-glow: rgba(0, 210, 255, 0.35);

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    
    --glass: rgba(15, 15, 20, 0.65);
    --glass-border: rgba(255, 255, 255, 0.06);
    --gradient-primary: linear-gradient(135deg, #00d2ff, #9933ff);
    
    --success: #00ff88;
    --error: #ff3366;
    --warning: #ffcc00;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at 50% 0%, #151518 0%, var(--bg-main) 100%);
    background-attachment: fixed;
    color: var(--tx-primary);
    font-family: 'Tajawal', sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

/* Glow Border Effect */
.glow-border {
    position: relative;
}
.glow-border::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary), var(--accent));
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: 2;
    animation: borderMovingGlow 4s linear infinite;
    pointer-events: none;
}

@keyframes borderMovingGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* App Layout Grid */
.app-layout {
    display: grid;
    grid-template-columns: 280px 340px 1fr;
    height: 100vh;
    gap: 16px;
    padding: 16px;
    max-width: 1800px;
    margin: 0 auto;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-glow);
}

/* Panel 1: Sessions Sidebar */
.sidebar-sessions {
    display: flex;
    flex-direction: column;
    padding: 20px;
    height: 100%;
}
.sessions-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sessions-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.session-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.session-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 210, 255, 0.3);
    transform: translateY(-2px);
}
.session-item.active {
    background: rgba(0, 210, 255, 0.05);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}
.session-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.session-name {
    font-weight: 700;
    font-size: 0.95rem;
}
.session-status-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 600;
}
.session-status-badge.connected {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 255, 136, 0.2);
}
.session-status-badge.disconnected {
    background: rgba(255, 51, 102, 0.1);
    color: var(--error);
    border: 1px solid rgba(255, 51, 102, 0.2);
}
.session-status-badge.connecting, .session-status-badge.qr {
    background: rgba(255, 204, 0, 0.1);
    color: var(--warning);
    border: 1px solid rgba(255, 204, 0, 0.2);
}
.session-phone {
    font-size: 0.8rem;
    color: var(--tx-secondary);
}
.session-delete-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: transparent;
    border: none;
    color: var(--tx-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}
.session-delete-btn:hover {
    color: var(--error);
}

.btn-add-session {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.2);
}
.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 51, 255, 0.3);
}

/* Panel 2: Chats Sidebar */
.sidebar-chats {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    height: 100%;
    overflow: hidden;
}
.empty-chats-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--tx-muted);
    padding: 20px;
    text-align: center;
}
.empty-chats-state i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--accent);
}
.chats-header {
    padding: 0 20px 15px;
    border-bottom: 1px solid var(--border);
}
.active-session-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
}
.active-session-info span {
    font-size: 0.8rem;
    color: var(--tx-secondary);
}
.chats-search {
    margin-top: 15px;
    position: relative;
}
.chats-search i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tx-muted);
}
.chats-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 35px 10px 15px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}
.chats-search input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px var(--accent-glow);
}
.chats-list {
    flex: 1;
    overflow-y: auto;
}
.chat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}
.chat-item:hover {
    background: rgba(255, 255, 255, 0.02);
}
.chat-item.active {
    background: rgba(0, 210, 255, 0.03);
    border-right: 3px solid var(--accent);
}
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}
.chat-item-details {
    flex: 1;
    min-width: 0;
}
.chat-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.chat-contact-name {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-time {
    font-size: 0.75rem;
    color: var(--tx-muted);
}
.chat-preview {
    font-size: 0.8rem;
    color: var(--tx-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.unread-badge {
    background: var(--accent);
    color: black;
    font-weight: 800;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Panel 3: Active Chat Window */
.chat-window {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.welcome-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
    text-align: center;
}
.welcome-content {
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.logo-premium {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 15px var(--accent-glow));
}
.text-hero {
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-body {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--tx-secondary);
}
.badge-accent {
    background: rgba(0, 210, 255, 0.08);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Active Chat */
.active-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.01);
}
.chat-contact-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.chat-contact-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
}
.status-online {
    font-size: 0.75rem;
    color: var(--tx-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}
.status-online i {
    font-size: 0.5rem;
}

/* Messages Area */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: radial-gradient(circle at center, rgba(15,15,20,0.2) 0%, rgba(8,8,10,0.5) 100%);
}
.message-bubble {
    max-width: 65%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    animation: messageReveal 0.25s ease-out forwards;
}
@keyframes messageReveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.message-bubble.incoming {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-bottom-right-radius: 4px;
}
.message-bubble.outgoing {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(153, 51, 255, 0.15));
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-bottom-left-radius: 4px;
}
.message-time {
    display: block;
    font-size: 0.7rem;
    color: var(--tx-muted);
    text-align: left;
    margin-top: 6px;
}

/* Chat Footer & Message Input */
.chat-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}
.comment-input-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 6px 6px 6px 18px;
    gap: 12px;
    transition: var(--transition);
}
.comment-input-container:focus-within {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.1);
}
.comment-input-container input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}
.btn-send-message {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: var(--transition);
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal.open {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    width: 90%;
    max-width: 500px;
    padding: 30px;
    animation: modalSlide 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes modalSlide {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
}
.modal-close {
    background: transparent;
    border: none;
    color: var(--tx-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}
.modal-close:hover {
    color: white;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--tx-secondary);
}
.form-input {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}
.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}
.connection-status-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
}
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
}
.qr-container {
    background: white;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.qr-container img {
    max-width: 250px;
    width: 100%;
}
.qr-hint {
    color: var(--tx-muted);
    font-size: 0.8rem;
    margin-top: 15px;
}
.btn-submit-session {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

/* Animations */
.float-animation {
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    font-size: 1.5rem;
    color: var(--accent);
}

.hidden {
    display: none !important;
}

/* Mobile Upload Bridge & Drag-Drop Styles */
.btn-mobile-attach {
    background: transparent;
    border: none;
    color: var(--tx-secondary);
    cursor: pointer;
    font-size: 1.15rem;
    margin-left: 10px;
    transition: var(--transition);
}
.btn-mobile-attach:hover {
    color: var(--accent);
    transform: scale(1.15);
}

#dragDropOverlay {
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#attachmentPreviewContainer {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
#attachmentPreviewContainer::-webkit-scrollbar {
    height: 4px;
}
#attachmentPreviewContainer::-webkit-scrollbar-track {
    background: transparent;
}
#attachmentPreviewContainer::-webkit-scrollbar-thumb {
    border-radius: 10px;
}

/* Mobile Gallery Drawer Styles */
.mobile-gallery-panel {
    position: absolute;
    top: 60px; /* Right under header */
    right: 0;
    bottom: 0;
    width: 320px;
    background: var(--bg-surface);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 99;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mobile-gallery-panel.hidden {
    transform: translateX(100%);
    display: none !important;
}

.gallery-header {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-header h3 {
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gallery-header-actions {
    display: flex;
    align-items: center;
}

.gallery-refresh-btn {
    background: transparent;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 1rem;
    margin-left: 12px;
    transition: var(--transition);
    outline: none;
}

.gallery-refresh-btn:hover {
    transform: rotate(180deg);
}

.gallery-close-btn {
    background: transparent;
    border: none;
    color: var(--tx-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
    outline: none;
}

.gallery-close-btn:hover {
    color: var(--error);
}

.gallery-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 12px;
    min-height: 0;
}

.gallery-search {
    position: relative;
    display: flex;
    align-items: center;
}

.gallery-search i {
    position: absolute;
    right: 12px;
    color: var(--tx-muted);
    font-size: 0.85rem;
}

.gallery-search input {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--tx-primary);
    padding: 10px 35px 10px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: 'Tajawal', sans-serif;
    outline: none;
    transition: var(--transition);
}

.gallery-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.gallery-status-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
}

.gallery-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.gallery-status-dot.online {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.gallery-status-dot.offline {
    background: var(--error);
    box-shadow: 0 0 8px var(--error);
}

.gallery-grid-container {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gallery-item-card {
    aspect-ratio: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item-card:hover {
    transform: scale(1.05);
    border-color: var(--accent);
}

.gallery-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 1.25rem;
    color: var(--accent);
}

.gallery-item-fallback span {
    font-size: 0.55rem;
    color: var(--tx-secondary);
    text-align: center;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-item-checkbox {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: rgba(8, 8, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: transparent;
    font-size: 0.65rem;
}

.gallery-item-card.selected .gallery-item-checkbox {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-main);
}

.gallery-footer {
    padding: 15px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

.btn-gallery-action {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--tx-primary);
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    outline: none;
}

.btn-gallery-action:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
}

.btn-gallery-action.primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.btn-gallery-action:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Scrollbar styling for grid */
.gallery-grid-container::-webkit-scrollbar {
    width: 4px;
}
.gallery-grid-container::-webkit-scrollbar-track {
    background: transparent;
}
.gallery-grid-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* ==========================================================================
   PHONE CONTROL & RUSTDESK GLASSMORPHISM STYLING
   ========================================================================== */
.phone-control-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    padding: 15px;
    gap: 15px;
}

.phone-viewer-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.phone-mockup-frame {
    transition: var(--transition);
}

.phone-sidebar-actions {
    width: 240px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(15, 15, 20, 0.5) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.btn-sidebar-action {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    padding: 11px 14px !important;
    border-radius: 12px !important;
    text-align: right;
    font-family: 'Tajawal', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: var(--transition) !important;
    width: 100%;
}

.btn-sidebar-action:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.15);
}

.btn-sidebar-action i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    transition: var(--transition);
}

.btn-sidebar-action:hover i {
    transform: scale(1.15);
}

/* Fullscreen Mode styling for the Phone Frame */
.phone-fullscreen-mode {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    z-index: 99999 !important;
    background: #000 !important;
    border: none !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.phone-fullscreen-mode iframe {
    padding-top: 0 !important;
    border-radius: 0 !important;
}

.phone-fullscreen-mode .phone-notch {
    display: none !important;
}

/* Add custom loading indicator for rustdesk loading */
.rustdesk-loading-screen {
    position: absolute;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    color: white;
    gap: 15px;
    font-family: 'Tajawal', sans-serif;
}
