html {
    height: 100%;
    background-color: #ffffff;
}

::selection {
    background-color: #ff882e;
}

div {
    margin: 0;
}

body * {
    font-family: "Manrope", sans-serif;
    text-align: center;
    color: rgb(9, 6, 4);
    ;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    overflow: hidden;
}

header {
    display: flex;
    padding: 0px 0px 0px;
    margin-top: -40px;
    width: 100%;
    position: relative;
    z-index: 100;
}

h1 {
    text-align: left;
    color: rgb(29, 29, 29); 
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.48px;
    position: absolute;
    top: -50px;
    z-index: 100;
}

#container {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 16px;
    margin: 0 auto;
    width: 100vw; /* Pencere genişliği kadar (tam genişlik) */
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -300px;
}

.didImage {
    vertical-align: text-bottom;
    padding-right: 0.2rem;
    width: 240px;
}

#previewName {
    font-size: 20px
}

#connectionLabel {
    font-weight: lighter;
    font-size: smaller;
    display: inline-block
}

/* Top Controls - Model Selector and Stop Button */
.top-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 101;
}

.model-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.model-selector-wrapper label {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    white-space: nowrap;
}

.model-select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: "Manrope", sans-serif;
    color: #2d3748;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.model-select:hover:not(:disabled) {
    border-color: #4299e1;
}

.model-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f7fafc;
}

.show-menu-button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: "Manrope", sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.show-menu-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

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

.stop-button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: "Manrope", sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stop-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 62, 62, 0.4);
}

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

/* Mikrofon göstergesi wrapper - Sağ üst köşede, butonların altında */
.micIndicatorWrapper {
    position: absolute;
    top: 80px;
    right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    z-index: 101;
}

/* Mikrofon container - buton + text */
.micContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

button {
    font-size: 16px;
}

.roundButton {
    height: 50px;
    width: 50px;
    color: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    background: #efefef;
    border-radius: 100vmax;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-out;
}

.roundButton:hover {
    background-color: rgb(249, 249, 249);
    transform: scale(1.05);
}

/* Mikrofon Durumu Göstergesi */
.micIndicator {
    height: 60px;
    width: 60px;
    border-radius: 100vmax;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.micIndicator svg {
    width: 28px;
    height: 28px;
}

.micIndicator.inactive {
    background-color: #e0e0e0;
    color: #666;
}

.micIndicator.active {
    background-color: #ff3b30;
    color: white;
    animation: pulse 2s infinite;
}

.micIndicator.active svg path {
    stroke: white;
}

.micIndicator.inactive svg path {
    stroke: #666;
}

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

/* Mikrofon status text */
.micStatusText {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.micStatusText.inactive {
    color: #666;
}

.micStatusText.active {
    color: #ff3b30;
    font-weight: 700;
}

.button {
    color: #ffffff;
    border: 1px solid #3c3c3c;
    background-color: #2e2e2e;
    font-size: 22px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: -0.4px;
    gap: 16px;
    margin: 0.5rem;
    outline: none;
    cursor: pointer;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 14px 24px;
    transition: background-color 150ms ease;
}

.button:hover {
    background-color: #3a3a3a;
}

.button:disabled {
    color: rgb(152, 152, 152);
    background-color: white;
    cursor: default;
}

/* Yuvarlak Connect Button - Professional */
.roundConnectButton {
    height: 90px;
    width: 90px;
    color: #ffffff;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 50%, #000000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(45, 55, 72, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.roundConnectButton::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.roundConnectButton:hover {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 50%, #1a202c 100%);
    transform: translateY(-2px) scale(1.08);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 12px 24px rgba(45, 55, 72, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.roundConnectButton:hover::before {
    opacity: 1;
}

.roundConnectButton:active {
    transform: translateY(0) scale(1.02);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.4),
        0 5px 10px rgba(45, 55, 72, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}


/* removed Chat/Speak toggle */

/* History - Hidden but functional */
#answers {
    display: none;
}

.agentMessage {
    border-radius: 0 16px 16px;
    border: 1px solid var(--Blacks-300, #dbdbdb);
    margin-right: auto;
    position: relative;
    min-width: 50px;
    max-width: 75%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem;
}

.userMessage {
    border-radius: 14px;
    background: var(--blacks-100, #f3f3f3);
    padding: 10px 16px;
    margin-left: auto;
    min-width: 50px;
    max-width: max-content;
    display: flex;
    justify-content: flex-end;
}

.ratingButtons {
    align-self: flex-end;
}

#videoElement,
#idleVideoElement {
    width: 100%;
    height: 100%;
}

#video-wrapper {
    position: relative;
    width: 100%;
    height: 120vh; /* Pencere yüksekliğinin 80%'i */
    overflow: hidden;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 0px;
    z-index: 1;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
}

/* Connecting Overlay */
.connecting-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

.connecting-text {
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #2d3748;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#hidden {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.overlaySubtitle {
    font-size: 20px;
    font-weight: 1000;
}

#reconnectButton {
    color: white;
    background-color: rgb(9, 6, 4);
}

#reconnectButton:hover {
    background-color: #2B2A28;
}

/* Menu Item Display */
.item-display {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.item-card {
    text-align: left;
}

.item-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.item-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a202c;
}

.item-category {
    display: inline-block;
    background: #f7fafc;
    color: #4a5568;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.item-card p {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 16px;
}

.item-price {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-top: 12px;
}

/* Items List Display */
.items-list-display {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    animation: slideUp 0.3s ease-out;
}

.items-list-display h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a202c;
    text-align: left;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.item-mini-card {
    background: #f7fafc;
    padding: 12px;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.item-mini-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.item-mini-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1a202c;
}

.item-mini-card .price {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

/* Shopping Cart Badge */
.cart-badge {
    position: fixed;
    top: 160px;
    right: 20px;
    background: #2d3748;
    color: white;
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 102;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-badge:hover {
    background: #4a5568;
    transform: scale(1.05);
}

#cartCount {
    background: #ff3b30;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}

/* Cart Modal */
.cart-modal {
    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: 2000;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cart-modal-content {
    background: white;
    padding: 32px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.cart-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.cart-content {
    margin-bottom: 24px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 12px;
    margin-bottom: 12px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    text-align: left;
}

.cart-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 4px;
}

.cart-item-quantity {
    font-size: 14px;
    color: #4a5568;
}

.cart-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    flex-shrink: 0;
}

.cart-footer {
    border-top: 2px solid #e2e8f0;
    padding-top: 16px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
    font-size: 16px;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #e2e8f0;
    border: none;
    color: #2d3748;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.close-btn:hover {
    background: #cbd5e0;
    transform: scale(1.1);
}

/* Full Menu Modal */
.full-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.full-menu-content {
    background: white;
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.full-menu-header {
    padding: 24px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.full-menu-header h2 {
    margin: 0;
    font-size: 28px;
    color: #1a202c;
    font-weight: 700;
}

.full-menu-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Menu Category Section */
.menu-category {
    margin-bottom: 32px;
}

.menu-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Menu Item Card */
.menu-item-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.menu-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.menu-item-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.menu-item-details {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.menu-item-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    flex: 1;
}

.menu-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    margin-left: 8px;
}

.menu-item-description {
    font-size: 14px;
    color: #718096;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.menu-item-category {
    font-size: 12px;
    color: #667eea;
    background: #eef2ff;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.menu-item-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.menu-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-popular {
    background: #fef5e7;
    color: #d97706;
}

.badge-spicy {
    background: #fee2e2;
    color: #dc2626;
}

.badge-vegetarian {
    background: #d1fae5;
    color: #059669;
}

.badge-vegan {
    background: #a7f3d0;
    color: #047857;
}

.badge-halal {
    background: #dbeafe;
    color: #2563eb;
}

.badge-gluten-free {
    background: #fce7f3;
    color: #db2777;
}

/* Responsive Design */
@media (max-width: 768px) {
    .full-menu-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .full-menu-header h2 {
        font-size: 22px;
    }
    
    .menu-items-grid {
        grid-template-columns: 1fr;
    }
    
    .category-title {
        font-size: 20px;
    }
}