/* Unicode Character Picker for Kurdish and Turkish Names */
/* Add this to your static/css/unicode-picker.css file */

.unicode-character-picker {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
    font-family: 'Segoe UI', 'Roboto', 'Noto Sans', sans-serif;
    display: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.unicode-picker-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
}

.unicode-picker-tab {
    background: #e9ecef;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.unicode-picker-tab.active {
    background: #f8f9fa;
    border-bottom: 2px solid #007bff;
}

.unicode-picker-tab:hover {
    background: #dee2e6;
}

.unicode-tab-content {
    display: none;
}

.unicode-tab-content.active {
    display: block;
}

.unicode-character-group {
    margin-bottom: 12px;
}

.unicode-character-group:last-child {
    margin-bottom: 0;
}

.unicode-group-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
    font-weight: 500;
}

.unicode-character-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.unicode-char-btn {
    background: white;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
    user-select: none;
}

.unicode-char-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.unicode-char-btn:active {
    transform: translateY(0);
    background: #dee2e6;
}

.unicode-char-btn.kurdish {
    border-left: 3px solid #28a745;
}

.unicode-char-btn.turkish {
    border-left: 3px solid #dc3545;
}

.unicode-char-btn.common {
    border-left: 3px solid #007bff;
}

.form-control.active-unicode-field {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25) !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .unicode-character-buttons {
        gap: 2px;
    }
    
    .unicode-char-btn {
        padding: 6px 10px;
        font-size: 14px;
        min-width: 35px;
    }
    
    .unicode-picker-tab {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .unicode-character-picker {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 8px 8px 0 0;
        border-bottom: none;
        max-height: 50vh;
        overflow-y: auto;
    }
}

/* Animation for character insertion feedback */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    50% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

.character-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    z-index: 10000;
    animation: fadeInOut 1s ease-in-out;
}
