/* ==========================================================================
   Ashabzaman Pro UI — Solid Modern Design (Zero Glassmorphism)
   High-contrast crisp surfaces, responsive profile, chat bubbles, dark mode
   ========================================================================== */

:root {
    --az-accent: #4361ee;
    --az-accent-hover: #3651d4;
    --az-surface: #ffffff;
    --az-surface-alt: #f5f7fb;
    --az-border: #e2e8f0;
    --az-text: #1e293b;
    --az-muted: #64748b;
    --az-shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
    --az-shadow-md: 0 6px 18px rgba(15, 23, 42, 0.10);
    --az-radius-sm: 8px;
    --az-radius-md: 12px;
    --az-radius-pill: 999px;
}

/* ---------- 1. Smooth Modal Entrance Animation ---------- */
@keyframes azModalPop {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#large_modal .large_modal_in,
#small_modal .small_modal_in {
    animation: azModalPop 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28) !important;
}

/* ---------- 2. Profile Avatar & Frame Centering (All Screens) ---------- */
.pro_avatar .slotanpro,
.slotanpro {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 120px !important;
    height: 120px !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 auto !important;
}

.slotanpro .dummy-child {
    display: none !important;
}

.slotanpro .avatar_profile_round.under {
    width: 92px !important;
    height: 92px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

.slotanpro img#broder.over_pro {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 122px !important;
    height: 122px !important;
    object-fit: contain !important;
    pointer-events: none !important;
}

/* Subtle shimmer accent on profile display name */
@keyframes azNameShine {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.14); }
    100% { filter: brightness(1); }
}

.pro_name {
    animation: azNameShine 3.5s ease-in-out infinite;
    letter-spacing: 0.2px;
}

/* ---------- 3. Solid Floating Audio Visualizer (Profile Music) ---------- */
.az_audio_bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #181b26 !important;
    color: #ffffff !important;
    border: 1px solid #2e3448;
    border-radius: var(--az-radius-pill);
    padding: 6px 14px 6px 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.az_audio_bar:hover {
    background: #222638 !important;
    transform: translateY(-1px);
}

.az_audio_play_btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--az-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.az_eq_bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}

.az_eq_bars span {
    display: block;
    width: 3px;
    background: #4cc9f0;
    border-radius: 3px;
    height: 5px;
    animation: azEqBounce 0.9s ease-in-out infinite;
}

.az_eq_bars span:nth-child(1) { animation-delay: 0.0s; }
.az_eq_bars span:nth-child(2) { animation-delay: 0.18s; background: #4361ee; }
.az_eq_bars span:nth-child(3) { animation-delay: 0.36s; background: #7209b7; }
.az_eq_bars span:nth-child(4) { animation-delay: 0.54s; background: #4cc9f0; }
.az_eq_bars span:nth-child(5) { animation-delay: 0.24s; background: #4361ee; }

#proplayer[data-state="0"] .az_eq_bars span {
    animation: none !important;
    height: 4px !important;
    opacity: 0.45;
}

@keyframes azEqBounce {
    0%, 100% { height: 4px; }
    50% { height: 16px; }
}

.az_audio_label {
    font-size: 12px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
}

/* ---------- 4. Crisp Solid Chat Bubbles, Quotes & Reactions ---------- */
#show_chat ul li.ch_logs,
#chat_logs_container .ch_logs {
    margin: 5px 8px !important;
    padding: 8px 12px !important;
    border-radius: var(--az-radius-md) !important;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

#show_chat ul li.ch_logs:hover,
#chat_logs_container .ch_logs:hover {
    box-shadow: var(--az-shadow-sm);
}

.chat_quote,
.qquote,
.cquote {
    border-radius: var(--az-radius-sm) !important;
    border-right: 3px solid var(--az-accent) !important;
    padding: 6px 10px !important;
    margin-bottom: 6px !important;
}

.react_item,
.chat_reaction_btn {
    border-radius: var(--az-radius-pill) !important;
    transition: transform 0.14s ease !important;
}

.react_item:hover,
.chat_reaction_btn:hover {
    transform: scale(1.12);
}

/* ---------- 5. Online Users List & Pulsing Status Dot ---------- */
@keyframes azPulseOnline {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.user_item {
    border-radius: 10px !important;
    margin: 3px 6px !important;
    transition: transform 0.14s ease, box-shadow 0.14s ease !important;
}

.user_item:hover {
    transform: translateX(-2px);
    box-shadow: var(--az-shadow-sm);
}

.user_item .user_status_dot,
.user_item img[src*="online"],
.av_status_online {
    border-radius: 50%;
    animation: azPulseOnline 2.2s infinite;
}

/* ---------- 6. Modern Solid Pill Input Bar ---------- */
#top_chat_container #chat_input,
#main_input_box,
.input_wrap {
    padding: 6px 10px !important;
}

#content,
#message_content {
    border-radius: var(--az-radius-pill) !important;
    padding: 8px 16px !important;
    border: 1.5px solid var(--az-border) !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}

#content:focus,
#message_content:focus {
    border-color: var(--az-accent) !important;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.16) !important;
    outline: none !important;
}

#submit_button,
.send_btn {
    border-radius: var(--az-radius-pill) !important;
    transition: transform 0.14s ease, background-color 0.14s ease !important;
}

#submit_button:active,
.send_btn:active {
    transform: scale(0.95);
}

/* ---------- 7. Features Panel: Solid 2-Column Grid + Live Preview ---------- */
.az_features_preview {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #181b26;
    color: #ffffff;
    border: 1px solid #2d3347;
    border-radius: var(--az-radius-md);
    padding: 12px 14px;
    margin-bottom: 14px;
    direction: rtl;
}

.az_features_preview img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--az-accent);
    flex-shrink: 0;
}

.az_features_preview_meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.az_features_preview_tag {
    font-size: 11px;
    color: #94a3b8;
}

.az_features_preview_name {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.az_features_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    direction: rtl;
}

@media screen and (max-width: 540px) {
    .az_features_grid {
        grid-template-columns: 1fr;
    }
}

.az_feature_card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--az-surface);
    border: 1px solid var(--az-border);
    border-radius: var(--az-radius-md);
    padding: 12px 14px;
    cursor: pointer;
    box-shadow: var(--az-shadow-sm);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    text-align: right;
}

.az_feature_card:hover {
    transform: translateY(-2px);
    border-color: var(--az-accent);
    box-shadow: var(--az-shadow-md);
}

.az_feature_icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 18px;
    flex-shrink: 0;
}

.az_feature_icon i {
    color: #ffffff !important;
    font-size: 18px !important;
}

.az_feature_body {
    min-width: 0;
    flex: 1;
}

.az_feature_body h4 {
    margin: 0 0 3px 0;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--az-text);
}

.az_feature_body p {
    margin: 0;
    font-size: 11.5px;
    color: var(--az-muted);
    line-height: 1.4;
}

/* ---------- 8. Solid Dark / Light Mode Toggle ---------- */
#az_theme_toggle {
    position: fixed;
    bottom: 72px;
    left: 14px;
    z-index: 9990;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

#az_theme_toggle:hover {
    transform: scale(1.08);
}

html.az-dark-mode #az_theme_toggle {
    background: #1e2230;
    color: #facc15;
    border-color: #38405a;
}

/* Solid Dark Mode Palette (Zero Glassmorphism) */
html.az-dark-mode body,
html.az-dark-mode #global_chat,
html.az-dark-mode #chat_center,
html.az-dark-mode #show_chat,
html.az-dark-mode #chat_logs_container {
    background-color: #13151d !important;
    color: #e8ecf4 !important;
}

html.az-dark-mode #chat_right,
html.az-dark-mode #chat_left,
html.az-dark-mode .panel_element,
html.az-dark-mode .modal_in,
html.az-dark-mode .large_modal_in,
html.az-dark-mode .small_modal_in,
html.az-dark-mode .box_element,
html.az-dark-mode .page_element {
    background-color: #1b1e29 !important;
    color: #e8ecf4 !important;
    border-color: #2c3144 !important;
}

html.az-dark-mode #show_chat ul li.ch_logs,
html.az-dark-mode .user_item,
html.az-dark-mode .az_feature_card {
    background-color: #212534 !important;
    border-color: #2f354a !important;
    color: #e8ecf4 !important;
}

html.az-dark-mode .az_feature_body h4 {
    color: #f1f5f9 !important;
}

html.az-dark-mode .az_feature_body p {
    color: #94a3b8 !important;
}

html.az-dark-mode #content,
html.az-dark-mode #message_content,
html.az-dark-mode .full_input,
html.az-dark-mode .full_textarea {
    background-color: #161923 !important;
    color: #f8fafc !important;
    border-color: #333a52 !important;
}
