
/* Agent Page Layout */
.agent-layout {
    display: flex;
    gap: 20px;
    height: calc(100vh - 140px); /* Adjust based on header/footer */
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.chat-sidebar {
    width: 300px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.chat-main {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.sidebar-title {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h4 {
    color: #8b949e;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggestion-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #c9d1d9;
}

.suggestion-chip:hover {
    border-color: var(--primary-color);
    background: rgba(0, 255, 65, 0.05);
}

.info-list {
    padding-left: 20px;
    margin: 0;
}

.info-list li {
    margin-bottom: 8px;
    color: #8b949e;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    /* Mobile Layout Optimization (WeChat Style) */
    .container {
        height: 100vh; /* Fallback */
        height: 100dvh;
        overflow: hidden;
    }

    .header {
        padding: 0.5rem 1rem;
        flex-shrink: 0;
        min-height: 50px;
    }

    .footer {
        display: none !important;
    }

    .agent-layout {
        flex-direction: column;
        height: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
        gap: 0;
        /* Ensure layout takes full remaining height */
        flex: 1;
        overflow: hidden;
    }
    
    .chat-sidebar {
        display: none !important;
    }
    
    .chat-main {
        flex: 1;
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    #dify-chat {
        flex: 1;
        height: 100%;
        width: 100%;
    }
}
