.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px);
    text-align: center;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

p {
    color: aliceblue;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.container h1 {
    font-size: 8rem;
    margin-bottom: 1rem;
    color: aliceblue;
    letter-spacing: -0.05em;
    font-weight: 700;
}

.card {
    width: 100%;
    margin: 1rem 0;
    background-color: rgba(240, 248, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(240, 248, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.input-card:focus-within {
    border-color: rgba(74, 144, 226, 0.5);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
}

h2 {
    color: aliceblue;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

textarea#inputText {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(240, 248, 255, 0.2);
    background-color: rgba(240, 248, 255, 0.05);
    color: aliceblue;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
}

textarea#inputText:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.25);
}

.buttons {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    justify-content: center;
}

button {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.primary-button {
    background-color: #4a90e2;
    color: white;
}

.primary-button:hover {
    background-color: #357ac1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
}

.secondary-button {
    background-color: #e24a4a;
    color: white;
}

.secondary-button:hover {
    background-color: #c13535;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 74, 74, 0.25);
}

.icon-button {
    background-color: rgba(240, 248, 255, 0.1);
    color: aliceblue;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

.icon-button:hover {
    background-color: rgba(240, 248, 255, 0.2);
    transform: translateY(-1px);
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.output-actions {
    display: flex;
    gap: 0.5rem;
}

.output-text {
    background-color: rgba(240, 248, 255, 0.03);
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 150px;
    text-align: left;
    color: aliceblue;
    border: 1px solid rgba(240, 248, 255, 0.1);
    white-space: pre-wrap;
    overflow-wrap: break-word;
    line-height: 1.6;
}

/* Animation for cursor blink effect during streaming */
@keyframes cursor-blink {
    0% { border-color: #444; }
    50% { border-color: #4a90e2; }
    100% { border-color: #444; }
}

.loading {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Status Cube Styles */
.status-cube {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    align-self: center;
    margin: 0 0.5rem;
}

.status-cube.gray {
    background-color: #6b7280;
}

.status-cube.blue {
    background-color: #3b82f6;
    animation: pulse 1.5s ease-in-out infinite;
}

.status-cube.green {
    background-color: #10b981;
}

.status-cube.red {
    background-color: #ef4444;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    .container h1 {
        font-size: 4rem;
    }
    
    .main-buttons {
        flex-direction: column;
    }

    .output-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

.intro-text {
    color: aliceblue;
    margin-bottom: 1.5rem;
    max-width: 800px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Markdown element styling */
.output-text h1,
.output-text h2,
.output-text h3,
.output-text h4,
.output-text h5,
.output-text h6 {
    color: #4a90e2;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.output-text h1 { font-size: 1.8rem; }
.output-text h2 { font-size: 1.6rem; }
.output-text h3 { font-size: 1.4rem; }
.output-text h4 { font-size: 1.3rem; }
.output-text h5 { font-size: 1.2rem; }
.output-text h6 { font-size: 1.1rem; }

.output-text p {
    margin-bottom: 1rem;
    color: aliceblue;
    font-size: 1rem;
}

.output-text ul, 
.output-text ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.output-text li {
    margin-bottom: 0.5rem;
}

.output-text a {
    color: #4a90e2;
    text-decoration: underline;
    transition: color 0.2s;
}

.output-text a:hover {
    color: #357ac1;
}

.output-text blockquote {
    border-left: 4px solid #4a90e2;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #aaa;
    font-style: italic;
}

.output-text code {
    background-color: rgba(40, 44, 52, 0.7);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.output-text pre {
    background-color: rgba(40, 44, 52, 0.7);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.output-text pre code {
    background-color: transparent;
    padding: 0;
    color: aliceblue;
    display: block;
}

.output-text table {
    border-collapse: collapse;
    margin: 1rem 0;
    width: 100%;
}

.output-text th,
.output-text td {
    border: 1px solid #444;
    padding: 0.5rem;
    text-align: left;
}

.output-text th {
    background-color: rgba(40, 44, 52, 0.7);
    font-weight: bold;
}

.output-text img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.output-text hr {
    border: none;
    border-bottom: 2px solid #444;
    margin: 1.5rem 0;
}

/* Toast notification for copy operations */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(74, 144, 226, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}