/* Sidebar Container 
.teamswitch_sidebar {
    width: 280px;
    height: auto;
    background: #1a1a2e;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}*/

.teamswitch_sidebar {
  position: absolute;
  bottom: 0;
  width: 100%;
}

/* Main Content Area */
.teamswitch_sidebar-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.teamswitch_sidebar-content h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

.teamswitch_nav-item {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.teamswitch_nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(5px);
}

.teamswitch_nav-item.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.teamswitch_nav-icon {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

/* Team Switcher Area */
.teamswitch_team-switcher {
    padding: 7px;
    /*background: linear-gradient(135deg, #2a2a3e 0%, #1f1f35 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);*/
    position: relative;
}

.teamswitch_team-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 10px;
    background: linear-gradient(135deg, rgb(236 183 54) 0%, rgb(245 87 108) 100%);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    /*border: 1px solid rgba(240, 147, 251, 0.2);*/
}

.teamswitch_team-current:hover {
    background: linear-gradient(135deg, rgb(245 87 108 / 69%) 100%, rgb(255 200 65) 0%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.2);
}

.teamswitch_team-info {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
}

.teamswitch_team-avatar {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #8c1bff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.teamswitch_team-details {
    flex: 1;
}

.teamswitch_team-label {
    font-size: 9px;
    color: #fffad6;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    margin-bottom: 0;
}

.teamswitch_team-name {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

.teamswitch_team-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.teamswitch_add-team-btn {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.1) 0%, rgba(251, 146, 60, 0.1) 100%);
    border: 1px solid rgb(255 205 6 / 93%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.teamswitch_add-team-btn:hover {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.2) 0%, rgba(251, 146, 60, 0.2) 100%);
    transform: rotate(90deg);
    box-shadow: 0 3px 10px rgba(250, 204, 21, 0.3);
}

.teamswitch_add-team-btn svg {
    width: 16px;
    height: 16px;
    stroke: #ffeca0;
}

.teamswitch_dropdown-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    stroke: #fffad6;
}

.teamswitch_team-current.active .teamswitch_dropdown-arrow {
    transform: rotate(180deg);
    stroke: #fff;
}

/* Team Dropdown */
.teamswitch_team-dropdown {
    position: absolute;
    bottom: 100%;
    left: 10px;
    right: 10px;
    background: #2a2a3e;
    border-radius: 16px;
    padding: 4px;
    margin-bottom: 8px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(240, 147, 251, 0.1);
}

.teamswitch_team-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.teamswitch_team-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 8px;
}

.teamswitch_team-dropdown-title {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.teamswitch_team-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 6px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.teamswitch_team-item:hover {
    background: rgba(240, 147, 251, 0.1);
    transform: translateX(4px);
}

.teamswitch_team-item.active {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.2) 0%, rgba(245, 87, 108, 0.2) 100%);
    border: 1px solid rgba(240, 147, 251, 0.3);
}

.teamswitch_team-item-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 14px;
}

.teamswitch_team-item-info {
    flex: 1;
}

.teamswitch_team-item-name {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

.teamswitch_team-item-members {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

.teamswitch_team-item-badge {
    padding: 4px 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    font-size: 10px;
    color: #22c55e;
    font-weight: 600;
}

/* Modal */
.teamswitch_modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.teamswitch_modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.teamswitch_modal {
    background: #2a2a3e;
    border-radius: 20px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(240, 147, 251, 0.1);
}

.teamswitch_modal-overlay.active .teamswitch_modal {
    transform: scale(1);
}

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

.teamswitch_modal-title {
    font-size: 20px;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.teamswitch_modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.teamswitch_modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.teamswitch_modal-close svg {
    width: 20px;
    height: 20px;
    stroke: #9ca3af;
}

.teamswitch_form-group {
    margin-bottom: 20px;
}

.teamswitch_form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.teamswitch_form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.teamswitch_form-input:focus {
    outline: none;
    border-color: rgba(240, 147, 251, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(240, 147, 251, 0.1);
}

.teamswitch_form-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.teamswitch_avatar-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.teamswitch_avatar-option {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.teamswitch_avatar-option:hover {
    transform: scale(1.1);
}

.teamswitch_avatar-option.selected {
    border-color: #f093fb;
    box-shadow: 0 0 0 3px rgba(240, 147, 251, 0.2);
}

.teamswitch_members-input-wrapper {
    position: relative;
}

.teamswitch_members-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.teamswitch_member-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(240, 147, 251, 0.1);
    border: 1px solid rgba(240, 147, 251, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: #fff;
}

.teamswitch_member-remove {
    cursor: pointer;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.teamswitch_member-remove:hover {
    background: rgba(245, 87, 108, 0.5);
}

.teamswitch_suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1f1f35;
    border-radius: 10px;
    margin-top: 4px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 150px;
    overflow-y: auto;
    display: none;
    z-index: 10;
    border: 1px solid rgba(240, 147, 251, 0.1);
}

.teamswitch_suggestions-dropdown.active {
    display: block;
}

.teamswitch_suggestion-item {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #b0b0b0;
    font-size: 13px;
}

.teamswitch_suggestion-item:hover {
    background: rgba(240, 147, 251, 0.1);
    color: #fff;
}

.teamswitch_modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.teamswitch_btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.teamswitch_btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.teamswitch_btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.teamswitch_btn-create {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.teamswitch_btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.3);
}

/* Logout Button */
.teamswitch_logout-btn {
    margin-top: 8px;
    padding: 10px;
    background: rgba(245, 87, 108, 0.1);
    border: 1px solid rgba(245, 87, 108, 0.3);
    border-radius: 10px;
    color: #f5576c;
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.teamswitch_logout-btn:hover {
    background: rgba(245, 87, 108, 0.2);
    transform: translateX(4px);
}

.teamswitch_logout-btn svg {
    width: 16px;
    height: 16px;
}

/* Scrollbar Styles */
.teamswitch_sidebar-content::-webkit-scrollbar,
.teamswitch_team-dropdown::-webkit-scrollbar,
.teamswitch_suggestions-dropdown::-webkit-scrollbar {
    width: 6px;
}

.teamswitch_sidebar-content::-webkit-scrollbar-track,
.teamswitch_team-dropdown::-webkit-scrollbar-track,
.teamswitch_suggestions-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.teamswitch_sidebar-content::-webkit-scrollbar-thumb,
.teamswitch_team-dropdown::-webkit-scrollbar-thumb,
.teamswitch_suggestions-dropdown::-webkit-scrollbar-thumb {
    background: rgba(240, 147, 251, 0.3);
    border-radius: 3px;
}

.teamswitch_sidebar-content::-webkit-scrollbar-thumb:hover,
.teamswitch_team-dropdown::-webkit-scrollbar-thumb:hover,
.teamswitch_suggestions-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(240, 147, 251, 0.5);
}