/* Blue Scale Brutalist Chat Components */

/* Message Bubbles */
.message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: brutalFadeIn 0.2s ease-out forwards;
}

@keyframes brutalFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bot-message {
    flex-direction: row;
}

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

.message-icon {
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    box-shadow: 3px 3px 0px 0px #000;
}

.bot-message .message-icon {
    background: #000;
    color: #38bdf8; /* sky-400 */
}

.user-message .message-icon {
    background: #1d4ed8; /* blue-700 */
    color: white;
    transform: rotate(3deg);
}

.message-text {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border: 2px solid #000;
    line-height: 1.4;
    word-wrap: break-word;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: normal;
}

.bot-message .message-text {
    background: #f0f9ff; /* sky-50 */
    box-shadow: 6px 6px 0px 0px #000;
    border-top-left-radius: 0;
    color: #000;
}

.user-message .message-text {
    background: #38bdf8; /* sky-400 */
    color: #000;
    box-shadow: -6px 6px 0px 0px #1d4ed8; /* royal blue shadow for user */
    border-top-right-radius: 0;
    transform: rotate(-1deg);
}

.message-text strong {
    font-weight: 900;
    background: #1d4ed8;
    color: #fff;
    padding: 0 4px;
}

.message-text a {
    color: #1d4ed8;
    text-decoration: underline;
    font-weight: 900;
}

/* Feedback Buttons */
.feedback-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    border-top: 2px solid #000;
    padding-top: 0.5rem;
}

.feedback-btn {
    background: #fff;
    border: 2px solid #000;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.1s;
    color: #000;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    box-shadow: 2px 2px 0px 0px #000;
}

.feedback-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px 0px #000;
}

.feedback-btn.active.up {
    background: #38bdf8;
}

.feedback-btn.active.down {
    background: #1d4ed8;
    color: white;
}

/* File Preview */
.file-preview-container {
    padding: 1rem;
    background: #f0f9ff;
    border: 3px solid #000;
    margin-bottom: 1rem;
    box-shadow: 4px 4px 0px 0px #000;
}

.file-preview {
    position: relative;
    display: inline-block;
    padding: 0.5rem;
    background: white;
    border: 2px solid #000;
}

.file-preview img {
    max-width: 120px;
    max-height: 120px;
}

.remove-file {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

/* Voice Indicator */
.voice-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #000;
    color: #38bdf8;
    border: 3px solid #000;
    margin-bottom: 1rem;
    box-shadow: 4px 4px 0px 0px #38bdf8;
}

.voice-wave span {
    width: 4px;
    background: #38bdf8;
    animation: brutalWave 0.8s infinite;
}

@keyframes brutalWave {
    0%, 100% { height: 10px; }
    50% { height: 30px; }
}

/* Utility Classes */
.hidden { display: none !important; }

.brutal-border-red { border-color: #ef4444 !important; box-shadow: 4px 4px 0px 0px #000 !important; }

/* Workspace Selection Buttons */
.ws-btn {
    width: 100%;
    padding: 1.25rem;
    background: #fff;
    border: 3px solid #000;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.1s;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 4px 4px 0px 0px #000;
    margin-bottom: 1rem;
}

.ws-btn:hover {
    background: #38bdf8; /* sky-400 */
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px 0px #000;
}

.ws-btn i {
    font-size: 1.5rem;
    color: #000;
}