/* Tanglish Autocomplete Dropdown Styles - Google Style */

.tanglish-dropdown {
    position: fixed;
    z-index: 10000;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    min-width: 280px;
    max-width: 360px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    animation: dropdownSlideIn 0.15s ease-out;
    overflow: hidden;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    color: #5f6368;
    font-size: 11px;
    font-weight: 500;
}

.header-icon {
    font-size: 16px;
    color: #5f6368;
}

.header-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.header-word {
    flex: 1;
    text-align: right;
    font-weight: 600;
    font-size: 13px;
    color: #202124;
    letter-spacing: 0.3px;
}

.dropdown-list {
    max-height: 240px;
    overflow-y: auto;
    padding: 6px 0;
    background: #ffffff;
}

.dropdown-list::-webkit-scrollbar {
    width: 10px;
}

.dropdown-list::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-list::-webkit-scrollbar-thumb {
    background: #dadce0;
    border-radius: 8px;
    border: 3px solid #ffffff;
}

.dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #bdc1c6;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    margin: 0;
    cursor: pointer;
    transition: background-color 0.1s ease;
    font-size: 16px;
    position: relative;
    background: #ffffff;
    border: none;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-item.selected {
    background: #e8f0fe;
}

.item-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    background: #000000;
    color: #ffffff;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.dropdown-item:not(.selected) .item-num {
    background: #ffffff;
    color: #5f6368;
    border: 1.5px solid #dadce0;
}

.item-text {
    flex: 1;
    font-weight: 400;
    color: #202124;
    font-family: 'Noto Sans Tamil', sans-serif;
    letter-spacing: 0;
}

.item-enter {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    font-size: 14px;
    color: #ffffff;
    font-weight: 400;
    background: #000000;
    border-radius: 5px;
    flex-shrink: 0;
}

.dropdown-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 14px;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    font-size: 11px;
    color: #5f6368;
    gap: 12px;
}

.dropdown-footer span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 400;
}

.dropdown-footer kbd {
    background: #ffffff;
    border: 1.5px solid #dadce0;
    border-radius: 4px;
    padding: 3px 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #202124;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    min-width: 24px;
    text-align: center;
}

/* Bamini Toast Notification - Google Style */
.bamini-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10001;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 16px;
    max-width: 400px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(450px);
    transition: all 0.3s ease-out;
}

.bamini-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.bamini-toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.bamini-toast-content {
    flex: 1;
}

.bamini-toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #202124;
    margin-bottom: 4px;
}

.bamini-toast-message {
    font-size: 13px;
    color: #5f6368;
    line-height: 1.5;
}

.bamini-toast-close {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #5f6368;
    cursor: pointer;
    padding: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.bamini-toast-close:hover {
    background: #f5f5f5;
}

.bamini-toast-close:active {
    background: #e8e8e8;
}

/* Bamini Mode Indicator - Google Style */
.bamini-mode-indicator {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: #34a853;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideInRight 0.3s ease-out;
}

.bamini-mode-indicator .indicator-dot {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .tanglish-dropdown {
        min-width: 260px;
        max-width: calc(100vw - 32px);
    }

    .dropdown-header {
        padding: 8px 12px;
        font-size: 10px;
    }

    .header-icon {
        font-size: 14px;
    }

    .header-word {
        font-size: 12px;
    }

    .dropdown-item {
        font-size: 15px;
        padding: 7px 12px;
        gap: 10px;
    }

    .item-num {
        min-width: 24px;
        height: 24px;
        font-size: 11px;
    }

    .item-enter {
        min-width: 24px;
        height: 24px;
        font-size: 13px;
    }

    .dropdown-footer {
        padding: 7px 12px;
        font-size: 10px;
        gap: 10px;
    }

    .dropdown-footer kbd {
        padding: 2px 5px;
        font-size: 9px;
        min-width: 20px;
    }

    .bamini-toast {
        right: 12px;
        left: 12px;
        max-width: none;
    }

    .bamini-mode-indicator {
        bottom: 12px;
        right: 12px;
        font-size: 12px;
        padding: 6px 12px;
    }
}
