* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.demo-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Browser Window */
.browser-window {
    width: 100%;
    height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    pointer-events: none;
    user-select: none;
}

.browser-header {
    background: #292929;
    padding: 12px 20px 0;
    display: flex;
    align-items: center;
    border-bottom: none;
    position: relative;
    z-index: 10;
}

.traffic-lights {
    display: flex;
    gap: 8px;
    margin-right: 20px;
}

.traffic-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.traffic-light.red {
    background: #ff5f57;
}

.traffic-light.yellow {
    background: #ffbd2e;
}

.traffic-light.green {
    background: #28ca42;
}

.browser-tab {
    background: #1e1e1e;
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
    font-size: 14px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    bottom: 0;
}

.tab-favicon {
    width: 16px;
    height: 16px;
}

/* Warning Banner */
.warning-banner {
    background: #ff6a3d;
    padding: 20px 24px;
    display: none;
    align-items: center;
    justify-content: center;
    animation: slideDown 0.4s ease-out;
    position: absolute;
    top: 48px; /* Adjusted for new header height */
    left: 0;
    right: 0;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(255, 106, 61, 0.3);
}

.warning-banner.visible {
    display: flex;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    max-width: 800px;
    text-align: center;
}

.banner-content svg {
    color: white;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

/* Welcome Banner (Green) */
.welcome-banner {
    background: #86bb64;
    padding: 20px 24px;
    display: none;
    align-items: center;
    justify-content: center;
    animation: slideDown 0.4s ease-out;
    position: absolute;
    top: 48px; /* Adjusted for new header height */
    left: 0;
    right: 0;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.welcome-banner.visible {
    display: flex;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Page Content Container */
.page-content {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

/* Claude page specific background */
#claudePage {
    background: #f5f4ed;
}

/* Claude Styles */
.container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    margin: 0 auto;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    padding-top: 60px;
}

.logo {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.header h1 {
    font-size: 32px;
    font-weight: 600;
    color: #2d2d2d;
}

.conversation-area {
    flex: 1;
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.welcome-message {
    text-align: center;
    color: #6b6b6b;
    font-size: 18px;
    min-height: 27px;
}

.input-card {
    width: 100%;
    max-width: 700px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.input-wrapper {
    display: flex;
    align-items: flex-end;
    padding: 16px;
    gap: 8px;
}

.prompt-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: inherit;
    resize: none;
    min-height: 24px;
    max-height: 200px;
    line-height: 1.5;
    color: #2d2d2d;
}

.prompt-input::placeholder {
    color: #9b9b9b;
}

.send-button {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: none;
    background-color: #2d2d2d;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.send-button:hover:not(:disabled) {
    background-color: #1a1a1a;
}

.send-button:disabled {
    background-color: #e5e5e5;
    cursor: not-allowed;
}

.send-button:disabled svg {
    color: #9b9b9b;
}

.input-footer {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.input-hint {
    font-size: 12px;
    color: #9b9b9b;
}

/* CoPilot Styles */
.copilot-container {
    display: flex;
    height: 100%;
    background: #ffffff;
}

.copilot-sidebar {
    width: 260px;
    background: #f5f5f5;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.copilot-sidebar-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.copilot-logo {
    width: 32px;
    height: 32px;
}

.copilot-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d2d2d;
    flex: 1;
}

.new-conversation-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.new-conversation-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.copilot-chat-list {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
}

.copilot-chat-item {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
}

.copilot-chat-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.copilot-chat-item.active {
    background: #e7f3ff;
    color: #0078D4;
}

.copilot-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.copilot-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.copilot-welcome {
    text-align: center;
    margin-bottom: 40px;
}

.copilot-welcome-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.copilot-welcome h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 8px;
}

.copilot-welcome p {
    font-size: 16px;
    color: #666;
}

.copilot-suggestions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.suggestion-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #2d2d2d;
}

.suggestion-card:hover {
    border-color: #0078D4;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.1);
}

.copilot-input-area {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.copilot-input-container {
    display: flex;
    align-items: flex-end;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 12px 20px;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.copilot-input-container:focus-within {
    border-color: #0078D4;
}

.copilot-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 16px;
    line-height: 1.5;
    resize: none;
    max-height: 200px;
    color: #2d2d2d;
}

.copilot-input::placeholder {
    color: #999;
}

.copilot-send-btn {
    width: 32px;
    height: 32px;
    background: #0078D4;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.copilot-send-btn:hover {
    background: #106ebe;
}

.copilot-footer {
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: #666;
}

/* Success Toaster */
.success-toaster {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: none;
    align-items: center;
    gap: 16px;
    min-width: 380px;
    animation: toasterSlideIn 0.4s ease-out;
    z-index: 2500;
}

.success-toaster.visible {
    display: flex;
}

.toaster-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.toaster-content {
    flex: 1;
}

.toaster-title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 4px;
}

.toaster-message {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

@keyframes toasterSlideIn {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Redirect Modal */
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.visible {
    display: flex;
}

.redirect-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: modalAppear 0.3s ease-out;
}

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

.redirect-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF7ED;
    border-radius: 50%;
    color: #F97316;
}

.redirect-title {
    font-size: 24px;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
}

.redirect-message {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 24px;
}

.redirect-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #F97316;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Transition animations */
.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hide header on shorter screens */
@media (max-height: 700px) {
    .header {
        padding-top: 20px;
        margin-bottom: 20px;
    }
    
    .logo {
        width: 48px;
        height: 48px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .copilot-welcome-logo {
        width: 60px;
        height: 60px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .copilot-sidebar {
        display: none;
    }
    
    .warning-banner {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .banner-content svg {
        width: 18px;
        height: 18px;
    }
}