/* Global styles */
:root {
    --primary-color: #FF9B7D;
    --secondary-color: #FFF5F0;
    --text-color: #654321;
    --user-message-color: #FFB199;
    --bot-message-color: #FF9B7D;
    --border-radius: 8px;
    --box-shadow: 0 2px 4px rgba(101, 67, 33, 0.1);
    --shell-color: #FFCDB2;
    --shell-accent: #FFB199;
    --face-color: #654321;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 600;
}

/* Global font styles */
body, 
input, 
select, 
textarea, 
button, 
.form-control, 
.form-select, 
.form-label,
.btn,
h1, h2, h3, h4, h5, h6,
p, span, div {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
}

body {
    background-color: #FFF5F0;
    color: var(--text-color);
}

/* Main container styles */
.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Shell container styles */
.shell-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.shell-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Shell face styles */
.shell-face {
    position: absolute;
    width: 60%;
    height: 60%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.eyes {
    display: flex;
    justify-content: space-between;
    width: 70%;
    margin-bottom: 15px;
}

.eye {
    width: 20px;
    height: 20px;
    background-color: #333;
    border-radius: 50%;
    position: relative;
}

.eye:after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
}

.cheeks {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    top: 55%;
}

.cheek {
    width: 15px;
    height: 15px;
    background-color: #FF9999;
    border-radius: 50%;
    opacity: 0.7;
}

.mouth {
    width: 25px;
    height: 15px;
    border: none;
    background-color: #333;
    border-radius: 50% 50% 50% 50%;
    margin-top: 5px;
    position: relative;
    overflow: hidden;
}

.mouth:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 50%;
    background-color: #FF9999;
    bottom: 0;
    border-radius: 50% 50% 0 0;
}

/* Welcome message styles */
.welcome-message {
    background-color: rgba(255, 155, 125, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.welcome-message h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: var(--font-weight-bold);
}

.welcome-text {
    font-weight: var(--font-weight-normal);
    color: var(--text-color);
}

.welcome-message ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.welcome-message li {
    margin-bottom: 0.5rem;
    position: relative;
}

.welcome-message li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Response area styles */
#response {
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    overflow: auto;
    height: 60vh;
    padding: 1rem;
    background-color: var(--secondary-color);
    margin-top: 1rem;
}

/* Message styles */
#response p {
    width: 85%;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius);
    position: relative;
    clear: both;
}

#response p:nth-child(odd) {
    background-color: #28acc2;
    color: white;
    float: left;
    margin-right: 15%;
}

#response p:nth-child(even) {
    background-color: #ffd27d;
    color: white;
    float: right;
    margin-left: 15%;
}

/* Form styles */
.form-label {
    color: var(--text-color);
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.5rem;
}

.form-control {
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 0.8rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 155, 125, 0.25);
}

/* Button styles */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #FF8366;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 155, 125, 0.2);
}

/* Character writing container */
.character-container {
    width: 150px;
    height: 150px;
    margin: 1.5rem auto;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.character-container svg {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
}

/* Response section header */
.mb-3 h6 {
    color: var(--text-color);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Icons in messages */
.bi {
    margin-right: 0.5rem;
}

/* Scrollbar styling */
#response::-webkit-scrollbar {
    width: 8px;
}

#response::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#response::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

#response::-webkit-scrollbar-thumb:hover {
    background: #FF8366;
}

/* Heading styles */
h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: var(--font-weight-bold);
    text-align: center;
    font-size: 24px;
}

h4 {
    font-weight: var(--font-weight-bold);
    font-size: 20px;
}

h5 {
    font-weight: var(--font-weight-medium);
    font-size: 18px;
}

h6 {
    font-weight: var(--font-weight-medium);
    font-size: 16px;
}

/* Button text styles */
.btn {
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
}

/* Small text styles */
small, 
.text-muted {
    font-size: var(--font-size-small);
} 