/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #0e0f11;
    color: #ffffff;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* Sidebar Design */
.sidebar {
    width: 240px;
    background-color: #0e0f11;
    border-right: 1px solid #232529;
    display: flex;
    flex-direction: column;
    padding: 16px;
    transition: width 0.3s ease;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.logo-icon {
    display: flex;
    align-items: center;
}

.logo-icon img {
    width: 37%;
    height: auto;
}

.toggle-sidebar {
    background: none;
    border: none;
    color: #9aa0a6;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-sidebar svg {
    width: 16px;
    height: 16px;
}

.toggle-sidebar:hover {
    color: #ffffff;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #e8eaed;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: #202124;
}

.menu-item.active {
    background-color: #202124;
}

.menu-item i {
    width: 16px;
    text-align: center;
    font-size: 15px;
    color: #e8eaed;
}

/* Main Canvas Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #0e0f11;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.top-header {
    display: flex;
    justify-content: flex-end;
    padding: 16px 24px;
}

.btn-signin {
    background-color: #232529;
    color: #ffffff;
    border: 1px solid #3c4043;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-signin:hover {
    background-color: #3c4043;
}

.dashboard-center {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px 80px 24px;
    display: flex;
    flex-direction: column;
}

.brand-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.zoom-logo-svg {
    margin-top: 1px;
}

.ai-white {
    color: #ffffff;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.5px;
}

/* Segmented Chat Layout */
.chat-stream-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.chat-bubble-wrapper {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.ai-avatar {
    background-color: #0B5CFF;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.ai-avatar.smile {
    background-color: #1e7e34;
}

.ai-avatar.serious {
    background-color: #c5221f;
}

.chat-bubble-wrapper.consecutive .ai-avatar {
    visibility: hidden;
}

.chat-bubble-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.sender-name {
    font-size: 11px;
    color: #70757a;
    font-weight: 500;
    margin-left: 2px;
}

.chat-bubble-wrapper.consecutive .sender-name {
    display: none;
}

.chat-message-text {
    background-color: #16181c;
    border: 1px solid #232529;
    border-radius: 4px 16px 16px 16px;
    padding: 14px 18px;
    color: #e8eaed;
    font-size: 14.5px;
    line-height: 1.55;
    word-break: break-word;
    width: fit-content;
    max-width: 90%;
}

.chat-message-text.alert-urgent {
    border-left: 3px solid #f28b82 !important;
    background-color: #1e1516 !important;
}

.chat-message-text.alert-success {
    border-left: 3px solid #81c995 !important;
    background-color: #131c16 !important;
}

/* Copy Snippet Component Structure */
.id-copy-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #0e0f11;
    border: 1px solid #2e3138;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 12px;
    width: 100%;
    gap: 16px;
    animation: fadeIn 0.4s ease forwards;
}

.id-string {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12.5px;
    color: #81c995;
    word-break: break-all;
    user-select: all;
    letter-spacing: 0.5px;
}

.copy-id-btn {
    background: none;
    border: none;
    color: #9aa0a6;
    cursor: pointer;
    padding: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.copy-id-btn:hover {
    background-color: #232529;
    color: #ffffff;
}

.copy-id-btn.copied {
    color: #81c995;
    background-color: rgba(129, 201, 149, 0.1);
}

/* ===================================================================== */
/* WINDOWS ACTION UI: Download Button + Troubleshooting Dropdown + Solutions */
/* ===================================================================== */

.windows-action-container {
    padding: 16px 20px;
    background-color: transparent;
    border: none;
    border-radius: 0;
    margin: 8px 0;
    animation: fadeIn 0.4s ease forwards;
}

.action-buttons-row {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
}

.action-btn {
    flex: 1;
    padding: 7px 14px;
    border-radius: 4px;
    border: 1px solid #3c4043;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
    height: 36px;
}

.download-btn {
    background: #0B5CFF;
    color: #ffffff;
    border: 1px solid #0B5CFF;
}

.download-btn:hover {
    background: #0949cc;
    border-color: #0949cc;
}

.download-btn.downloaded {
    background: #1a3a6b;
    border-color: #1a3a6b;
    color: #7a8ba8;
    pointer-events: none;
}

.troubleshoot-btn {
    background: transparent;
    color: #e8eaed;
    border: 1px solid #3c4043;
}

.troubleshoot-btn:hover {
    background: #232529;
    border-color: #4f535a;
}

/* Troubleshoot Dropdown */
.troubleshoot-dropdown {
    background: #1e2025;
    border: 1px solid #2e3138;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.2s ease forwards;
}

.dropdown-header {
    padding: 10px 14px;
    font-weight: 600;
    color: #9aa0a6;
    background: #16181c;
    border-bottom: 1px solid #232529;
    font-size: 12px;
}

.dropdown-item {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border-bottom: 1px solid #232529;
    transition: background 0.15s;
}

.dropdown-item:hover {
    background: #232529;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item>i:first-child {
    color: #9aa0a6;
    font-size: 15px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.dropdown-item>i.fa-chevron-right {
    color: #5a5f66;
    font-size: 11px;
    flex-shrink: 0;
}

.dropdown-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dropdown-item-title {
    font-weight: 500;
    color: #e8eaed;
    font-size: 13px;
}

.dropdown-item-desc {
    font-size: 11px;
    color: #70757a;
    line-height: 1.3;
}

/* Solution Panel */
.solution-panel {
    margin-top: 10px;
    animation: fadeIn 0.3s ease forwards;
}

.solution-card {
    background: #1e2025;
    border: 1px solid #2e3138;
    border-radius: 6px;
    overflow: hidden;
}

.solution-header {
    padding: 12px 14px;
    background: #1e1516;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #f28b82;
    border-bottom: 1px solid #2c1f1f;
    font-size: 13px;
}

.solution-header i {
    font-size: 14px;
}

.solution-steps {
    padding: 14px;
}

.solution-steps p {
    font-size: 13px;
    color: #e8eaed;
    line-height: 1.5;
    margin-bottom: 12px;
}

.solution-steps p strong {
    color: #ffffff;
}

.solution-steps p em {
    color: #9aa0a6;
    font-style: normal;
    background: #232529;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 12px;
}

.step {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.step-number {
    background: #0B5CFF;
    color: #ffffff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.step span {
    font-size: 13px;
    color: #e8eaed;
    line-height: 1.5;
    padding-top: 0;
}

.step span strong {
    color: #ffffff;
}

/* Solution card reuses existing .id-copy-container */
.solution-steps .id-copy-container {
    margin-top: 8px;
    margin-bottom: 4px;
}

.cmd-hint {
    font-size: 11px;
    color: #70757a;
    margin-top: 8px;
    line-height: 1.5;
}

.cmd-hint strong {
    color: #e8eaed;
}

.cmd-hint i {
    font-size: 10px;
}

/* User Understanding Interaction Row */
.feedback-container {
    display: flex;
    gap: 12px;
    margin-left: 46px;
    margin-top: 4px;
    animation: fadeIn 0.5s ease forwards;
}

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

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

.feedback-btn {
    background-color: #16181c;
    color: #e8eaed;
    border: 1px solid #2e3138;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-btn:hover {
    background-color: #232529;
    border-color: #4f535a;
}

.feedback-btn.primary-action:hover {
    background-color: #0B5CFF;
    border-color: #0B5CFF;
    color: #ffffff;
}

/* Typing Indicator Subcomponent */
.typing-wrapper {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 4px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background-color: #16181c;
    border: 1px solid #232529;
    border-radius: 4px 14px 14px 14px;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: #9aa0a6;
    border-radius: 50%;
    animation: wave 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes wave {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-4px);
    }
}

/* Modal / Sub-Page Element Layout Style */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(14, 15, 17, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background-color: #16181c;
    border: 1px solid #2e3138;
    border-radius: 12px;
    width: 90%;
    max-width: 460px;
    padding: 32px 28px;
    position: relative;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #9aa0a6;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.modal-close-btn:hover {
    background-color: #232529;
    color: #ffffff;
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.alert-badge-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(242, 139, 130, 0.1);
    color: #f28b82;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.modal-body {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-body p {
    font-size: 14.5px;
    color: #e8eaed;
    line-height: 1.5;
}

.modal-body .modal-subtext {
    font-size: 12.5px;
    color: #9aa0a6;
    line-height: 1.4;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0e0f11;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-message {
    text-align: center;
    padding: 32px;
}

.mobile-message i {
    font-size: 48px;
    color: #f28b82;
    margin-bottom: 20px;
}

.mobile-message h2 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 12px;
}

.mobile-message p {
    font-size: 14px;
    color: #9aa0a6;
    line-height: 1.5;
}

/* Responsive constraints */
@media (max-width: 768px) {
    .zoom-logo-svg {
        width: 74px;
        height: auto;
    }

    .ai-white {
        font-size: 26px;
    }

    .chat-message-text {
        max-width: 100%;
    }

    .feedback-container {
        margin-left: 0;
        justify-content: center;
    }

    .action-buttons-row {
        flex-direction: column;
    }

    .windows-action-container {
        padding: 12px 14px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        display: none;
    }
}

/* ===================================================================== */
/* SUPPORT FORM STYLES */
/* ===================================================================== */

.support-form {
    margin-top: 4px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
    color: #e8eaed;
}

/* Red asterisk for required fields */
.required {
    color: #f28b82;
}

.form-input,
.form-textarea {
    background: #0e0f11;
    border: 1px solid #2e3138;
    border-radius: 4px;
    padding: 8px 10px;
    color: #e8eaed;
    font-size: 13px;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
    width: 100%;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #0B5CFF;
}

/* Red border for invalid inputs */
.form-input.input-error,
.form-textarea.input-error {
    border-color: #f28b82;
}

.form-textarea {
    resize: vertical;
    min-height: 60px;
}

/* Error message below invalid fields */
.form-error {
    font-size: 11px;
    color: #f28b82;
}

/* Submit button */
.form-submit-btn {
    width: 100%;
    padding: 10px 16px;
    background: #0B5CFF;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.form-submit-btn:hover {
    background: #0949cc;
}

/* Loading spinner during submission */
.form-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
}

.form-loading span {
    font-size: 13px;
    color: #9aa0a6;
    margin-left: 4px;
}

/* Confirmation message after successful submission */
.form-confirmation {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: #131c16;
    border: 1px solid #1a3320;
    border-radius: 6px;
}

.form-confirmation i {
    color: #81c995;
    font-size: 20px;
    flex-shrink: 0;
}

.form-confirmation span {
    font-size: 13px;
    color: #e8eaed;
    line-height: 1.5;
}

/* ===================================================================== */
/* COLLAPSIBLE TOGGLE STYLES */
/* ===================================================================== */

/* Make the step-divider look clickable */
.step-divider.clickable {
    cursor: pointer;
    transition: opacity 0.2s;
}

.step-divider.clickable:hover {
    opacity: 0.8;
}

.step-divider.clickable span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Arrow icon next to "Still need help?" */
.toggle-arrow {
    font-size: 10px;
    color: #9aa0a6;
    transition: transform 0.25s ease;
}

/* Rotate arrow when form is expanded */
.toggle-arrow.rotated {
    transform: rotate(180deg);
}

/* Container for the collapsible form content */
.collapsible-form {
    animation: fadeIn 0.3s ease forwards;
}

/* ===================================================================== */
/* REASSURANCE BOX (Antivirus section) */
/* ===================================================================== */

.reassurance-box {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: #1a1f2e;
    border: 1px solid #253352;
    border-radius: 6px;
    margin-top: 16px;
    align-items: flex-start;
}

.reassurance-box>i {
    color: #4a9eff;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.reassurance-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reassurance-title {
    font-weight: 600;
    color: #4a9eff;
    font-size: 13px;
    margin-bottom: 0 !important;
}

.reassurance-text {
    font-size: 12.5px;
    color: #b8c7d9;
    line-height: 1.5;
    margin-bottom: 0 !important;
}

.reassurance-text strong {
    color: #ffffff;
}