
/* Regular formatted text */
.formatted-text {
    font-size: 20px;
    font-weight: bolder;
    color: #a142d1;  /* Primary Purple */
}

/* Apply formatText function styles */
.formatted-content {
    display: block;
    padding: 10px;
    margin: 10px 0;
    background: rgba(161, 66, 209, 0.05);
    border-radius: 4px;
}

/* Large formatted text, also bold */
.formatted-text-large {
    font-size: 25px;
    font-weight: bolder;
    color: #8a36b8;  /* Secondary Purple */
}

/* Specifically for bold text, without altering size */
.bold-text {
    font-weight: bolder;
    color: #a142d1;  /* Primary Purple */
}

h3 {
    font-size: 20px;
    font-weight: bolder;
    color: #8a36b8;  /* Secondary Purple */
}

.special-text {
    font-weight: bolder;
    color: #9C27B0;  /* Purple */
}

/* Formatted URLs */
.formatted-url {
    color: #a142d1;
    text-decoration: underline;
}

/* Remove underline on hover for URLs */
.formatted-url:hover {
    text-decoration: none;
    color: #8a36b8;
}

/* Highlighted text */
.highlighted-text {
    background-color: rgba(161, 66, 209, 0.2);
    color: #a142d1;
}

/* Code block styling */
.code-block {
    border: 1px solid rgba(161, 66, 209, 0.3);
    border-radius: 5px;
    padding: 10px;
    font-family: monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    color: #a142d1;
    background-color: rgba(161, 66, 209, 0.05);
    box-shadow: 0 2px 4px rgba(161, 66, 209, 0.1);
    max-width: 100%;
    font-size: 14px;
}

/* Blockquote styling */
blockquote {
    border-left: 3px solid #a142d1;
    margin: 5px 0;
    padding-left: 20px;
    color: #8a36b8;
    font-style: italic;
}

/* Styling for formatted text output */
.analysis-content {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
}

.analysis-content strong {
    font-weight: bold;
    color: #a142d1;
}

.analysis-content em {
    font-style: italic;
    color: #8a36b8;
}

.analysis-content h1 {
    font-size: 2em;
    margin: 0.67em 0;
    color: #a142d1;
}

.analysis-content h2 {
    font-size: 1.5em;
    margin: 0.83em 0;
    color: #8a36b8;
}

.analysis-content .large-text {
    font-size: 1.5em;
    margin: 0.5em 0;
    color: #a142d1;
}

.analysis-content a {
    color: #a142d1;
    text-decoration: underline;
}

.analysis-content mark {
    background-color: rgba(161, 66, 209, 0.2);
    padding: 0 2px;
    color: #a142d1;
}

.analysis-content del {
    text-decoration: line-through;
    color: rgba(161, 66, 209, 0.7);
}

.analysis-content sub {
    vertical-align: sub;
    font-size: smaller;
    color: #8a36b8;
}

.analysis-content sup {
    vertical-align: super;
    font-size: smaller;
    color: #8a36b8;
}

.analysis-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em 0;
}

/* AI Response Icons Container */
.ai-response-icons {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    width: 100%;
    margin-top: 20px;
    padding: 15px 10px;
    border-top: 1px solid rgba(161, 66, 209, 0.3);
}

.ai-icon-btn {
    background-color: #a142d1;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.ai-icon-btn:hover {
    background-color: #8a36b8;
    transform: scale(1.1);
}

.ai-icon-btn:active {
    transform: scale(0.95);
}

/* Button-specific colors */
#aiDownloadBtn { background-color: #a142d1; }
#aiCopyBtn { background-color: #8a36b8; }
#aiShareBtn { background-color: #9C27B0; }
#aiTranslateBtn { background-color: #a142d1; }
#aiDeleteBtn { background-color: #8a36b8; }
#aiPlusBtn { background-color: #9C27B0; }

.note-content {
    margin-top: 15px;
    line-height: 1.8;
    position: relative;
    max-height: none;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(161, 66, 209, 0.05);
    border-radius: 8px;
    padding: 15px;
    font-size: 1.1em;
    color: #ffffff;
}

.note-content p {
    margin: 0;
    padding: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.note-content.collapsed {
    max-height: 100px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}
