* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: url('assets/images/dpsteel-background.png') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    padding-bottom: 100px;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 800px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Logo Section */
.logo-container {
    text-align: center;
    padding: 10px;
    flex-shrink: 0;
}

#logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Desktop: Make logo 25% bigger */
@media (min-width: 768px) {
    #logo {
        max-width: 375px;
    }
}

/* Chat Container */
.chat-container {
    background: #e8e8e8;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    gap: 10px;
    max-width: 80%;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.assistant {
    align-self: flex-start;
}

.message-content {
    padding: 12px 16px;
    border-radius: 12px;
    word-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.message.user .message-content {
    background: #ff6b35;
    color: white;
}

.message.assistant .message-content {
    background: #f1f3f5;
    color: #333;
}

/* Structured text formatting */
.text-header {
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 6px;
}

.text-header:first-child {
    margin-top: 0;
}

.text-bullet {
    padding-left: 14px;
    margin-bottom: 4px;
}

.text-paragraph {
    margin-bottom: 8px;
}

.text-blank {
    height: 10px;
}

/* Chat Input */
.chat-input-container {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background: #d4d4d4;
}

#user-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 24px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

#user-input:focus {
    border-color: #ff6b35;
}

#send-button {
    padding: 12px 28px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

#send-button:hover {
    background: #e55a2b;
}

#send-button:active {
    transform: scale(0.98);
}

#send-button:disabled {
    background: #adb5bd;
    cursor: not-allowed;
}

/* Loading indicator */
.loading {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b35;
    animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f3f5;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #868e96;
}
