body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    /* Prevent body scroll, let panels scroll */
}

/* Main Layout */
.app-layout {
    display: flex;
    height: 100vh;
    width: 100%;
}

.container {
    background: white;
    padding: 30px;
    /* Box shadow removed or adjusted for panel layout */
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
    flex: 2;
    /* Takes up more space */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid #e0e0e0;
}

/* Documentation Panel */
.doc-panel {
    flex: 1;
    background: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-width: 300px;
    max-width: 400px;
    background-color: #fcfcfc;
}

.doc-panel h2 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #444;
}

#docSearch {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.doc-table-container {
    flex-grow: 1;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
}

#docTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#docTable th,
#docTable td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

#docTable th {
    background-color: #f1f3f4;
    position: sticky;
    top: 0;
    color: #555;
    font-weight: 600;
}

#docTable tr:hover {
    background-color: #f8f9fa;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .app-layout {
        flex-direction: column;
        overflow-y: auto;
    }

    body {
        overflow: auto;
    }

    .container,
    .doc-panel {
        width: 100%;
        max-width: none;
        flex: none;
        height: auto;
        border-right: none;
    }

    .doc-panel {
        border-top: 1px solid #e0e0e0;
    }
}

h1 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.editor-container {
    position: relative;
    width: 100%;
}

textarea {
    width: 100%;
    height: 300px;
    padding: 15px;
    font-size: 18px;
    line-height: 1.6;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    /* Important for padding */
    transition: border-color 0.3s;
}

textarea:focus {
    border-color: #4285f4;
    /* Google Blue */
}

/* Suggestion Dropdown */
.suggestions-dropdown {
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    font-size: 16px;
    min-width: 150px;
}

.suggestions-dropdown.hidden {
    display: none;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background-color: #e8f0fe;
    color: #1967d2;
}

.suggestion-number {
    color: #888;
    font-size: 12px;
    margin-right: 8px;
    align-self: center;
}

.hint {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* Footer */
.app-footer {
    margin-top: auto;
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    color: #888;
    border-top: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.app-footer strong {
    color: #555;
}

.assistant-name {
    background: linear-gradient(90deg, #4285f4, #9b72cb, #d96570);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* SEO Content */
.seo-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    background: #f1f8ff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4285f4;
}

.seo-text strong {
    color: #333;
    font-weight: 600;
}

.app-footer a {
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
}

.app-footer a:hover {
    text-decoration: underline;
}