:root {
    --primary-color: #4a90e2;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --cloud-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --bg-gradient-start: #d4e6f9;
    --bg-gradient-end: #e8f1fa;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    padding-top: 70px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
}

/* Bulut Animasyonu */
.cloud {
    position: fixed;
    width: 100px;
    height: 40px;
    background: var(--cloud-color);
    border-radius: 20px;
    animation: float 15s infinite linear;
    opacity: 0.7;
    z-index: -1;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: var(--cloud-color);
    border-radius: 50%;
}

.cloud::before {
    width: 50px;
    height: 50px;
    top: -20px;
    left: 15px;
}

.cloud::after {
    width: 30px;
    height: 30px;
    top: -10px;
    left: 45px;
}

@keyframes float {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

/* Navbar Stilleri */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 2px 10px var(--shadow-color);
}

/* Ana İçerik */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 70px);
}

/* Bilgi Paneli */
.info-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin-bottom: 20px;
    width: 100%;
}

.info-panel h3 {
    cursor: pointer;
    transition: color 0.3s ease;
    display: inline-block;
}

.info-panel h3:hover {
    color: var(--primary-color);
}

/* Chat Container */
.chat-container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0 0 15px 15px;
    position: relative;
    z-index: 2;
}

/* Mesaj Balonları */
.message {
    margin-bottom: 15px;
    max-width: 85%;
    cursor: pointer;
    transition: transform 0.2s ease;
    font-weight: 600;
    margin: 10px 0;
    opacity: 0;
    animation: messageAppear 0.3s forwards;
}

.message:hover {
    transform: translateY(-2px);
}

.message-user {
    margin-left: auto;
    background: var(--primary-color);
    color: white;
    border-radius: 15px 15px 0 15px;
    padding: 12px 18px;
}

.message-bot {
    margin-right: auto;
    background: white;
    border-radius: 15px 15px 15px 0;
    padding: 12px 18px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.98);
    padding: 20px 0;
    width: 100%;
    box-shadow: 0 -2px 10px var(--shadow-color);
    position: relative;
    margin-top: 50px;
}

.collaboration-logo {
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.collaboration-logo:hover {
    transform: scale(1.05);
}

/* Toast Bildirimi */
.toast-container {
    position: fixed;
    bottom: 180px;
    right: 20px;
    z-index: 1050;
}

.toast {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(100%);
    animation: toastIn 0.3s ease forwards;
}

@keyframes toastIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Koyu Tema */
body.dark-mode {
    --bg-gradient-start: #1a1a1a;
    --bg-gradient-end: #2d2d2d;
    color: #fff;
}

body.dark-mode .navbar,
body.dark-mode .info-panel,
body.dark-mode .chat-container,
body.dark-mode .chat-input,
body.dark-mode .footer {
    background: rgba(40, 40, 40, 0.95) !important;
    color: #fff;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .main-content {
        padding: 0.5rem;
    }
    
    .chat-container {
        height: calc(100vh - 300px);
    }
    
    .bottom-buttons {
        bottom: 80px;
    }
    
    .bottom-buttons .btn {
        min-width: 150px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .share-buttons .btn {
        min-width: 100px;
        padding: 8px 15px;
    }
}

/* Animasyonlar */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Özel Buton Stilleri */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* Scrollbar Stilleri */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* QR ve Paylaş Butonları */
.share-buttons {
    margin-bottom: 20px;
}

.share-buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: white;
    transition: all 0.3s ease;
    min-width: 120px;
}

.share-buttons .btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Input Group Stilleri */
.input-group {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.input-group .form-control {
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    height: auto;
}

.input-group .btn {
    border-radius: 20px;
    margin: 0 2px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    min-width: 45px;
}

.input-group .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Quick Actions Stilleri */
.quick-actions .btn {
    border-radius: 20px;
    padding: 8px 20px;
    margin: 0 5px;
    font-weight: 500;
}

/* Havai Fişek Animasyonu */
@keyframes sparkle {
    0% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1.5) rotate(180deg); opacity: 1; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

.sparkle {
    position: fixed;
    width: 15px;
    height: 15px;
    background: linear-gradient(135deg, currentColor 0%, transparent 50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: sparkle 1s ease-in-out;
}

/* Chat Titreşim Animasyonu */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.shake-animation {
    animation: shake 0.3s ease-in-out;
}

/* Dev Secure Yazısı */
.dev-secure-text {
    cursor: pointer;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.dev-secure-text:hover {
    color: #2c71c7;
    transform: scale(1.05);
}

/* Koyu Tema için Pattern */
.dark-mode .chat-container {
    background-color: rgba(33, 37, 41, 0.95);
    background-image: 
        linear-gradient(45deg, #2c3034 25%, transparent 25%),
        linear-gradient(-45deg, #2c3034 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #2c3034 75%),
        linear-gradient(-45deg, transparent 75%, #2c3034 75%);
}

/* Debug Panel Stilleri */
.debug-panel {
    position: fixed;
    top: 60px;
    right: 10px;
    width: 600px;
    max-width: 90vw;
    height: 80vh;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    font-family: monospace;
}

.debug-header {
    padding: 10px;
    border-bottom: 1px solid #444;
    display: flex;
    align-items: center;
    gap: 10px;
}

.debug-header h3 {
    margin: 0;
    font-size: 16px;
    color: #fff;
    flex: 0 0 auto;
}

.debug-header .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.debug-copy-all {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 0 5px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.debug-copy-all:hover {
    opacity: 1;
}

.debug-search {
    padding: 5px 10px;
    border: 1px solid #444;
    background: #222;
    color: #fff;
    border-radius: 4px;
    width: 150px;
}

.debug-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
}

.debug-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.debug-entry {
    padding: 8px;
    border-bottom: 1px solid #333;
    font-size: 12px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    flex-direction: column;
}

.debug-entry:hover {
    background: rgba(255, 255, 255, 0.05);
}

.debug-entry.selected {
    background: rgba(255, 255, 255, 0.1);
}

.debug-select {
    position: relative;
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.debug-select input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 16px;
    width: 16px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.2s;
}

.debug-select:hover .checkmark {
    background-color: #444;
}

.debug-select input:checked ~ .checkmark {
    background-color: #2196F3;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.debug-select input:checked ~ .checkmark:after {
    display: block;
}

.debug-select .checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.debug-time {
    color: #888;
    white-space: nowrap;
}

.debug-type {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 5px;
    font-weight: bold;
    white-space: nowrap;
}

.debug-entry-header {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.debug-message {
    flex: 1;
    word-break: break-word;
    white-space: normal;
}

.debug-data {
    margin-top: 5px;
    padding: 5px;
    background: #222;
    border-radius: 4px;
    color: #0f0;
    font-size: 11px;
    overflow-x: auto;
    width: 100%;
    white-space: pre;
}

.debug-selection-actions {
    padding: 10px;
    border-top: 1px solid #444;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.debug-selection-actions button {
    background: none;
    border: 1px solid #666;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.debug-selection-actions button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #888;
}

/* Dark mode uyumluluğu */
.dark-mode .debug-panel {
    background: rgba(0, 0, 0, 0.95);
}

.dark-mode .debug-search {
    background: #333;
    border-color: #555;
}

.dark-mode .debug-data {
    background: #333;
}

/* Debug mesaj tipleri için renkler */
.debug-info .debug-type {
    background-color: #007bff;
    color: white;
}

.debug-error .debug-type {
    background-color: #dc3545;
    color: white;
}

.debug-warning .debug-type {
    background-color: #ffc107;
    color: black;
}

.debug-success .debug-type {
    background-color: #28a745;
    color: white;
}

.debug-api .debug-type {
    background-color: #6610f2;
    color: white;
}

/* Debug Panel Kapanma Animasyonu */
@keyframes closePanel {
    0% { 
        opacity: 1;
        transform: scale(1);
    }
    100% { 
        opacity: 0;
        transform: scale(0.8);
    }
}

.debug-panel.closing {
    animation: closePanel 0.3s ease-out forwards;
}

/* Giriş Ekranı */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    animation: popIn 0.5s ease;
    position: relative;
    z-index: 1001;
}

.login-logo {
    width: 200px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    animation: float 2s ease-in-out;
}

@keyframes float {
    0% { transform: translateY(-10px); }
    50% { transform: translateY(10px); }
    100% { transform: translateY(-10px); }
}

.login-form {
    margin-top: 20px;
}

.login-message {
    margin: 10px 0;
    text-align: center;
}

.login-timer {
    text-align: center;
    margin-top: 10px;
    color: #dc3545;
    font-weight: bold;
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Blur Efekti */
.blur-bg {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Dark Mode için Giriş Ekranı */
.dark-mode .login-box {
    background: rgba(33, 37, 41, 0.95);
    color: #fff;
}

.dark-mode .login-message {
    color: #ff6b6b;
}

.dark-mode .login-timer {
    color: #ff6b6b;
}

/* Ayarlar Modal */
.settings-modal .modal-content {
    border-radius: 15px;
}

.settings-modal .form-select {
    border-radius: 8px;
    padding: 10px;
}

.settings-modal .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* SSS Modal */
.sss-header {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    padding: 30px;
    border-radius: 15px 15px 0 0;
    margin: -16px -16px 20px -16px;
    text-align: center;
    color: white;
}

.sss-header h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.sss-header p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 0;
}

.accordion-button {
    font-weight: 600;
    background: #f8f9fa;
    border: none;
    padding: 15px 20px;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-body {
    background: #f8f9fa;
    padding: 20px;
    line-height: 1.6;
    color: #444;
}

.dark-mode .accordion-button {
    background: #2c3034;
    color: #fff;
}

.dark-mode .accordion-body {
    background: #2c3034;
    color: #fff;
}

.dark-mode .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #357abd 0%, #1d4b7d 100%);
}

.sss-footer {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 0 0 15px 15px;
    margin: 20px -16px -16px -16px;
}

.dark-mode .sss-footer {
    background: #2c3034;
}

/* Kullanıcı Menüsü */
.dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 8px;
}

.dropdown-item {
    border-radius: 6px;
    padding: 8px 15px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

.dropdown-divider {
    margin: 8px 0;
}

/* Yükleniyor animasyonu */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: #90909090;
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0.1s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typing {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Mesaj stilleri */
.message-content {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message {
    display: flex;
    justify-content: flex-end;
}

.user-message .message-content {
    background-color: #007bff;
    color: white;
}

.bot-message {
    display: flex;
    justify-content: flex-start;
}

.bot-message .message-content {
    background-color: #f1f1f1;
    color: #333;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
 