/* ========================================
   Global Styles
   ======================================== */

body {
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

/* ========================================
   Landing Page Styles
   ======================================== */

.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.hero-section {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 60px;
    text-shadow: 0 1px 2px rgba(0,0,0,.20);
}

.hero-section .logo {
    display: block;
    margin: 0 0 1.5em 0;
    transition: opacity 1.25s ease, transform 0.5s ease;
    transition-delay: 0s;
}

.hero-section .logo div {
    display: inline-block;
    position: relative;
}

.hero-section .logo img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    width: 150px;
    height: 150px;
    border-radius: 25%;
}

.hero-section .logo .bubble {
    opacity: 0;
    animation: showbubble 0.5s;
    animation-fill-mode: forwards;
    animation-delay: 1.0s;
    position: absolute;
    right: 170px;
    top: -50px;
    width: 200px;
    height: 96px;
    background: transparent url("../images/bubble.5040695a0bbf.svg") no-repeat;
    background-size: 100%;
    text-align: center;
}

.hero-section .logo .bubble strong {
    color: #333;
    white-space: nowrap;
    animation: revealtext 0.8s ease-out;
    animation-fill-mode: forwards;
    animation-delay: 1.5s;
    font-size: 30px;
    font-weight: bold;
    line-height: 80px;
    overflow: hidden;
    width: 0%;
    display: inline-block;
    text-shadow: none;
}

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

@keyframes revealtext {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

body.is-loading .hero-section .logo {
    transform: scale(0.8) rotate(-30deg);
}

body.is-loading .hero-section > :not(.logo) {
    transition: none;
    opacity: 1;
}

.hero-title {
    font-family: 'Pacifico', cursive;
    font-size: 3.25rem;
    font-weight: 300;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
    letter-spacing: inherit;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin: 0 0 40px 0;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: #667eea;
    border-color: white;
}

.btn-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.2rem;
}

.features-section {
    margin-bottom: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-card h3 {
    color: #333;
    font-size: 1.5rem;
    margin: 0 0 15px 0;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.cta-section {
    text-align: center;
    padding: 60px 40px;
    background: #f8f9fa;
    border-radius: 12px;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: #333;
    margin: 0 0 20px 0;
}

.cta-section p {
    font-size: 1.2rem;
    color: #666;
    margin: 0 0 40px 0;
}

.cta-section .btn {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.cta-section .btn:hover {
    background: #5a67d8;
    border-color: #5a67d8;
}

/* ========================================
   Login Page Styles
   ======================================== */

body.login-page,
body.signup-page,
body.setup-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    box-sizing: border-box;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.login-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.login-header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.login-form {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.4;
}

.form-help a {
    color: #667eea;
    text-decoration: none;
}

.form-help a:hover {
    text-decoration: underline;
}

.login-form button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.login-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.login-form button:active {
    transform: translateY(0);
}

.error {
    background: #fef2f2;
    color: #dc2626;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid #fecaca;
    font-size: 0.95rem;
}

.social-login {
    margin-bottom: 20px;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 16px;
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    box-sizing: border-box;
    gap: 12px;
}

.google-login-btn:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-color: #f9fafb;
}

.google-login-btn:active {
    background-color: #f3f4f6;
}

.divider {
    position: relative;
    margin: 24px 0;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    background: white;
    padding: 0 16px;
    color: #6b7280;
    font-size: 0.9rem;
    position: relative;
}

/* ========================================
   Chat Page Styles
   ======================================== */

body.chat-page {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    height: 100vh;
    background-color: #f8fafc;
}

#chat-container {
    order: 2;
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#memory-sidebar {
    order: 1;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 1px solid #e2e8f0;
}

#memory-sidebar h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: white;
    font-size: 1.2em;
    font-weight: 600;
}

/* Scheduled Tasks Section */
#scheduled-tasks-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#scheduled-tasks-header h3 {
    margin: 0 0 12px 0;
    color: white;
    font-size: 1.1em;
    font-weight: 600;
}

/* Connections Section */
#connections-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

#connections-header h3 {
    margin: 0 0 12px 0;
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    opacity: 0.9;
}

.connection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 6px;
}

.connection-name {
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
}

.connection-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.connection-status {
    font-size: 1.1em;
    display: flex;
    align-items: center;
    cursor: default;
}

.connection-action {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    padding: 4px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.connection-action:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.connection-action.disconnect:hover {
    background-color: rgba(239, 68, 68, 0.3);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header h1 {
    margin: 0;
    font-size: 2em;
    font-weight: 700;
    color: #1e293b;
}

.header p {
    margin: 5px 0 0 0;
    color: #64748b;
    font-size: 1.1em;
}

#messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    margin-bottom: 20px;
    max-height: calc(100vh - 300px);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: white;
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    max-width: 80%;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-content {
    flex: 1;
}

.message-content p {
    margin: 0 0 8px 0;
}

.message-content p:last-child {
    margin: 0;
}

.message-timestamp {
    font-size: 0.75em;
    opacity: 0.7;
    font-weight: 500;
    align-self: flex-end;
    margin-top: 4px;
}

.user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: auto;
    margin-right: 0;
    text-align: right;
    align-self: flex-end;
}

.assistant {
    background-color: #f1f5f9;
    color: #334155;
    margin-right: auto;
    margin-left: 0;
    border: 1px solid #e2e8f0;
}

.typing-indicator {
    background-color: #f1f5f9;
    color: #334155;
    margin-right: auto;
    margin-left: 0;
    border: 1px solid #e2e8f0;
    display: none;
    align-items: center;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 80%;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.typing-indicator.show {
    display: flex;
}

.typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #94a3b8;
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.memory-item {
    font-size: 0.9em;
    margin-bottom: 8px;
    padding: 8px 12px;
    background-color: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.memory-id {
    font-weight: bold;
    color: rgba(255,255,255,0.8);
    font-size: 0.8em;
    font-family: monospace;
}

.chat-page form {
    margin-top: 0;
    display: flex;
    gap: 12px;
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.chat-page input[type="text"], .chat-page textarea[name="message"] {
    flex-grow: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-page input[type="text"]:focus, .chat-page textarea[name="message"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chat-page textarea[name="message"] {
    resize: none;
    min-height: 50px;
    max-height: 120px;
    overflow-y: auto;
    font-family: inherit;
    line-height: 1.4;
    padding-bottom: 12px;
    box-sizing: border-box;
}

.chat-page button {
    padding: 12px 24px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.chat-page button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.chat-page button:disabled {
    background-color: #9ca3af;
    color: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.logout-link {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.logout-link:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Django Messages */
#django-messages {
    margin-bottom: 20px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alert-success {
    background-color: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.alert-warning {
    background-color: #fffbeb;
    border-color: #fed7aa;
    color: #d97706;
}

.alert-info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

.alert-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    margin-left: 10px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-close:hover {
    opacity: 1;
}

/* ========================================
   Responsive Design - Mobile
   ======================================== */

@media (max-width: 480px) {
    /* Landing Page Mobile */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .landing-container {
        padding: 10px;
    }

    .hero-section {
        padding: 60px 20px;
    }

    .hero-section .logo img {
        width: 100px;
        height: 100px;
    }

    .hero-section .logo .bubble {
        right: 105px;
        top: -30px;
        width: 100px;
        height: 48px;
    }

    .hero-section .logo .bubble strong {
        line-height: 40px;
        font-size: 17px;
    }

    /* Login Page Mobile */
    .login-container {
        padding: 10px;
    }

    .login-header {
        padding: 30px 20px;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .login-header p {
        font-size: 1rem;
    }

    .login-form {
        padding: 30px 20px;
    }

    .form-group input {
        padding: 12px 14px;
    }

    .login-form button {
        padding: 14px;
        font-size: 1rem;
    }

    /* Chat Page Mobile */
    body.chat-page {
        font-size: 14px;
    }

    #memory-sidebar {
        padding: 10px;
        max-height: none;
        overflow-y: visible;
    }

    #memory-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        padding: 5px 0;
        border-bottom: 1px solid rgba(255,255,255,0.3);
        margin-bottom: 10px;
    }

    #memory-header:hover {
        background-color: rgba(255,255,255,0.1);
        border-radius: 4px;
        padding: 5px 8px;
        margin: 0 -8px 10px -8px;
    }

    .memory-arrow {
        font-size: 0.8em;
        transition: transform 0.2s ease;
        user-select: none;
    }

    #memory-list {
        max-height: 250px;
        overflow-y: auto;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    #memory-list.collapsed {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }

    #memory-sidebar h3 {
        font-size: 1em;
        margin-bottom: 0;
    }

    #scheduled-tasks-header,
    #connections-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        padding: 5px 0;
        border-bottom: 1px solid rgba(255,255,255,0.3);
        margin-bottom: 10px;
    }

    #scheduled-tasks-header:hover,
    #connections-header:hover {
        background-color: rgba(255,255,255,0.1);
        border-radius: 4px;
        padding: 5px 8px;
        margin: 0 -8px 10px -8px;
    }

    #scheduled-tasks-list,
    #connections-list {
        max-height: 250px;
        overflow-y: auto;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    #scheduled-tasks-list.collapsed,
    #connections-list.collapsed {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }

    .memory-item {
        font-size: 0.8em;
        padding: 6px 8px;
        margin-bottom: 6px;
    }

    .memory-id {
        font-size: 0.7em;
    }

    #chat-container {
        padding: 10px;
    }

    .header h1 {
        font-size: 1.5em;
    }

    .header p {
        font-size: 0.9em;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .logout-link {
        align-self: flex-end;
        font-size: 0.8em;
        padding: 6px 12px;
    }

    #messages {
        padding: 15px;
        max-height: calc(100vh - 400px);
    }

    .message {
        max-width: 95%;
        margin-bottom: 12px;
        padding: 10px 12px;
        font-size: 0.9em;
    }

    .message-timestamp {
        font-size: 0.7em;
        margin-top: 2px;
    }

    .chat-page form {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }

    .chat-page input[type="text"], .chat-page textarea[name="message"] {
        padding: 10px 12px;
        font-size: 16px;
    }

    .chat-page button {
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* ========================================
   Responsive Design - Tablet
   ======================================== */

@media (min-width: 481px) and (max-width: 767px) {
    /* Chat Page Tablet */
    #memory-sidebar {
        padding: 12px;
        max-height: none;
        overflow-y: visible;
    }

    #memory-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        padding: 5px 0;
        border-bottom: 1px solid rgba(255,255,255,0.3);
        margin-bottom: 10px;
    }

    #memory-header:hover {
        background-color: rgba(255,255,255,0.1);
        border-radius: 4px;
        padding: 5px 8px;
        margin: 0 -8px 10px -8px;
    }

    .memory-arrow {
        font-size: 0.8em;
        transition: transform 0.2s ease;
        user-select: none;
    }

    #memory-list {
        max-height: 300px;
        overflow-y: auto;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    #memory-list.collapsed {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }

    #chat-container {
        padding: 15px;
    }

    .header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    #messages {
        max-height: calc(100vh - 350px);
    }

    .message {
        max-width: 85%;
    }

    .chat-page form {
        flex-direction: row;
        gap: 12px;
    }
}

/* ========================================
   Responsive Design - Desktop
   ======================================== */

@media (min-width: 768px) {
    /* Chat Page Desktop */
    body.chat-page {
        flex-direction: row;
        height: 100vh;
    }

    #chat-container {
        order: 1;
        flex-grow: 1;
        padding: 30px;
        border-right: 1px solid #e2e8f0;
    }

    #memory-sidebar {
        order: 2;
        width: 320px;
        flex-shrink: 0;
        padding: 30px;
        border-bottom: none;
        border-left: 1px solid #e2e8f0;
        height: 100vh;
        overflow-y: auto;
    }

    /* Desktop: Hide mobile-specific headers and keep normal layout */
    #memory-header,
    #scheduled-tasks-header,
    #connections-header {
        display: block;
        cursor: default;
        padding: 0;
        border-bottom: none;
        margin-bottom: 15px;
    }

    #memory-header:hover,
    #scheduled-tasks-header:hover,
    #connections-header:hover {
        background-color: transparent;
        border-radius: 0;
        padding: 0;
        margin-bottom: 15px;
    }

    .memory-arrow {
        display: none;
    }

    #memory-list,
    #scheduled-tasks-list,
    #connections-list {
        max-height: none;
        overflow-y: visible;
        transition: none;
    }

    #memory-list.collapsed,
    #scheduled-tasks-list.collapsed,
    #connections-list.collapsed {
        max-height: none;
        opacity: 1;
        overflow: visible;
    }

    #messages {
        max-height: calc(100vh - 280px);
    }

    .message {
        max-width: 60%;
    }

    .user {
        margin-left: 30%;
    }

    .assistant {
        margin-right: 30%;
    }
}

/* ========================================
   Responsive Design - Large Desktop
   ======================================== */

@media (min-width: 1200px) {
    /* Chat Page Large Desktop */
    #chat-container {
        padding: 40px;
    }

    #memory-sidebar {
        width: 380px;
        padding: 40px;
    }

    .header h1 {
        font-size: 2.5em;
    }

    .header p {
        font-size: 1.2em;
    }

    #messages {
        padding: 30px;
        max-height: calc(100vh - 300px);
    }

    .message {
        padding: 15px 20px;
        font-size: 1.1em;
        max-width: 55%;
    }

    .chat-page form {
        padding: 25px;
    }

    .chat-page input[type="text"], .chat-page textarea[name="message"] {
        padding: 15px 20px;
        font-size: 18px;
    }

    .chat-page button {
        padding: 15px 30px;
        font-size: 18px;
    }
}
