.team-view-container {
    max-width: 1000px;
    margin: 0 auto;
}

.team-header {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
}

.team-header h2 {
    color: white;
    border: none;
    margin: 0;
    padding: 0;
    font-size: 2em;
}

.members-section {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.members-section h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}


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

.member-card {
    background: white;
    border-radius: 10px;
    padding: 18px;
    border-left: 4px solid #8e44ad;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.member-info {
    flex: 1;
}

.member-name {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.member-email {
    color: #7f8c8d;
    font-size: 13px;
}

.btn-remove-member {
    background-color: #e74c3c;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-remove-member:hover {
    background-color: #c0392b;
    transform: translateX(3px);
}

.add-friends-section {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 2px solid #667eea30;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.add-friends-section h3 {
    color: #2c3e50;
    font-size: 1.4em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}


.friend-checkbox-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.friend-checkbox-label {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.friend-checkbox-label:hover {
    border-color: #3498db;
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.friend-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.friend-checkbox-label input[type="checkbox"]:checked {
    accent-color: #2ecc71;
}

.checkbox-friend-info {
    flex: 1;
}

.checkbox-friend-name {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 3px;
}

.checkbox-friend-email {
    font-size: 13px;
    color: #7f8c8d;
}

.btn-add-selected {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-selected:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.no-friends-message {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
    font-style: italic;
}

.back-to-teams {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #95a5a6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.back-to-teams:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
}

.empty-members {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
    font-style: italic;
}

.message-box {
    padding: 14px 18px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.message-box.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #2ecc71;
}

@media(max-width: 768px) {
    .members-grid {
        grid-template-columns: 1fr;
    }
    
    .friend-checkbox-container {
        grid-template-columns: 1fr;
    }
    
    .member-card {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .btn-remove-member {
        width: 100%;
        text-align: center;
    }
}