anycoder-00da736e / style.css
akhaliq's picture
akhaliq HF Staff
Upload style.css with huggingface_hub
caab65a verified
/* Apple-inspired CSS with modern design */
:root {
--primary-color: #007AFF;
--secondary-color: #5856D6;
--background: #000000;
--surface: #1C1C1E;
--surface-secondary: #2C2C2E;
--surface-tertiary: #3A3A3C;
--text-primary: #FFFFFF;
--text-secondary: #98989F;
--text-tertiary: #636366;
--border-color: #38383A;
--success: #30D158;
--warning: #FF9F0A;
--error: #FF453A;
--gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
--shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: var(--background);
color: var(--text-primary);
line-height: 1.6;
overflow: hidden;
}
.app-container {
height: 100vh;
display: flex;
flex-direction: column;
}
/* Header */
.header {
background: var(--surface);
border-bottom: 1px solid var(--border-color);
padding: 1rem 0;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
}
.header-content {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
gap: 0.75rem;
font-size: 1.25rem;
font-weight: 600;
}
.logo svg {
filter: drop-shadow(0 2px 4px rgba(0, 122, 255, 0.3));
}
.header-actions {
display: flex;
gap: 0.5rem;
}
.header-btn {
background: var(--surface-secondary);
border: 1px solid var(--border-color);
color: var(--text-secondary);
padding: 0.5rem 1rem;
border-radius: 0.75rem;
cursor: pointer;
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.875rem;
transition: all 0.2s ease;
}
.header-btn:hover {
background: var(--surface-tertiary);
color: var(--text-primary);
transform: translateY(-1px);
}
.attribution {
text-align: center;
margin-top: 0.5rem;
font-size: 0.75rem;
color: var(--text-tertiary);
}
.attribution a {
color: var(--primary-color);
text-decoration: none;
font-weight: 500;
}
.attribution a:hover {
text-decoration: underline;
}
/* Main Content */
.main-content {
flex: 1;
overflow: hidden;
position: relative;
}
/* Loading Screen */
.loading-screen {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: var(--background);
z-index: 10;
}
.loading-content {
text-align: center;
max-width: 400px;
}
.loading-spinner {
width: 60px;
height: 60px;
border: 3px solid var(--surface-tertiary);
border-top: 3px solid var(--primary-color);
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto 2rem;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.loading-content h2 {
font-size: 1.5rem;
margin-bottom: 0.5rem;
font-weight: 600;
}
.loading-content p {
color: var(--text-secondary);
margin-bottom: 2rem;
}
.progress-bar {
width: 100%;
height: 4px;
background: var(--surface-tertiary);
border-radius: 2px;
overflow: hidden;
margin-bottom: 1rem;
}
.progress-fill {
height: 100%;
background: var(--gradient);
border-radius: 2px;
width: 0%;
transition: width 0.3s ease;
}
.loading-status {
font-size: 0.875rem;
color: var(--text-tertiary);
}
/* Chat Container */
.chat-container {
height: calc(100% - 120px);
overflow-y: auto;
padding: 2rem;
max-width: 1200px;
margin: 0 auto;
width: 100%;
}
.messages-list {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.message {
display: flex;
gap: 1rem;
animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.message.user {
flex-direction: row-reverse;
}
.message-avatar {
width: 40px;
height: 40px;
border-radius: 1rem;
background: var(--gradient);
display: flex;
align-items: center;
justify-content: center;
color: white;
flex-shrink: 0;
}
.message.user .message-avatar {
background: var(--surface-tertiary);
}
.message-content {
max-width: 70%;
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.message-text {
background: var(--surface-secondary);
padding: 1rem 1.25rem;
border-radius: 1.25rem;
font-size: 0.95rem;
line-height: 1.5;
white-space: pre-wrap;
word-wrap: break-word;
border: 1px solid var(--border-color);
}
.message.user .message-text {
background: var(--gradient);
color: white;
}
.message-time {
font-size: 0.75rem;
color: var(--text-tertiary);
padding: 0 0.5rem;
}
.message.user .message-time {
text-align: right;
}
/* Typing Indicator */
.typing-indicator {
display: flex;
gap: 0.25rem;
padding: 1rem 1.25rem;
}
.typing-dot {
width: 8px;
height: 8px;
background: var(--text-tertiary);
border-radius: 50%;
animation: typing 1.4s infinite;
}
.typing-dot:nth-child(2) {
animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
animation-delay: 0.4s;
}
@keyframes typing {
0%, 60%, 100% {
transform: translateY(0);
opacity: 0.5;
}
30% {
transform: translateY(-10px);
opacity: 1;
}
}
/* Input Area */
.input-area {
background: var(--surface);
border-top: 1px solid var(--border-color);
padding: 1.5rem 2rem;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
}
.input-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
gap: 1rem;
align-items: flex-end;
}
.message-input {
flex: 1;
background: var(--surface-secondary);
border: 1px solid var(--border-color);
border-radius: 1.25rem;
padding: 0.875rem 1.25rem;
color: var(--text-primary);
font-size: 0.95rem;
resize: none;
outline: none;
transition: all 0.2s ease;
font-family: inherit;
line-height: 1.5;
min-height: 44px;
max-height: 120px;
}
.message-input:focus {
border-color: var(--primary-color);
background: var(--surface-tertiary);
}
.message-input::placeholder {
color: var(--text-tertiary);
}
.send-btn {
width: 44px;
height: 44px;
border-radius: 1.25rem;
background: var(--gradient);
border: none;
color: white;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
flex-shrink: 0;
}
.send-btn:hover:not(:disabled) {
transform: scale(1.05);
box-shadow: var(--shadow-sm);
}
.send-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.input-footer {
max-width: 1200px;
margin: 0.75rem auto 0;
display: flex;
justify-content: space-between;
font-size: 0.75rem;
color: var(--text-tertiary);
}
/* Modal */
.modal {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.8);
display: none;
align-items: center;
justify-content: center;
z-index: 100;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.modal.active {
display: flex;
}
.modal-content {
background: var(--surface);
border-radius: 1.5rem;
width: 90%;
max-width: 500px;
max-height: 80vh;
overflow: hidden;
box-shadow: var(--shadow);
animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
from {
opacity: 0;
transform: scale(0.9) translateY(20px);
}
to {
opacity: 1;
transform: scale(1) translateY(0);
}
}
.modal-header {
padding: 1.5rem;
border-bottom: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
align-items: center;
}
.modal-header h2 {
font-size: 1.25rem;
font-weight: 600;
}
.close-btn {
background: none;
border: none;
color: var(--text-secondary);
cursor: pointer;
padding: 0.5rem;
border-radius: 0.5rem;
transition: all 0.2s ease;
}
.close-btn:hover {
background: var(--surface-secondary);
color: var(--text-primary);
}
.modal-body {
padding: 1.5rem;
}
.setting-group {
margin-bottom: 1.5rem;
}
.setting-group label {
display: block;
margin-bottom: 0.5rem;
font-size: 0.875rem;
color: var(--text-secondary);
}
.setting-group input[type="range"] {
width: 100%;
margin-bottom: 0.5rem;
}
.setting-group input[type="checkbox"] {
margin-right: 0.5rem;
}
.modal-footer {
padding: 1.5rem;
border-top: 1px solid var(--border-color);
display: flex;
justify-content: flex-end;
}
.btn {
padding: 0.75rem 1.5rem;
border-radius: 0.75rem;
border: none;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}
.btn-primary {
background: var(--gradient);
color: white;
}
.btn-primary:hover {
transform: translateY(-1px);
box-shadow: var(--shadow-sm);
}
/* Responsive Design */
@media (max-width: 768px) {
.header-content {
padding: 0 1rem;
}
.chat-container {
padding: 1rem;
}
.message-content {
max-width: 85%;
}
.input-area {
padding: 1rem;
}
}
/* Custom Scrollbar */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: var(--surface);
}
::-webkit-scrollbar-thumb {
background: var(--surface-tertiary);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--text-tertiary);
}