:root {
    --bg-color: #121212;
    --box-bg: #1a1625;
    --text-color: #ffffff;
    --accent-color: #9c27b0;
    --accent-secondary: #673ab7;
    --placeholder-color: #8a7aad;
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Tüm sayfa için scrollbar stili */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--box-bg);
    border-radius: var(--border-radius);
}

::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 10px;
    border: 2px solid var(--box-bg);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-secondary);
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #9c27b0, #673ab7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header p {
    color: #b8a9d8;
    font-size: 1rem;
}

.upload-button-container {
    margin-bottom: 25px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.upload-button {
    background: linear-gradient(135deg, #9c27b0, #673ab7);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.upload-button:active {
    transform: translateY(1px);
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-area {
    display: flex;
    width: 100%;
    position: relative;
}

.divider {
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 0 20px;
}

.box {
    flex: 1;
    background-color: var(--box-bg);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.image-preview {
    position: relative;
}

.image-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

.placeholder-text {
    color: var(--placeholder-color);
    text-align: center;
    padding: 20px;
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.prompt-result-content {
    color: #e0e0e0;
    font-size: 0.9rem;
    line-height: 1.5;
    padding: 18px;
    max-height: 100%;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prompt-text {
    width: 100%;
    height: 100%;
    padding: 8px;
    background-color: var(--box-bg);
    color: #e0e0e0;
    border: none;
    resize: none;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.5;
    border-radius: var(--border-radius);
    white-space: pre-wrap;
    outline: none;
    cursor: default;
}

.prompt-text::-webkit-scrollbar {
    width: 8px;
}

.prompt-text::-webkit-scrollbar-track {
    background: var(--box-bg);
    border-radius: var(--border-radius);
}

.prompt-text::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 10px;
    border: 2px solid var(--box-bg);
}

.prompt-text::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-secondary);
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: none;
}

.loading-indicator.active {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(156, 39, 176, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

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

.file-input {
    display: none;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .content-area {
        flex-direction: column;
    }
    
    .divider {
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
        margin: 20px 0;
    }
    
    .box {
        width: 100%;
        max-width: none;
    }
}
