.chat-container {
    display: flex;
    height: 82vh;
    padding: 1.5%;
    width: 96%;
    transform: translateY(3%);
    margin: 0 auto;
}

.chat-main {
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    border-radius: 0.75rem;
    border: 2px solid rgba(67, 255, 186, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 0.75rem rgba(67, 255, 186, 0.2);
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 0.75%;
    background: rgba(67, 255, 186, 0.1);
    border-bottom: 1px solid rgba(67, 255, 186, 0.2);
}

.chat-header h2 {
    margin: 0;
    font-size: 1em;
    color: #43ffba;
    text-shadow: 0 0 0.5rem rgba(67, 255, 186, 0.5);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 1rem;
}

.message {
    display: flex;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(0.75rem);
    animation: fadeInUp 0.3s forwards;
}

.message.user {
    justify-content: flex-end;
}

/* Error message styling */
.message.error .message-content {
    color: rgba(255, 0, 0, 0.7);
    background: transparent;
    border: none;
}

.message.error .message-content:hover {
    background: transparent;
}

.message-content {
    max-width: 80%;
    padding: 0.75rem 1.5%;
    background: transparent;
    border: none;
    color: #e0e0e0;
    box-shadow: none;
    font-size: 1em;
    line-height: 1.5;
    word-wrap: break-word;
    border-left: 3px solid transparent;
    padding-left: 10px;
    white-space: pre-line;
}

.message-content br {
    display: block;
    content: "";
    margin-top: 0.5em;
}

/* Add styles for links in messages */
.message-content a {
    display: inline-block;
    color: #43ffba;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(67, 255, 186, 0.3);
    padding-bottom: 1px;
    white-space: normal;
}

.message-content a:hover {
    color: #7fffcd;
    border-bottom-color: rgba(67, 255, 186, 0.8);
    text-shadow: 0 0 8px rgba(67, 255, 186, 0.3);
}

.message-content a:active {
    color: #43ffba;
    border-bottom-color: rgba(67, 255, 186, 1);
}

/* Style for social media links */
.message-content a[href*="linkedin.com"],
.message-content a[href*="x.com"],
.message-content a[href*="t.me"],
.message-content a[href*="mailto:"] {
    display: inline-flex;
    align-items: center;
    margin: 2px 0;
}

.message-content a[href*="linkedin.com"]::before,
.message-content a[href*="x.com"]::before,
.message-content a[href*="t.me"]::before,
.message-content a[href*="mailto:"]::before {
    margin-right: 5px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.message-content a[href*="linkedin.com"]::before {
    content: "\f08c";
}

.message-content a[href*="x.com"]::before {
    content: "\f099";
}

.message-content a[href*="t.me"]::before {
    content: "\f2c6";
}

.message-content a[href*="mailto:"]::before {
    content: "\f0e0";
}

.message-content:hover {
    background: transparent;
    box-shadow: none;
}

.message.user .message-content {
    color: rgba(67, 255, 186, 1);
    border-left: none;
    border-right: 3px solid rgba(67, 255, 186, 0.5);
    padding-right: 10px;
    text-align: right;
}

.chat-input {
    padding: 1%;
    background: rgba(67, 255, 186, 0.05);
    border-top: 1px solid rgba(67, 255, 186, 0.2);
}

.chat-input-container {
    display: flex;
    gap: 0.5%;
    position: relative;
    align-items: center;
}

.chat-input input {
    flex: 1;
    padding: 1rem 1.5%;
    border-radius: 1rem;
    border: 1px solid rgba(67, 255, 186, 0.3);
    background: rgba(10, 10, 10, 0.8);
    color: white;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.chat-input textarea {
    flex: 1;
    padding: 0.5rem 1.5%;
    border-radius: 1.5rem;
    border: 1px solid rgba(67, 255, 186, 0.3);
    background: rgba(10, 10, 10, 0.8);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease, height 0.15s ease;
    resize: none;
    min-height: 2.5rem;
    height: 2.5rem;
    max-height: 160px;
    overflow-y: hidden;
    line-height: 1.5;
    font-family: inherit;
    box-sizing: border-box;
}

.chat-input input:focus {
    outline: none;
    border-color: #43ffba;
    box-shadow: 0 0 0.6rem rgba(67, 255, 186, 0.3);
}

.chat-input textarea:focus {
    outline: none;
    border-color: #43ffba;
    box-shadow: 0 0 0.6rem rgba(67, 255, 186, 0.3);
}

.chat-input button {
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(67, 255, 186, 0.3);
    background: rgba(67, 255, 186, 0.2);
    color: #43ffba;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
}

.chat-input button:hover {
    background: rgba(67, 255, 186, 0.3);
    box-shadow: 0 0 0.6rem rgba(67, 255, 186, 0.3);
}

/* Quick action buttons */
.quick-actions {
    display: flex;
    gap: 0.5%;
    margin-bottom: 0.7%;
    flex-wrap: wrap;
}

.quick-action-btn {
    padding: 1% 1%;
    border-radius: 0.75rem;
    background: rgba(67, 255, 186, 0.1);
    border: 1px solid rgba(67, 255, 186, 0.2);
    color: #43ffba;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8em;
}

.quick-action-btn:hover {
    background: rgba(67, 255, 186, 0.2);
    border-color: rgba(67, 255, 186, 0.4);
    box-shadow: 0 0 0.6rem rgba(67, 255, 186, 0.2);
}

/* Character counter */
.char-counter {
    display: none;
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 0.4rem;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(116, 136, 128, 0.1);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(67, 255, 186, 0.3);
    border-radius: 0.2rem;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(67, 255, 186, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(0.75rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Remove loading message style */

/* Media queries for responsive design */
@media (max-width: 1200px) {
    .quick-actions {
        display: flex;
        margin-bottom: 1%;
    }
    
    .quick-action-btn {
        padding: 0.7% 0.9%;
        font-size: 0.7em;
    }
    
    .chat-container {
        width: 90%;
        height: 85vh;
    }
    
    .chat-input textarea {
        font-size: 1rem;
        padding: 0.6rem 1.5%;
    }
    
    .chat-input button {
        padding: 0.4rem 0.8rem;
        min-width: 2.2rem;
    }
    
    .message-content {
        max-width: 85%;
        padding: 0.7rem 1.3%;
        font-size: 1em;
    }
    
    .chat-header {
        padding: 0.8rem 1rem;
        background: rgba(67, 255, 186, 0.15);
        border-bottom: 1px solid rgba(67, 255, 186, 0.25);
    }
    
    .chat-header h2 {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 768px) {
    .chat-container {
        width: 92%;
        height: 85vh;
        padding: 2%;
    }
    
    .quick-actions {
        margin-bottom: 2%;
        gap: 6px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-action-btn {
        padding: 8px 10px;
        font-size: 0.7em;
        border-radius: 0.5rem;
        margin-bottom: 2px;
    }
    
    .quick-action-btn:nth-child(3) {
        display: none; /* Hide the third button on mobile */
    }
    
    .chat-main {
        border-radius: 0.6rem;
    }
    
    .chat-header h2 {
        font-size: 0.9em;
    }
    
    .chat-input {
        padding: 1.5%;
    }
    
    .chat-input textarea {
        font-size: 0.9rem;
        padding: 0.5rem 1.2%;
        min-height: 2.2rem;
        height: 2.2rem;
    }
    
    .chat-input button {
        height: 2.2rem;
        font-size: 1em;
        padding: 0.3rem 0.7rem;
        min-width: 2rem;
    }
    
    .char-counter {
        right: 3%;
        font-size: 1em;
    }
    
    .chat-messages {
        padding: 0.4rem 0.8rem;
    }
    
    .message {
        margin-bottom: 0.8rem;
    }
    
    .message-content {
        max-width: 90%;
        padding: 0.6rem 1.2%;
        font-size: 1em;
    }
    
    .chat-header {
        padding: 0.6rem 0.8rem;
        background: rgba(67, 255, 186, 0.18);
        border-bottom: 1px solid rgba(67, 255, 186, 0.3);
    }
    
    .chat-header h2 {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .chat-container {
        width: 90%;
        height: 78vh;
    }
    
    .quick-actions {
        margin-bottom: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .quick-action-btn {
        padding: 8px 12px;
        font-size: 0.65em;
        border-radius: 0.5rem;
        margin-bottom: 0;
        white-space: normal;
        text-align: center;
        height: auto;
        line-height: 1.3;
    }
    
    .quick-action-btn:nth-child(3) {
        display: none; /* Hide the third button on mobile */
    }
    
    .chat-main {
        border-radius: 0.5rem;
    }
    
    .chat-input textarea {
        font-size: 0.7rem;
        min-height: 2rem;
        height: 2rem;
    }
    
    .chat-input button {
        height: 2rem;
        padding: 0.2rem 0.5rem;
        min-width: 1.8rem;
        font-size: 0.8em;
    }
    
    .char-counter {
        right: 2.5%;
        font-size: 0.5em;
    }
    
    .chat-messages {
        padding: 0.3rem 0.6rem;
    }
    
    .message {
        margin-bottom: 0.6rem;
    }
    
    .message-content {
        max-width: 95%;
        padding: 0.5rem 1%;
        font-size: 0.75em;
    }
    
    .chat-header {
        padding: 0.5rem 0.7rem;
        background: rgba(67, 255, 186, 0.2);
        border-bottom: 1px solid rgba(67, 255, 186, 0.35);
    }
    
    .chat-header h2 {
        font-size: 0.85rem;
    }
} 