Hemang Thakur
a lot of changes
85a4a41
/* Define a modern dark theme */
:root {
--dark-surface: #190e10; /* Deep, dark maroon base */
--primary-color: #2b2b2b; /* A dark gray for sidebars and buttons */
--secondary-color: #03dac6; /* A cool teal for accents */
--accent-color: #444a89; /* A warm accent for highlights and borders */
--text-color: #e0e0e0; /* Off-white text */
--hover-bg: #3a3a3a; /* Slightly lighter for hover effects */
--transition-speed: 0.25s; /* Speed of transitions */
}
/* Global font settings */
html, body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
margin: 0;
padding: 0;
background: var(--dark-surface);
}
/* Main container styling */
.app-container {
background: var(--dark-surface);
color: var(--text-color);
display: flex;
min-height: 100vh;
position: relative;
overflow-y: auto;
}
/* Main Content */
.main-content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex-grow: 1;
padding: 2rem;
transition: 0.1s;
width: 99%;
max-width: 900px;
margin: 0 auto;
}
/* Search Area for Initial Mode */
.search-area h1 {
margin-bottom: 1.5rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.search-area {
width: 83%;
}
.search-bar {
position: relative;
width: 100%;
border-radius: 0.35rem;
background-color: #21212f;
}
.search-input-wrapper {
padding: 0rem 0.6rem 4.15rem 0.6rem;
}
.search-input {
width: 100%;
max-height: 200px;
overflow-y: auto;
font-size: 1.2rem;
border: none;
background-color: transparent;
color: var(--text-color);
line-height: 1.4;
padding: 0.65rem 0.65rem;
resize: none;
white-space: pre-wrap;
}
.search-input:focus {
outline: none;
}
.search-input::placeholder {
color: #888;
}
.icon-container {
position: absolute;
bottom: 0.25rem;
left: 0;
right: 0;
height: 3rem;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 0.75rem;
}
.settings-btn,
.send-btn {
background: transparent;
border: none;
color: var(--text-color);
cursor: pointer;
}
.settings-btn svg,
.send-btn svg {
font-size: 1.45rem;
}
.settings-btn:hover,
.send-btn:hover {
color: #888;
}
/* Stop button */
button.chat-send-btn.stop-btn,
button.send-btn.stop-btn {
background-color: var(--text-color) !important;
border-radius: 50%;
width: 28.5px;
height: 28.5px;
border: none;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
padding: 0;
margin: 0 0 10px;
}
button.chat-send-btn.stop-btn:hover,
button.send-btn.stop-btn:hover {
background-color: #888 !important;
}
/* Chat Mode Search Bar and Textarea Styling */
.floating-chat-search-bar {
position: fixed;
bottom: 1.5rem;
left: 50%;
transform: translateX(-50%);
width: 48%;
background-color: #21212f;
border-radius: 0.35rem;
}
.floating-chat-search-bar::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: -1.5rem;
height: 1.5rem;
background-color: var(--dark-surface);
}
.chat-search-input-wrapper {
padding: 0.25rem 0.6rem;
}
.chat-search-input {
width: 100%;
min-width: 700px;
max-height: 200px;
overflow-y: auto;
font-size: 1.2rem;
border: none;
background-color: transparent;
color: var(--text-color);
line-height: 1.4;
padding: 0.65rem 3.25rem;
resize: none;
white-space: pre-wrap;
}
.chat-search-input:focus {
outline: none;
}
.chat-icon-container {
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 3rem;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 0.75rem;
pointer-events: none;
}
/* Re-enable pointer events on the actual buttons so they remain clickable */
.chat-icon-container button {
pointer-events: auto;
}
.chat-settings-btn,
.chat-send-btn {
background: transparent;
border: none;
color: var(--text-color);
font-size: 1.45rem;
margin-bottom: 0.25rem;
cursor: pointer;
}
.chat-settings-btn:hover,
.chat-send-btn:hover {
color: #888;
}
/* Floating sidebar container for chat mode */
.floating-sidebar {
position: fixed;
right: 0;
top: 0;
bottom: 0;
width: var(--right-sidebar-width, 300px);
z-index: 1000;
}
/* Chat container */
.chat-container {
flex-grow: 1;
margin-bottom: 9rem;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
.main-content {
margin-left: 0;
margin-right: 0;
}
}
@media (max-width: 576px) {
.main-content {
margin: 0;
padding: 1rem;
}
}