:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --success-color: #10b981;
    --sidebar-width: 300px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f1f5f9;
    color: #334155;
    overflow-x: hidden;
    height: 100vh;
    margin: 0;
} 

select {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif,'FontAwesome';
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--dark-color), var(--secondary-color));
    color: white;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    float: right;
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.sidebar-content {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.previous-requests-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.request-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.request-item {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.request-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.request-item.active {
    background: rgba(255, 255, 255, 0.25);
    border-left: 4px solid white;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.user-info {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.login-prompt {
    text-align: center;
    padding: 1rem;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.content-header {
    padding: 2rem 2rem 0;
    flex-shrink: 0;
}

.content-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.content-subtitle {
    color: #64748b;
    font-size: 1.1rem;
}

.content-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 2rem 2rem;
}

.conversion-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.output-section {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 0.5rem;
    min-height: 0; /* Flexbox overflow için gerekli */
}

.text-input-container {
    position: relative;
    flex-shrink: 0;
}

.text-input {
    width: 100%;
    min-height: 120px;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.text-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.options-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    flex-shrink: 0;
}

.convert-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
    display: flex;
    align-items: center;
}

.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

.convert-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.option-buttons {
    display: flex;
    gap: 0.5rem;
}

.option-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-btn:hover {
    background: #f1f5f9;
}

.option-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.result-container {
    margin-bottom: 1.5rem;
    display: none;
}

.result-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.result-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    min-height: 150px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e2e8f0;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Orijinal Metin Görüntüleme - Güncellenmiş */
.original-text-display {
    background: #f8fafc; /* Açık gri arkaplan */
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: none;
    transition: all 0.3s ease;
}

.original-text-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-text {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.original-text-content {
    max-height: 3rem; /* Tek satır yüksekliği */
    overflow: hidden;
    transition: max-height 0.3s ease;
    line-height: 1.5;
    color: #475569;
}

.original-text-content.expanded {
    max-height: 500px; /* Genişletilmiş durumda yeterli yükseklik */
    overflow-y: auto;
}

.text-preview {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modal Styles */
.modal-user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        position: fixed;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 101;
        background: linear-gradient(180deg, var(--dark-color), var(--secondary-color));
        color: white;
        border: none;
        border-radius: 8px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
	.content-header {
		margin-top: 2rem;
	}
}

@media (min-width: 993px) {
    .menu-toggle {
        display: none;
    }
}

.ai-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

/* Deepseek-like form styling */
.deepseek-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.form-body {
    padding: 0.5rem;
}

.form-footer {
    padding: 0 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.character-count {
    font-size: 0.9rem;
    color: #64748b;
    padding: 0.5rem;
}

/* Özelleştirilmiş Scrollbar Stilleri */
.sidebar-content::-webkit-scrollbar,
.original-text-content.expanded::-webkit-scrollbar,
.result-content::-webkit-scrollbar,
.output-section::-webkit-scrollbar {
    width: 8px;
}

.sidebar-content::-webkit-scrollbar-track,
.original-text-content.expanded::-webkit-scrollbar-track,
.result-content::-webkit-scrollbar-track,
.output-section::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.sidebar-content::-webkit-scrollbar-thumb,
.original-text-content.expanded::-webkit-scrollbar-thumb,
.result-content::-webkit-scrollbar-thumb,
.output-section::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover,
.original-text-content.expanded::-webkit-scrollbar-thumb:hover,
.result-content::-webkit-scrollbar-thumb:hover,
.output-section::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Firefox için scrollbar stilleri */
.sidebar-content,
.original-text-content.expanded,
.result-content,
.output-section {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

/* Ana içerik için scrollbar stilleri */
.output-section::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.output-section::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

.output-section::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.output-section {
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Giriş gerektiren overlay */
.login-required-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-align: center;
    padding: 2rem;
}

.login-required-overlay p {
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 1.1rem;
}

.text-input-container {
    position: relative;
}

/* Responsive img için */
.user-avatar img,
.modal-user-avatar img {
    max-width: 100%;
    height: auto;
}

/* Sol menü aktif öğe stilleri */
.request-item.active {
    background: rgba(255, 255, 255, 0.25) !important;
    border-left: 4px solid white !important;
    transform: translateX(5px);
}

/* Tıklama feedback için transition */
.request-item {
    transition: all 0.3s ease;
}

/* Orijinal metin görüntüleme alanı için */
.original-text-display {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Sonuç konteyneri */
.result-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	padding:0.5rem;
}

/* Dönüştürülmüş istekler için ikon */
.converted-icon {
    font-size: 0.8rem;
}

/* Loading durumu için */
.request-item.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Aktif öğe stilleri */
.request-item.active {
    background: rgba(255, 255, 255, 0.25) !important;
    border-left: 4px solid white !important;
    transform: translateX(5px);
}

/* Tıklama feedback için transition */
.request-item {
    transition: all 0.3s ease;
    position: relative;
}

.section {
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.section-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

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

.btn-copy, .btn-edit {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover, .btn-edit:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.editable-content {
    min-height: 50px;
}

.editable-content.editing textarea {
    width: 100%;
    resize: vertical;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 1rem;
    border-radius: 4px;
    z-index: 1000;
}

/* İçerik stilleri */
#title-content h1 {
    color: #2c3e50;
    margin: 0;
}

#description-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

#content-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

#content-content strong {
    color: #2c3e50;
}

#keywords-content p {
    color: #e74c3c;
    font-style: italic;
}
.language-selector {
    margin-bottom: 10px;
}

.language-select {
   padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.language-select:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.6;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Responsive tasarım için */
@media (min-width: 768px) {
    .options-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .language-selector {
        margin-bottom: 0;
       /* margin-right: 15px;
        min-width: 150px;*/
    }
    
    .option-buttons {
        flex-grow: 1;
    }
}

.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 15px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.language-switcher a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.language-switcher a:hover {
    background: #007bff;
    color: white;
}

.language-switcher a:first-child {
    margin-right: 5px;
}

.language-switcher a:last-child {
    margin-left: 5px;
}

/* Mevcut dil seçili gibi görünsün */
.language-switcher a[href*="change_language=<?php echo $lang->getCurrentLang(); ?>"] {
    background: #007bff;
    color: white;
}

/* Responsive tasarım için */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
    }
    
    .language-switcher a {
        font-size: 12px;
        padding: 4px 8px;
    }
}