/* Search Tab with Contacts/Chats & Browser Buttons */

.search-tab-section {
    margin: 0 16px 16px;
}

.search-tab-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 0, 0.2);
}

/* Left & Right Buttons */
.search-tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-tab-btn .tab-btn-icon {
    font-size: 18px;
}

.search-tab-btn .tab-btn-label {
    font-size: 13px;
}

/* Left Button - Contacts & Chats */
.search-tab-btn.left-btn {
    background: linear-gradient(135deg, #00FF00 0%, #00CC00 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.search-tab-btn.left-btn:hover {
    background: linear-gradient(135deg, #00CC00 0%, #009900 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.4);
}

.search-tab-btn.left-btn:active {
    transform: translateY(0);
}

/* Right Button - Browser */
.search-tab-btn.right-btn {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.search-tab-btn.right-btn:hover {
    background: linear-gradient(135deg, #5A6FD6 0%, #6A4192 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.search-tab-btn.right-btn:active {
    transform: translateY(0);
}

/* Search Input */
.search-tab-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 0, 0.15);
    transition: all 0.3s ease;
}

.search-tab-input-wrapper:focus-within {
    border-color: rgba(0, 255, 0, 0.5);
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.15);
    background: rgba(255, 255, 255, 0.8);
}

.search-tab-input-wrapper .search-icon {
    font-size: 16px;
}

.search-tab-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
}

.search-tab-input::placeholder {
    color: #999;
}

/* Contacts & Chats Panel (slides from left) */
.contacts-chats-panel {
    position: fixed;
    top: 0;
    left: -420px;
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 4000;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.contacts-chats-panel.open {
    left: 0;
}

.contacts-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #00FF00 0%, #00CC00 100%);
}

.contacts-panel-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.contacts-panel-close {
    background: rgba(0, 0, 0, 0.15);
    border: none;
    color: #000;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.contacts-panel-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
}

.contacts-panel-search input {
    flex: 1;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
}

.contacts-panel-search input:focus {
    border-color: #00CC00;
}

.contacts-panel-tabs {
    display: flex;
    padding: 0 20px;
    gap: 8px;
    padding-top: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.contacts-panel-tab {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    background: #f0f0f0;
    color: #555;
    transition: all 0.2s;
}

.contacts-panel-tab.active {
    background: #00FF00;
    color: #000;
}

.contacts-panel-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-item:hover {
    background: #f5fff5;
}

.contact-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.contact-status {
    font-size: 12px;
    color: #888;
}

.contact-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.contact-badge.online {
    background: #e6ffe6;
    color: #00AA00;
}

/* Panel overlay */
.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 3999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.panel-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive */
@media (max-width: 600px) {
    .search-tab-btn .tab-btn-label {
        display: none;
    }
    
    .search-tab-btn {
        padding: 10px 12px;
    }
    
    .contacts-chats-panel {
        width: 100%;
        left: -100%;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .search-tab-btn .tab-btn-label {
        font-size: 11px;
    }
}
