/* Bootstrap ile uyumlu - Bootstrap'in box-sizing'ini koruyoruz */
* {
    box-sizing: border-box;
}

/* Bootstrap'in margin/padding reset'ini koruyoruz ama kendi stillerimizi de ekliyoruz */
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e8e0f7 0%, #d4c5f0 50%, #c1a9e8 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    /* Mobil uyumluluk */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Touch action optimizasyonu */
    touch-action: manipulation;
}

/* Bootstrap'in .container sınıfı ile çakışmayı önlemek için özel sınıf */
.container.main-container {
    width: 100%;
    max-width: 800px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(138, 100, 200, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 90vh;
    max-height: 900px;
    transition: filter 0.3s ease;
    /* Mobil uyumluluk */
    position: relative;
    /* iOS Safari için viewport fix */
    min-height: -webkit-fill-available;
    /* Bootstrap container özelliklerini override et */
    margin-right: auto;
    margin-left: auto;
    padding-right: 0;
    padding-left: 0;
}

.container.blurred {
    filter: blur(5px);
    pointer-events: none;
}

/* Header */
.header {
    background: linear-gradient(135deg, #9b7dd4 0%, #7b5fb8 100%);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
    position: relative;
}

.avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.header-info h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s infinite;
}

/* Ambiyans Butonu */
.ambiance-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.ambiance-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.ambiance-button.active {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.ambiance-button.active svg {
    animation: musicPulse 1.5s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Nefes Butonu */
.breath-button {
    position: absolute;
    top: 20px;
    right: 70px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: all 0.3s ease;
    z-index: 10;
}

.breath-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.breath-button-text {
    font-weight: 500;
}

/* Seansı Bitir Butonu */
.end-session-button {
    position: absolute;
    top: 20px;
    right: 140px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: all 0.3s ease;
    z-index: 10;
}

.end-session-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.end-session-text {
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Chat Container */
.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #faf9fc;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-container::-webkit-scrollbar {
    width: 8px;
}

.chat-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chat-container::-webkit-scrollbar-thumb {
    background: #c1a9e8;
    border-radius: 10px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
    background: #9b7dd4;
}

/* Welcome Message */
.welcome-message {
    background: linear-gradient(135deg, #e8e0f7 0%, #d4c5f0 100%);
    padding: 20px;
    border-radius: 18px;
    border-top-left-radius: 4px;
    color: #5a4a7a;
    font-size: 15px;
    line-height: 1.6;
    max-width: 85%;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(138, 100, 200, 0.15);
}

/* Messages */
.message {
    display: flex;
    margin-bottom: 12px;
    animation: fadeIn 0.3s ease-in;
}

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

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

.assistant-message {
    justify-content: flex-start;
}

.message-content {
    max-width: 75%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word;
}

.user-message .message-content {
    background: linear-gradient(135deg, #9b7dd4 0%, #7b5fb8 100%);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(138, 100, 200, 0.25);
}

.assistant-message .message-content {
    background: linear-gradient(135deg, #e8e0f7 0%, #d4c5f0 100%);
    color: #5a4a7a;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(138, 100, 200, 0.15);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px 16px;
    color: #7b5fb8;
    font-size: 14px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9b7dd4;
    animation: typing 1.4s infinite;
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Input Container */
.input-container {
    padding: 20px 24px;
    background: white;
    border-top: 1px solid #e8e0f7;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

/* Mikrofon Butonu */
.mic-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8e0f7 0%, #d4c5f0 100%);
    border: 2px solid #c1a9e8;
    color: #7b5fb8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(138, 100, 200, 0.2);
}

.mic-button:hover {
    background: linear-gradient(135deg, #d4c5f0 0%, #c1a9e8 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(138, 100, 200, 0.3);
}

.mic-button:active {
    transform: scale(0.95);
}

.mic-button.recording {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    border-color: #dc2626;
    color: white;
    animation: recordingPulse 1s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

@keyframes recordingPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(239, 68, 68, 0.8);
    }
}

#userInput {
    flex: 1;
    border: 2px solid #e8e0f7;
    border-radius: 20px;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    max-height: 120px;
    outline: none;
    transition: all 0.3s ease;
    color: #333;
    background: #faf9fc;
}

#userInput:focus {
    border-color: #9b7dd4;
    background: white;
    box-shadow: 0 0 0 3px rgba(155, 125, 212, 0.1);
}

#userInput::placeholder {
    color: #a0a0a0;
}

.send-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9b7dd4 0%, #7b5fb8 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(138, 100, 200, 0.3);
}

.send-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(138, 100, 200, 0.4);
}

.send-button:active:not(:disabled) {
    transform: scale(0.95);
}

.send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Bootstrap ile uyumlu responsive tasarım */
/* Mobil öncelikli yaklaşım - Bootstrap breakpoint'leri ile uyumlu */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    body {
        padding: 10px;
    }

    .container {
        height: 95vh;
        border-radius: 16px;
        max-height: none;
    }

    .header {
        padding: 16px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .avatar-circle {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .header-info h1 {
        font-size: 18px;
    }

    .subtitle {
        font-size: 12px;
    }

    .breath-button,
    .end-session-button,
    .ambiance-button {
        position: relative;
        top: auto;
        right: auto;
        margin: 4px;
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .breath-button-text,
    .end-session-text {
        display: none;
    }

    .chat-container {
        padding: 12px;
    }

    .message-content {
        max-width: 90%;
        font-size: 13px;
        padding: 10px 14px;
    }

    .input-container {
        padding: 12px;
        flex-wrap: wrap;
    }

    .send-button,
    .mic-button {
        width: 40px;
        height: 40px;
    }

    .ice-breakers-container {
        padding: 10px 12px;
    }

    .ice-breaker-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .mood-modal-content,
    .affirmation-modal-content,
    .safety-modal-content,
    .breath-modal-content,
    .session-summary-content {
        padding: 24px 16px;
        width: 95%;
    }

    .mood-options {
        gap: 6px;
    }

    .mood-option {
        min-width: 55px;
        padding: 12px 6px;
    }

    .mood-emoji {
        font-size: 28px;
    }

    .breath-circle-container {
        width: 120px;
        height: 120px;
    }

    .breath-circle {
        width: 100px;
        height: 100px;
    }

    .breath-text {
        font-size: 20px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    body {
        padding: 15px;
    }

    .container {
        height: 92vh;
        border-radius: 20px;
    }

    .header {
        padding: 18px;
    }

    .avatar-circle {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .header-info h1 {
        font-size: 20px;
    }

    .chat-container {
        padding: 16px;
    }

    .message-content {
        max-width: 85%;
        font-size: 14px;
    }

    .input-container {
        padding: 16px;
    }

    .send-button,
    .mic-button {
        width: 44px;
        height: 44px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    body {
        padding: 10px;
    }

    .container {
        height: 95vh;
        border-radius: 20px;
    }

    .header {
        padding: 20px;
    }

    .avatar-circle {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .header-info h1 {
        font-size: 20px;
    }

    .chat-container {
        padding: 16px;
    }

    .message-content {
        max-width: 85%;
        font-size: 14px;
        padding: 12px 16px;
    }

    .input-container {
        padding: 16px;
    }

    .send-button {
        width: 44px;
        height: 44px;
    }

    .mic-button {
        width: 44px;
        height: 44px;
    }

    .ambiance-button {
        width: 36px;
        height: 36px;
        top: 16px;
        right: 16px;
    }

    .ambiance-button svg {
        width: 16px;
        height: 16px;
    }

    .breath-button {
        top: 16px;
        right: 60px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .breath-button-text {
        display: none;
    }

    .end-session-button {
        top: 16px;
        right: 120px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .end-session-text {
        display: none;
    }

    .ice-breakers-container {
        padding: 12px 16px;
    }

    .ice-breaker-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .affirmation-modal-content {
        padding: 40px 30px;
    }

    .affirmation-text {
        font-size: 18px;
    }

    .session-summary-content {
        padding: 30px 20px;
    }
}

    .mood-modal-content {
        padding: 30px 20px;
    }

    .mood-options {
        gap: 8px;
    }

    .mood-option {
        min-width: 60px;
        padding: 16px 8px;
    }

    .mood-emoji {
        font-size: 32px;
    }

    .breath-circle-container {
        width: 150px;
        height: 150px;
    }

    .breath-circle {
        width: 120px;
        height: 120px;
    }

    .breath-text {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 16px;
        gap: 12px;
    }

    .avatar-circle {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .header-info h1 {
        font-size: 18px;
    }

    .subtitle {
        font-size: 12px;
    }

    .message-content {
        max-width: 90%;
        font-size: 13px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 800px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 900px;
    }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1000px;
    }
}

/* Landscape orientation için özel ayarlar */
@media (orientation: landscape) and (max-height: 600px) {
    .container {
        height: 95vh;
        max-height: none;
    }

    .header {
        padding: 12px 20px;
    }

    .chat-container {
        padding: 12px 20px;
    }
}

/* Touch device optimizasyonları */
@media (hover: none) and (pointer: coarse) {
    .send-button,
    .mic-button,
    .breath-button,
    .end-session-button,
    .ambiance-button,
    .ice-breaker-btn,
    .mood-option {
        min-height: 44px; /* iOS dokunma hedefi minimum boyutu */
        min-width: 44px;
    }

    .send-button:active,
    .mic-button:active,
    .breath-button:active,
    .end-session-button:active,
    .ambiance-button:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
}

/* Yüksek DPI ekranlar için */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .avatar-circle,
    .breath-circle {
        border-width: 1.5px;
    }
}

/* Duygu Termometresi Modal */
.mood-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    display: none !important; /* Varsayılan olarak gizli */
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    animation: fadeIn 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
}

.mood-modal[style*="display: flex"],
.mood-modal[style*="display:flex"] {
    display: flex !important;
}

.mood-modal-content {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    pointer-events: auto !important;
    position: relative;
    z-index: 10000;
}

.mood-modal-content h2 {
    color: #7b5fb8;
    font-size: 28px;
    margin-bottom: 8px;
}

.mood-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.mood-options {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    flex-wrap: wrap;
}

.mood-option {
    flex: 1;
    min-width: 80px;
    padding: 20px 12px;
    border: 2px solid #e8e0f7;
    border-radius: 16px;
    background: #faf9fc;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mood-option:hover {
    border-color: #9b7dd4;
    background: #f0ebf9;
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(155, 125, 212, 0.2);
}

.mood-option:active {
    transform: translateY(-2px);
}

.mood-emoji {
    font-size: 40px;
    line-height: 1;
}

.mood-label {
    font-size: 12px;
    color: #5a4a7a;
    font-weight: 500;
}

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

/* Güvenlik Uyarı Modal */
.safety-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    display: none !important; /* Varsayılan olarak gizli */
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    animation: fadeIn 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
}

.safety-modal[style*="display: flex"],
.safety-modal[style*="display:flex"] {
    display: flex !important;
}

.safety-modal-content {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(239, 68, 68, 0.3);
    animation: slideUp 0.3s ease;
    border: 3px solid #f87171;
    pointer-events: auto !important;
    position: relative;
    z-index: 10000;
}

.safety-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.safety-modal-content h2 {
    color: #dc2626;
    font-size: 24px;
    margin-bottom: 16px;
}

.safety-modal-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.safety-modal-content strong {
    color: #dc2626;
    font-size: 20px;
}

.safety-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.safety-button {
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
}

.safety-button.emergency {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.safety-button.emergency:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.safety-button:not(.emergency) {
    background: linear-gradient(135deg, #9b7dd4 0%, #7b5fb8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(155, 125, 212, 0.3);
}

.safety-button:not(.emergency):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(155, 125, 212, 0.4);
}

.safety-close {
    padding: 10px 24px;
    border: 2px solid #e8e0f7;
    border-radius: 12px;
    background: #faf9fc;
    color: #7b5fb8;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 10001;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: rgba(155, 125, 212, 0.3);
}

.safety-close:hover {
    background: #e8e0f7;
    border-color: #9b7dd4;
}

.safety-close:active {
    transform: scale(0.95);
}

/* Nefes Egzersizi Modal */
.breath-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    display: none !important; /* Varsayılan olarak gizli */
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    animation: fadeIn 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
}

.breath-modal[style*="display: flex"],
.breath-modal[style*="display:flex"] {
    display: flex !important;
}

.breath-modal-content {
    background: linear-gradient(135deg, #faf9fc 0%, #f0ebf9 100%);
    border-radius: 24px;
    padding: 60px 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

.breath-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: #7b5fb8;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: rgba(155, 125, 212, 0.3);
}

.breath-close:hover {
    background: white;
    transform: scale(1.1);
}

.breath-close:active {
    transform: scale(0.95);
}

.breath-circle-container {
    width: 200px;
    height: 200px;
    margin: 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breath-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9b7dd4 0%, #7b5fb8 100%);
    box-shadow: 0 10px 30px rgba(155, 125, 212, 0.4);
    transition: transform 0.04s ease-out;
    transform: scale(1);
}

.breath-text {
    font-size: 32px;
    font-weight: 600;
    color: #7b5fb8;
    margin: 30px 0 12px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.breath-instruction {
    color: #666;
    font-size: 14px;
    margin-top: 12px;
}

/* Konu Başlatıcı Butonlar */
.ice-breakers-container {
    padding: 16px 24px;
    background: #faf9fc;
    border-top: 1px solid #e8e0f7;
    display: none;
}

.ice-breakers-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #c1a9e8 #faf9fc;
}

.ice-breakers-scroll::-webkit-scrollbar {
    height: 6px;
}

.ice-breakers-scroll::-webkit-scrollbar-track {
    background: #faf9fc;
    border-radius: 10px;
}

.ice-breakers-scroll::-webkit-scrollbar-thumb {
    background: #c1a9e8;
    border-radius: 10px;
}

.ice-breaker-btn {
    flex-shrink: 0;
    padding: 12px 20px;
    border: 2px solid #e8e0f7;
    border-radius: 20px;
    background: white;
    color: #7b5fb8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(138, 100, 200, 0.1);
}

.ice-breaker-btn:hover {
    border-color: #9b7dd4;
    background: linear-gradient(135deg, #f0ebf9 0%, #e8e0f7 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 100, 200, 0.2);
}

.ice-breaker-btn:active {
    transform: translateY(0);
}

/* Günün Olumlaması Modal */
.affirmation-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    display: none !important; /* Varsayılan olarak gizli */
    align-items: center !important;
    justify-content: center !important;
    z-index: 9998 !important;
    animation: fadeIn 0.5s ease;
    margin: 0 !important;
    padding: 0 !important;
}

.affirmation-modal[style*="display: flex"],
.affirmation-modal[style*="display:flex"] {
    display: flex !important;
}

.affirmation-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #faf9fc 100%);
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease;
    border: 3px solid #e8e0f7;
    position: relative;
    z-index: 10001;
    pointer-events: auto;
}

.affirmation-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.9;
    }
}

.affirmation-modal-content h2 {
    color: #7b5fb8;
    font-size: 28px;
    margin-bottom: 24px;
    font-weight: 600;
}

.affirmation-text {
    color: #5a4a7a;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: italic;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.affirmation-button {
    padding: 14px 32px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #9b7dd4 0%, #7b5fb8 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(155, 125, 212, 0.3);
    /* Tıklanabilirlik garantisi */
    pointer-events: auto !important;
    z-index: 10000 !important;
    position: relative;
    -webkit-tap-highlight-color: rgba(155, 125, 212, 0.3);
}

.affirmation-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(155, 125, 212, 0.4);
}

.affirmation-button:active {
    transform: translateY(0);
}

/* Seans Özeti Modal */
.session-summary-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    display: none !important; /* Varsayılan olarak gizli */
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    animation: fadeIn 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
}

.session-summary-modal[style*="display: flex"],
.session-summary-modal[style*="display:flex"] {
    display: flex !important;
}

.session-summary-content {
    background: linear-gradient(135deg, #ffffff 0%, #faf9fc 100%);
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
    border: 3px solid #e8e0f7;
}

.summary-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #e8e0f7;
    color: #7b5fb8;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.summary-close:hover {
    background: white;
    border-color: #9b7dd4;
    transform: scale(1.1);
}

.summary-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8e0f7;
}

.summary-icon {
    font-size: 50px;
    margin-bottom: 12px;
}

.summary-header h2 {
    color: #7b5fb8;
    font-size: 24px;
    font-weight: 600;
}

.summary-body {
    color: #5a4a7a;
    font-size: 16px;
    line-height: 1.8;
}

.summary-text {
    background: linear-gradient(135deg, #faf9fc 0%, #f0ebf9 100%);
    padding: 30px;
    border-radius: 16px;
    border-left: 4px solid #9b7dd4;
    box-shadow: 0 2px 8px rgba(138, 100, 200, 0.1);
}

.summary-text strong {
    color: #7b5fb8;
    font-weight: 600;
}

.loading-summary {
    text-align: center;
    color: #7b5fb8;
    font-size: 16px;
    padding: 40px;
}

.error-summary {
    text-align: center;
    color: #dc2626;
    font-size: 16px;
    padding: 40px;
}

