/* ================================================= */
/* === TEMEL PROJE STİLLERİ === */
/* ================================================= */

:root {
    --pomind-bg: #0b3948;
    --pomind-card: #104c5e;
    --pomind-glow: #2de2e6;
    --pomind-accent: #f39c6b;
    --pomind-text: #f0f8ff;
    --pomind-text-muted: #a0c2d1;
    --pomind-font: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--pomind-font);
    background-color: var(--pomind-bg);
    background-image: linear-gradient( to bottom, var(--pomind-bg) 0%, #082c38 100% );
    background-attachment: fixed;
    color: var(--pomind-text);
}

/* ================================================= */
/* === NAVBAR VE LOGO STİLLERİ === */
/* ================================================= */

.navbar-pomind {
    background: transparent;
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: background-color 0.4s ease;
}

.navbar-scrolled {
    background-color: rgba(11, 57, 72, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.pomind-logo {
    height: 100px;
    max-height: 100%;
    width: auto;
    padding: 2px;
}

.homepage-logo {
    height: 250px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.navbar-pomind .nav-link {
    color: var(--pomind-text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

    .navbar-pomind .nav-link:hover {
        color: var(--pomind-glow);
    }

    .navbar-pomind .nav-link.active {
        color: #ffffff;
        font-weight: 600;
    }

/* ================================================= */
/* === DASHBOARD VE GENEL SAYFA STİLLERİ === */
/* ================================================= */

.page-header {
    animation: fadeInDown 0.8s ease-out;
}

.feature-card {
    background: var(--pomind-card);
    border: 1px solid rgba(45, 226, 230, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    height: 100%;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        border-color: rgba(45, 226, 230, 0.5);
    }

    .feature-card .icon {
        font-size: 3.5rem;
        color: var(--pomind-glow);
        margin-bottom: 1.5rem;
        text-shadow: 0 0 15px rgba(45, 226, 230, 0.5);
    }

/* ================================================= */
/* === POMI WIDGET STİLLERİ (TAM VE GÜNCEL) === */
/* ================================================= */

.pomi-widget-container {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9999;
}

.pomi-toggler {
    width: 60px;
    height: 60px;
    background-color: var(--pomind-card);
    border: 2px solid rgba(45, 226, 230, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(45, 226, 230, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    animation: pomi-pulse 3s infinite ease-in-out;
}

    .pomi-toggler:hover {
        transform: scale(1.1);
        border-color: rgba(45, 226, 230, 0.8);
        box-shadow: 0 0 25px rgba(45, 226, 230, 0.5);
        animation-play-state: paused;
    }

.pomi-chatbot {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    height: 500px;
    background-color: var(--pomind-card);
    border: 1px solid rgba(45, 226, 230, 0.2);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.show-pomi .pomi-chatbot {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.pomi-header {
    padding: 1rem;
    background-color: rgba(11, 57, 72, 0.5);
    color: var(--pomind-glow);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.pomi-close-btn {
    background: none;
    border: none;
    color: var(--pomind-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

    .pomi-close-btn:hover {
        color: white;
    }

.pomi-chatbox {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem;
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pomi-input-area {
    padding: 0.8rem;
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid rgba(45, 226, 230, 0.2);
    flex-shrink: 0;
}

    .pomi-input-area textarea {
        flex-grow: 1;
        border-radius: 20px;
        border: 1px solid #1a576e;
        background-color: #0d4051;
        color: var(--pomind-text);
        resize: none;
        padding: 0.6rem 1rem;
    }

        .pomi-input-area textarea:focus {
            background-color: #0b3948;
            border-color: var(--pomind-glow);
            box-shadow: none;
        }

    .pomi-input-area .send-btn {
        border: none;
        background-color: var(--pomind-accent);
        color: white;
        border-radius: 50%;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

.pomi-chatbox .chat {
    display: flex;
    gap: 0.7rem;
    max-width: 90%;
}

    .pomi-chatbox .chat.user {
        justify-content: flex-end;
        margin-left: auto;
    }

    .pomi-chatbox .chat.bot {
        justify-content: flex-start;
    }

.pomi-icon {
    width: 50px; /* SENİN KODUNDA 50px'di, 32px daha estetik duruyor, istersen 50px yapabilirsin */
    height: 50px;
    border-radius: 50%;
    align-self: flex-end;
}

.pomi-chatbox .msg-bubble {
    padding: 0.6rem 1rem;
    border-radius: 1.2rem;
    font-size: 0.95rem;
}

/* KULLANICI MESAJI İÇİN EN SON ANLAŞTIĞIMIZ STİL */
.pomi-chatbox .chat.user .msg-bubble {
    background-color: rgba(45, 226, 230, 0.2);
    color: var(--pomind-text);
}

.pomi-chatbox .chat.bot .msg-bubble {
    background-color: #0d4051;
}

.thinking-bubble-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
}

.pomi-thinking-bubble {
    display: flex;
    align-items: center;
    gap: 5px;
}

    .pomi-thinking-bubble .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: var(--pomind-text-muted);
        animation: pomi-thinking-bounce 1.4s infinite ease-in-out both;
    }

        .pomi-thinking-bubble .dot:nth-child(1) {
            animation-delay: -0.32s;
        }

        .pomi-thinking-bubble .dot:nth-child(2) {
            animation-delay: -0.16s;
        }


.pomi-chatbox::-webkit-scrollbar {
    width: 6px;
}

.pomi-chatbox::-webkit-scrollbar-track {
    background: transparent;
}

.pomi-chatbox::-webkit-scrollbar-thumb {
    background-color: rgba(45, 226, 230, 0.4);
    border-radius: 6px;
}

    .pomi-chatbox::-webkit-scrollbar-thumb:hover {
        background-color: var(--pomind-glow);
    }


/* ================================================= */
/* === GENEL ANİMASYONLAR === */
/* ================================================= */

@keyframes pomi-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(45, 226, 230, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(45, 226, 230, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(45, 226, 230, 0.2);
    }
}

@keyframes pomi-thinking-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* ================================================= */
/* === NAVBAR İYİLEŞTİRMELERİ (Magic Line) === */
/* ================================================= */

/* Linklerin konteynerini referans noktası yapıyoruz */
.navbar-nav {
    position: relative;
}

/* Aktif linkin metnini daha belirgin hale getiriyoruz */
.navbar-pomind .nav-link.active {
    color: #ffffff; /* Zaten vardı, teyit edelim */
    font-weight: 600; /* Zaten vardı, teyit edelim */
}

/* YENİ: Kayan, parlayan çizgi (Indicator) */
#nav-indicator {
    position: absolute;
    bottom: -8px; /* Linklerin biraz altında duracak */
    height: 3px;
    background-color: var(--pomind-glow);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--pomind-glow);
    /* En önemli kısım: Animasyonun pürüzsüz olmasını sağlar */
    transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1), width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}