:root {
    --primary-color: #00F2FE;
    --primary-dark: rgba(0, 242, 254, 0.1);
    --background-dark: #0f0f23;
    --text-color: #ffffff;
    --border-color: rgba(0, 242, 254, 0.2);
    --shadow-color: rgba(0, 242, 254, 0.15);
}

.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
    max-width: 100vw;
    max-height: 100vh;
}

.chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 9999;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px var(--shadow-color);
    animation: floatButton 3s ease-in-out infinite;
    font-size: 18px;
    transition: all 0.3s ease;
}

#lottie-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}

.chatbot-button .hologram {
    position: relative;
    width: 40px;
    height: 40px;
    transform-style: preserve-3d;
    animation: rotate5D 8s infinite linear;
}

.hologram-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, 
        rgba(0, 242, 254, 0.8) 0%,
        rgba(0, 242, 254, 0.4) 30%,
        rgba(0, 242, 254, 0.1) 60%,
        transparent 100%
    );
    transform-style: preserve-3d;
}

.hologram-core {
    position: absolute;
    width: 20px;
    height: 20px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(0, 242, 254, 0.8) 50%,
        transparent 100%
    );
    border-radius: 50%;
    filter: blur(2px);
    animation: pulseCore 2s infinite ease-in-out;
}

.hologram-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(0, 242, 254, 0.5);
    border-radius: 50%;
    animation: spinRing 3s infinite linear;
}

.hologram-ring:nth-child(1) { transform: rotateX(60deg) rotateY(0deg); }
.hologram-ring:nth-child(2) { transform: rotateX(0deg) rotateY(60deg); }
.hologram-ring:nth-child(3) { transform: rotateZ(60deg) rotateY(0deg); }

.hologram-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 242, 254, 0.8);
    border-radius: 50%;
    filter: blur(1px);
}

@keyframes rotate5D {
    0% {
        transform: perspective(1000px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    100% {
        transform: perspective(1000px) rotateX(360deg) rotateY(720deg) rotateZ(360deg);
    }
}

@keyframes floatButton {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 30px rgba(0, 242, 254, 0.3);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 5px 40px rgba(0, 242, 254, 0.5);
    }
}

@keyframes pulseCore {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

@keyframes spinRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0);
        opacity: 0.2;
    }
    50% {
        transform: translate3d(var(--x), var(--y), var(--z));
        opacity: 1;
    }
}

.chatbot-button::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(0, 242, 254, 0.3),
        transparent 30%,
        transparent 70%,
        rgba(0, 242, 254, 0.3),
        transparent
    );
    animation: rotateGradient 4s linear infinite;
    top: -25%;
    left: -25%;
}

@keyframes rotateGradient {
    100% { transform: rotate(360deg); }
}

.chatbot-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(0, 242, 254, 0.2) 90deg,
        transparent 180deg,
        rgba(0, 242, 254, 0.2) 270deg,
        transparent 360deg
    );
    animation: rotate 4s infinite linear;
}

.chatbot-button .hologram {
    position: relative;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #00f2fe 30%, transparent 70%);
    border-radius: 50%;
    animation: pulse3D 2s infinite ease-in-out;
}

.chatbot-button .hologram::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    filter: blur(5px);
    animation: glow 2s infinite alternate;
}

.chatbot-button .hologram::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: scan 2s infinite linear;
}

@keyframes hologram {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse3D {
    0% {
        transform: scale3d(1, 1, 1);
        opacity: 0.8;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1.1);
        opacity: 1;
    }
    100% {
        transform: scale3d(1, 1, 1);
        opacity: 0.8;
    }
}

@keyframes glow {
    from {
        opacity: 0.4;
        filter: blur(5px);
    }
    to {
        opacity: 0.8;
        filter: blur(8px);
    }
}

@keyframes scan {
    0% {
        transform: translateY(-100%) rotate(0deg);
    }
    100% {
        transform: translateY(100%) rotate(360deg);
    }
}

.chatbot-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--shadow-color);
}

.chatbot-button i {
    font-size: 28px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    animation: robotGlow 1.5s ease-in-out infinite alternate;
}

@keyframes robotGlow {
    from { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)); }
    to { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1)); }
}

.chatbot-window {
    position: fixed;
    bottom: 85px;
    right: 25px;
    width: 80%;
    max-width: 800px;
    height: 80vh;
    max-height: 600px;
    background: var(--background-dark);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px var(--shadow-color);
    display: none;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    will-change: opacity, transform;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.chatbot-window.show {
    opacity: 1;
    transform: translateY(0);
}

.chatbot-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 0%,
        rgba(0, 242, 254, 0.03) 45%,
        rgba(0, 242, 254, 0.05) 50%,
        rgba(0, 242, 254, 0.03) 55%,
        transparent 100%);
    pointer-events: none;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.chatbot-header {
    padding: 12px 15px;
    background: rgba(0, 242, 254, 0.05);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-container {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    color: var(--primary-color);
    font-size: 20px;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.header-text h2 {
    font-size: 14px;
    color: var(--text-color);
    margin: 0;
    font-weight: 500;
}

.status {
    font-size: 10px;
    color: var(--primary-color);
    margin: 0;
}

.close-button {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-button:hover {
    opacity: 1;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    scroll-behavior: smooth;
    background: var(--background-dark);
}

.message {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    max-width: 85%;
    font-size: 13px;
    line-height: 1.4;
    animation: messageAppear 0.3s ease forwards;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar stilleri */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(0, 242, 254, 0.1);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.3);
    border-radius: 3px;
    transition: background 0.3s;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 242, 254, 0.5);
}

.user-message {
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    margin-left: auto;
}

.bot-message {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.bot-message .message-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.bot-message .fa-robot {
    display: none;
}

.bot-message .message-content::before {
    content: '';
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: radial-gradient(circle at 30% 30%, rgba(0, 242, 254, 1) 0%, rgba(0, 242, 254, 0.5) 50%, transparent 100%);
    border-radius: 50%;
    position: relative;
    transform-style: preserve-3d;
    animation: botIconFloat 3s ease-in-out infinite;
    box-shadow: 
        0 0 15px rgba(0, 242, 254, 0.5),
        0 0 30px rgba(0, 242, 254, 0.3),
        0 0 45px rgba(0, 242, 254, 0.1);
}

.bot-message .message-content::after {
    content: '';
    position: absolute;
    left: 12px;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(0, 242, 254, 0.8);
    border-radius: 50%;
    animation: botIconRing 4s linear infinite;
}

@keyframes botIconFloat {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
        filter: brightness(1);
    }
    50% {
        transform: translateY(-3px) scale(1.1) rotate(180deg);
        filter: brightness(1.2);
    }
}

@keyframes botIconRing {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
        border-color: rgba(0, 242, 254, 0.8);
    }
    50% {
        transform: rotateX(180deg) rotateY(360deg) rotateZ(180deg);
        border-color: rgba(79, 172, 254, 0.8);
    }
    100% {
        transform: rotateX(360deg) rotateY(720deg) rotateZ(360deg);
        border-color: rgba(0, 242, 254, 0.8);
    }
}

.bot-message .message-content::before {
    content: '';
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 242, 254, 1) 0%, rgba(0, 242, 254, 0.5) 50%, transparent 100%),
        linear-gradient(45deg, rgba(0, 242, 254, 0.2) 0%, rgba(79, 172, 254, 0.2) 100%);
    mask: radial-gradient(circle at center, white 30%, transparent 70%);
    -webkit-mask: radial-gradient(circle at center, white 30%, transparent 70%);
}

.quick-replies {
    display: none;
}

.chatbot-input {
    padding: 12px;
    background: rgba(0, 242, 254, 0.05);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.chatbot-input input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-dark);
    color: var(--text-color);
    font-size: 13px;
}

.chatbot-input input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chatbot-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    animation: placeholderPulse 2s infinite alternate;
}

@keyframes placeholderPulse {
    from { opacity: 0.3; }
    to { opacity: 0.7; }
}

.chatbot-input button {
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.chatbot-input button:hover {
    background: rgba(0, 242, 254, 0.15);
}

#sendButton {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
    transition: all 0.3s ease;
}

#sendButton:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.4);
}

#sendButton i {
    font-size: 16px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* Holografik Efektler */
.message::after, .chatbot-input input::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 242, 254, 0.1),
        transparent
    );
    transform: translateX(-100%);
    animation: hologramShine 3s infinite;
}

@keyframes hologramShine {
    100% { transform: translateX(100%); }
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border-radius: 15px;
    width: fit-content;
    margin-right: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #4facfe;
    border-radius: 50%;
    animation: typingAnimation 1s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes scaleUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.system-message {
    display: none;
}

.section-title {
    color: #4facfe;
    font-weight: 600;
    margin: 8px 0;
    padding: 4px 0;
    border-bottom: 1px solid rgba(0, 242, 254, 0.2);
    font-size: 11px;
}

.section-title i {
    margin-right: 5px;
}

.list-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 4px 0;
    font-size: 10px;
}

.list-item i {
    color: #4facfe;
    font-size: 10px;
    margin-top: 3px;
}

@keyframes textFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes textPulse {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

.system-status {
    padding: 15px;
    background: rgba(0, 242, 254, 0.05);
    border-bottom: 1px solid rgba(0, 242, 254, 0.1);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.status-item {
    color: #00f2fe;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
    font-size: 10px;
    opacity: 0;
    transform: translateY(10px);
    background: rgba(0, 242, 254, 0.1);
    padding: 6px;
    border-radius: 6px;
    border: 1px solid rgba(0, 242, 254, 0.2);
    margin-bottom: 4px;
    animation: slideIn 0.5s ease-out forwards, fadeOut 0.5s ease-out forwards;
    width: fit-content;
}

.status-item:nth-child(1) { 
    animation-delay: 0s, 3s;
}

.status-item:nth-child(2) { 
    animation-delay: 1s, 4s;
}

.status-item:nth-child(3) { 
    animation-delay: 2s, 5s;
}

.status-item span {
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    width: 0;
    animation: typing 1s steps(40) forwards;
}

.status-item:nth-child(1) span { 
    animation-delay: 0.2s;
}

.status-item:nth-child(2) span { 
    animation-delay: 1.2s;
}

.status-item:nth-child(3) span { 
    animation-delay: 2.2s;
}

.status-item i {
    margin-right: 8px;
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
}

.status-item:nth-child(1) i { 
    animation-delay: 0.1s;
}

.status-item:nth-child(2) i { 
    animation-delay: 1.1s;
}

.status-item:nth-child(3) i { 
    animation-delay: 2.1s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.welcome-message {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    color: #00fff2;
}

.welcome-header {
    text-align: center;
}

.header-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}

.header-subtitle {
    font-size: 11px;
    color: #00b8ff;
}

.status-message {
    color: var(--primary-color);
    font-family: monospace;
    font-size: 12px;
    margin: 5px 0;
    opacity: 0.8;
}

.status-text {
    background: rgba(0, 255, 242, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
}

.status-group-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
}

.status-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-item {
    color: #00fff2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    background: rgba(0, 255, 242, 0.1);
    border-radius: 4px;
}

.status-item i {
    color: #00b8ff;
}

.bot-response {
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
    position: relative;
}

.bot-response::after {
    content: '|';
    position: absolute;
    right: -2px;
    animation: cursor-blink 1s infinite;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.message {
    margin: 10px;
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.bot-message {
    background-color: #1a1a2e;
    color: #fff;
    align-self: flex-start;
    border-radius: 15px 15px 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.user-message {
    background-color: #0066cc;
    color: white;
    align-self: flex-end;
    border-radius: 15px 15px 0 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.chat-messages {
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
    height: calc(100% - 60px);
    background-color: #0d1117;
}

/* Yazıyor... efekti için stil */
.typing {
    color: #666;
    font-style: italic;
    margin-bottom: 5px;
}

/* Emoji stilleri */
.bot-response img.emoji {
    height: 1.2em;
    width: 1.2em;
    margin: 0 .05em 0 .1em;
    vertical-align: -0.1em;
}

.chatbot-status {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.chatbot-status.online {
    background: rgba(46, 213, 115, 0.2);
    border: 1px solid rgba(46, 213, 115, 0.4);
}

.chatbot-status.typing {
    background: rgba(54, 162, 235, 0.2);
    border: 1px solid rgba(54, 162, 235, 0.4);
}

.chatbot-status.training {
    background: rgba(255, 159, 67, 0.2);
    border: 1px solid rgba(255, 159, 67, 0.4);
}

.chatbot-status.error {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.4);
}

/* Mobil cihazlar için responsive tasarım */
@media screen and (max-width: 480px) {
    .chatbot-window {
        width: 90%;
        height: 70vh;
        max-height: 500px;
        bottom: 75px;
        right: 5%;
        left: 5%;
    }

    .chatbot-button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .header-text h2 {
        font-size: 13px;
    }

    .status {
        font-size: 9px;
    }
}

/* Tablet cihazlar için responsive tasarım */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .chatbot-window {
        width: 85%;
        max-width: 600px;
        height: 75vh;
        max-height: 550px;
        bottom: 80px;
        right: 7.5%;
        left: 7.5%;
    }
}

/* Küçük ekranlar için güvenli alan */
@supports (padding: max(0px)) {
    .chatbot-window {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        bottom: max(90px, env(safe-area-inset-bottom) + 70px);
    }

    .chatbot-button {
        bottom: max(20px, env(safe-area-inset-bottom));
    }
} 